SAP BAPI_APPREQUEST_GETDETAIL Function Module for Display appropriation request
BAPI_APPREQUEST_GETDETAIL is a standard bapi apprequest getdetail SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Display appropriation request 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 FM, simply by entering the name BAPI_APPREQUEST_GETDETAIL into the relevant SAP transaction such as SE37 or SE38.
Function Group: AIA_BAPI
Program Name: SAPLAIA_BAPI
Main Program: SAPLAIA_BAPI
Appliation area: A
Release date: 30-Nov-1999
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function BAPI_APPREQUEST_GETDETAIL 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'"Display appropriation request.
EXPORTING
EXTERNALNUMBER = "Appropriation Request
* LANGUAGE = "Language in SAP Format
* LANGUAGE_ISO = "Language in ISO Format
IMPORTING
MASTER_DATA = "Master Data for Approp. Request
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 = "Variant(s) Master Data
* VARIANT_TO_VERSION = "Assignment of Variant(s) to Plan Version(s)
* ASSIGNED_APPREQUESTS = "Assigned Appropriation Requests
* PLAN_TOTAL = "Overall Plan Values
* PLAN_YEAR = "Annual Plan Values
* PLAN_TOTAL_OBJ = "Overall Plan Values in Object Currency
* PLAN_YEAR_OBJ = "Annual Plan Values in Object Currency
* RETURN = "Return Code
* DIVISION = "Requesting Division
* MATERIAL_GROUP = "Requesting Materials Group
* INVEST_REASON = "Reasons for Investment
* ENVIRONMNT_INVEST = "Reasons for Environmental Investment
* ASSETS_EQUIS = "Assets and Equipment to be Replaced
* ORDER = "Orders
* WBS_ELEMENT = "WBS Elements
* PARTNER = "Partners
IMPORTING Parameters details for BAPI_APPREQUEST_GETDETAIL
EXTERNALNUMBER - Appropriation Request
Data type: BAPI_APPREQ_ID-APPREQOptional: No
Call by Reference: No ( called with pass by value option)
LANGUAGE - Language in SAP Format
Data type: BAPI_APPREQ_AUX-LANGUOptional: Yes
Call by Reference: No ( called with pass by value option)
LANGUAGE_ISO - Language in ISO Format
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
MASTER_DATA - Master Data for Approp. Request
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
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: BAPIAPPREQEXPPROGASSGNOptional: Yes
Call by Reference: Yes
ASSIGNMENT_TO_BUDG_CATEG - Assignment of Inv. Program Position(s) to Budget Categories
Data type: BAPIAPPREQEXPPROGASSGNBUDGCATGOptional: Yes
Call by Reference: Yes
VARIANT - Variant(s) Master Data
Data type: BAPIAPPREQVARNTMULTIOptional: Yes
Call by Reference: No ( called with pass by value option)
VARIANT_TO_VERSION - Assignment of Variant(s) to Plan Version(s)
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: Yes
PLAN_TOTAL - Overall Plan Values
Data type: BAPIAPPREQPLANTOTALMULTIOptional: Yes
Call by Reference: No ( called with pass by value option)
PLAN_YEAR - Annual Plan Values
Data type: BAPIAPPREQPLANYEARMULTIOptional: Yes
Call by Reference: No ( called with pass by value option)
PLAN_TOTAL_OBJ - Overall Plan Values in Object Currency
Data type: BAPIAPPREQPLANTOTALMULTIOptional: Yes
Call by Reference: Yes
PLAN_YEAR_OBJ - Annual Plan Values in Object Currency
Data type: BAPIAPPREQPLANYEARMULTIOptional: Yes
Call by Reference: Yes
RETURN - Return Code
Data type: BAPIRET2Optional: Yes
Call by Reference: No ( called with pass by value option)
DIVISION - Requesting Division
Data type: BAPIAPPREQDIVISIONOptional: Yes
Call by Reference: No ( called with pass by value option)
MATERIAL_GROUP - Requesting Materials Group
Data type: BAPIAPPREQMATGROUPOptional: Yes
Call by Reference: No ( called with pass by value option)
INVEST_REASON - Reasons for Investment
Data type: BAPIAPPREQINVREASONOptional: Yes
Call by Reference: No ( called with pass by value option)
ENVIRONMNT_INVEST - Reasons for Environmental Investment
Data type: BAPIAPPREQENVINVESTOptional: Yes
Call by Reference: No ( called with pass by value option)
ASSETS_EQUIS - Assets and Equipment to be Replaced
Data type: BAPIAPPREQASSETOptional: Yes
Call by Reference: No ( called with pass by value option)
ORDER - 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 - Partners
Data type: BAPIAPPREQPARTNEROUTOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for BAPI_APPREQUEST_GETDETAIL 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, " | |||
| lt_assignment_to_budg_categ | TYPE STANDARD TABLE OF BAPIAPPREQEXPPROGASSGNBUDGCATG, " | |||
| 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_plan_total_obj | TYPE STANDARD TABLE OF BAPIAPPREQPLANTOTALMULTI, " | |||
| lt_plan_year_obj | 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' "Display appropriation request |
| 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 | |
| PLAN_TOTAL_OBJ | = lt_plan_total_obj | |
| PLAN_YEAR_OBJ | = lt_plan_year_obj | |
| 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 | ||
ABAP code using 7.40 inline data declarations to call FM BAPI_APPREQUEST_GETDETAIL
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