SAP BAPI_APPREQUEST_GETDETAIL_MPO Function Module for Interface Module for BAPI_APPREQUEST_GETDETAIL
BAPI_APPREQUEST_GETDETAIL_MPO is a standard bapi apprequest getdetail mpo SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Interface Module for BAPI_APPREQUEST_GETDETAIL processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for bapi apprequest getdetail mpo FM, simply by entering the name BAPI_APPREQUEST_GETDETAIL_MPO into the relevant SAP transaction such as SE37 or SE38.
Function Group: AIA_MPO_APP_REQUEST_46CFF
Program Name: SAPLAIA_MPO_APP_REQUEST_46CFF
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function BAPI_APPREQUEST_GETDETAIL_MPO pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'BAPI_APPREQUEST_GETDETAIL_MPO'"Interface Module for BAPI_APPREQUEST_GETDETAIL.
EXPORTING
EXTERNALNUMBER = "Appropriation Request Number (Formatted for Coding Mask)
* LANGUAGE = "Language key
* LANGUAGE_ISO = "Language according to ISO 639
IMPORTING
MASTER_DATA = "Approp. Request Master Data (IMAK,IMAKT,IMAKZS)
USER_FIELDS = "User fields
CONTROLLING_AREA = "Responsible controlling area
TABLES
* ORG_UNITS = "Organizational Units
* ASSIGNMENT_TO_POS = "Assignment to Investment Program Position(s)
* ASSIGNMENT_TO_BUDG_CATEG = "Assignment of Inv. Program Position(s) to Budget Categories
* VARIANT = "Appropriation Request Variant (Master Data)
* VARIANT_TO_VERSION = "Assignment of Approp. Request Variant to Plan Version
* ASSIGNED_APPREQUESTS = "Assigned Appropriation Requests
* PLAN_TOTAL = "Overall plan values
* PLAN_YEAR = "Annual plan
* RETURN = "Return parameter
* DIVISION = "Distribution by Requesting Division
* MATERIAL_GROUP = "Distribution by Material Group
* INVEST_REASON = "Distribution by Reason for Investment
* ENVIRONMNT_INVEST = "Distribution by Reasons for Environmental Investment
* ASSETS_EQUIS = "Affected Assets/Equipment
* ORDER = "Internal Orders
* WBS_ELEMENT = "WBS Elements
* PARTNER = "Partner
IMPORTING Parameters details for BAPI_APPREQUEST_GETDETAIL_MPO
EXTERNALNUMBER - Appropriation Request Number (Formatted for Coding Mask)
Data type: BAPI_APPREQ_ID-APPREQOptional: No
Call by Reference: No ( called with pass by value option)
LANGUAGE - Language key
Data type: BAPI_APPREQ_AUX-LANGUOptional: Yes
Call by Reference: No ( called with pass by value option)
LANGUAGE_ISO - Language according to ISO 639
Data type: BAPI_APPREQ_AUX-LANGU_ISOOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for BAPI_APPREQUEST_GETDETAIL_MPO
MASTER_DATA - Approp. Request Master Data (IMAK,IMAKT,IMAKZS)
Data type: BAPIAPPREQMASTEROptional: No
Call by Reference: No ( called with pass by value option)
USER_FIELDS - User fields
Data type: BAPIAPPREQUSEROptional: No
Call by Reference: No ( called with pass by value option)
CONTROLLING_AREA - Responsible controlling area
Data type: BAPI_APPREQ_ID-CNTRL_AREAOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for BAPI_APPREQUEST_GETDETAIL_MPO
ORG_UNITS - Organizational Units
Data type: BAPIAPPREQORGUNITOptional: Yes
Call by Reference: No ( called with pass by value option)
ASSIGNMENT_TO_POS - Assignment to Investment Program Position(s)
Data type: BAPIAPPREQEXPPROGASSGN_MPOOptional: Yes
Call by Reference: No ( called with pass by value option)
ASSIGNMENT_TO_BUDG_CATEG - Assignment of Inv. Program Position(s) to Budget Categories
Data type: BAPIAPPREQPROGASSGBUDGCATG_MPOOptional: Yes
Call by Reference: No ( called with pass by value option)
VARIANT - Appropriation Request Variant (Master Data)
Data type: BAPIAPPREQVARNTMULTIOptional: Yes
Call by Reference: No ( called with pass by value option)
VARIANT_TO_VERSION - Assignment of Approp. Request Variant to Plan Version
Data type: BAPIAPPREQVARNTASSIGNMULTIOptional: Yes
Call by Reference: No ( called with pass by value option)
ASSIGNED_APPREQUESTS - Assigned Appropriation Requests
Data type: BAPIAPPREQASSIGNEDAPPREQOptional: Yes
Call by Reference: No ( called with pass by value option)
PLAN_TOTAL - Overall plan values
Data type: BAPIAPPREQPLANTOTALMULTIOptional: Yes
Call by Reference: No ( called with pass by value option)
PLAN_YEAR - Annual plan
Data type: BAPIAPPREQPLANYEARMULTIOptional: Yes
Call by Reference: No ( called with pass by value option)
RETURN - Return parameter
Data type: BAPIRET2Optional: Yes
Call by Reference: No ( called with pass by value option)
DIVISION - Distribution by Requesting Division
Data type: BAPIAPPREQDIVISIONOptional: Yes
Call by Reference: No ( called with pass by value option)
MATERIAL_GROUP - Distribution by Material Group
Data type: BAPIAPPREQMATGROUPOptional: Yes
Call by Reference: No ( called with pass by value option)
INVEST_REASON - Distribution by Reason for Investment
Data type: BAPIAPPREQINVREASONOptional: Yes
Call by Reference: No ( called with pass by value option)
ENVIRONMNT_INVEST - Distribution by Reasons for Environmental Investment
Data type: BAPIAPPREQENVINVESTOptional: Yes
Call by Reference: No ( called with pass by value option)
ASSETS_EQUIS - Affected Assets/Equipment
Data type: BAPIAPPREQASSETOptional: Yes
Call by Reference: No ( called with pass by value option)
ORDER - Internal Orders
Data type: BAPIAPPREQORDERSOptional: Yes
Call by Reference: No ( called with pass by value option)
WBS_ELEMENT - WBS Elements
Data type: BAPIAPPREQWBSELEMOptional: Yes
Call by Reference: No ( called with pass by value option)
PARTNER - Partner
Data type: BAPIAPPREQPARTNEROUTOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for BAPI_APPREQUEST_GETDETAIL_MPO Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lt_org_units | TYPE STANDARD TABLE OF BAPIAPPREQORGUNIT, " | |||
| lv_master_data | TYPE BAPIAPPREQMASTER, " | |||
| lv_externalnumber | TYPE BAPI_APPREQ_ID-APPREQ, " | |||
| lt_assignment_to_pos | TYPE STANDARD TABLE OF BAPIAPPREQEXPPROGASSGN_MPO, " | |||
| lt_assignment_to_budg_categ | TYPE STANDARD TABLE OF BAPIAPPREQPROGASSGBUDGCATG_MPO, " | |||
| lt_variant | TYPE STANDARD TABLE OF BAPIAPPREQVARNTMULTI, " | |||
| lt_variant_to_version | TYPE STANDARD TABLE OF BAPIAPPREQVARNTASSIGNMULTI, " | |||
| lt_assigned_apprequests | TYPE STANDARD TABLE OF BAPIAPPREQASSIGNEDAPPREQ, " | |||
| lt_plan_total | TYPE STANDARD TABLE OF BAPIAPPREQPLANTOTALMULTI, " | |||
| lt_plan_year | TYPE STANDARD TABLE OF BAPIAPPREQPLANYEARMULTI, " | |||
| lt_return | TYPE STANDARD TABLE OF BAPIRET2, " | |||
| lt_division | TYPE STANDARD TABLE OF BAPIAPPREQDIVISION, " | |||
| lv_language | TYPE BAPI_APPREQ_AUX-LANGU, " | |||
| lv_user_fields | TYPE BAPIAPPREQUSER, " | |||
| lv_language_iso | TYPE BAPI_APPREQ_AUX-LANGU_ISO, " | |||
| lt_material_group | TYPE STANDARD TABLE OF BAPIAPPREQMATGROUP, " | |||
| lv_controlling_area | TYPE BAPI_APPREQ_ID-CNTRL_AREA, " | |||
| lt_invest_reason | TYPE STANDARD TABLE OF BAPIAPPREQINVREASON, " | |||
| lt_environmnt_invest | TYPE STANDARD TABLE OF BAPIAPPREQENVINVEST, " | |||
| lt_assets_equis | TYPE STANDARD TABLE OF BAPIAPPREQASSET, " | |||
| lt_order | TYPE STANDARD TABLE OF BAPIAPPREQORDERS, " | |||
| lt_wbs_element | TYPE STANDARD TABLE OF BAPIAPPREQWBSELEM, " | |||
| lt_partner | TYPE STANDARD TABLE OF BAPIAPPREQPARTNEROUT. " |
|   CALL FUNCTION 'BAPI_APPREQUEST_GETDETAIL_MPO' "Interface Module for BAPI_APPREQUEST_GETDETAIL |
| EXPORTING | ||
| EXTERNALNUMBER | = lv_externalnumber | |
| LANGUAGE | = lv_language | |
| LANGUAGE_ISO | = lv_language_iso | |
| IMPORTING | ||
| MASTER_DATA | = lv_master_data | |
| USER_FIELDS | = lv_user_fields | |
| CONTROLLING_AREA | = lv_controlling_area | |
| TABLES | ||
| ORG_UNITS | = lt_org_units | |
| ASSIGNMENT_TO_POS | = lt_assignment_to_pos | |
| ASSIGNMENT_TO_BUDG_CATEG | = lt_assignment_to_budg_categ | |
| VARIANT | = lt_variant | |
| VARIANT_TO_VERSION | = lt_variant_to_version | |
| ASSIGNED_APPREQUESTS | = lt_assigned_apprequests | |
| PLAN_TOTAL | = lt_plan_total | |
| PLAN_YEAR | = lt_plan_year | |
| RETURN | = lt_return | |
| DIVISION | = lt_division | |
| MATERIAL_GROUP | = lt_material_group | |
| INVEST_REASON | = lt_invest_reason | |
| ENVIRONMNT_INVEST | = lt_environmnt_invest | |
| ASSETS_EQUIS | = lt_assets_equis | |
| ORDER | = lt_order | |
| WBS_ELEMENT | = lt_wbs_element | |
| PARTNER | = lt_partner | |
| . " BAPI_APPREQUEST_GETDETAIL_MPO | ||
ABAP code using 7.40 inline data declarations to call FM BAPI_APPREQUEST_GETDETAIL_MPO
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| "SELECT single APPREQ FROM BAPI_APPREQ_ID INTO @DATA(ld_externalnumber). | ||||
| "SELECT single LANGU FROM BAPI_APPREQ_AUX INTO @DATA(ld_language). | ||||
| "SELECT single LANGU_ISO FROM BAPI_APPREQ_AUX INTO @DATA(ld_language_iso). | ||||
| "SELECT single CNTRL_AREA FROM BAPI_APPREQ_ID INTO @DATA(ld_controlling_area). | ||||
Search for further information about these or an SAP related objects