SAP BAPI_0038_CREATE Function Module for Create Funded Program
BAPI_0038_CREATE is a standard bapi 0038 create SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Create Funded Program 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 0038 create FM, simply by entering the name BAPI_0038_CREATE into the relevant SAP transaction such as SE37 or SE38.
Function Group: 0038
Program Name: SAPL0038
Main Program: SAPL0038
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function BAPI_0038_CREATE 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_0038_CREATE'"Create Funded Program.
EXPORTING
I_FMAREA = "
I_MEASURE = "
FMMEASURE = "FMMEASURE complient structure for BAPIs ( BOR: BUS0038 )
* TESTRUN = 'X' "Switch to Simulation Session for Write BAPIs
IMPORTING
E_FMAREA = "Financial Management Area
E_MEASURE = "Program in Funds Management
TABLES
FMMEASURET = "Funded Program text structure
* EXTENSION_IN = "Ref. structure for BAPI parameter ExtensionIn/ExtensionOut
* EXTENSION_OUT = "Ref. structure for BAPI parameter ExtensionIn/ExtensionOut
RETURN = "Return Parameter
IMPORTING Parameters details for BAPI_0038_CREATE
I_FMAREA -
Data type: FIKRSOptional: No
Call by Reference: No ( called with pass by value option)
I_MEASURE -
Data type: FM_MEASUREOptional: No
Call by Reference: No ( called with pass by value option)
FMMEASURE - FMMEASURE complient structure for BAPIs ( BOR: BUS0038 )
Data type: BAPI_0038_FMMEASURE_CREATEOptional: No
Call by Reference: No ( called with pass by value option)
TESTRUN - Switch to Simulation Session for Write BAPIs
Data type: BAPI_0038_FIELDS-TESTRUNDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for BAPI_0038_CREATE
E_FMAREA - Financial Management Area
Data type: FMMEASURE-FMAREAOptional: No
Call by Reference: No ( called with pass by value option)
E_MEASURE - Program in Funds Management
Data type: FMMEASURE-MEASUREOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for BAPI_0038_CREATE
FMMEASURET - Funded Program text structure
Data type: BAPI_0038_TEXTOptional: No
Call by Reference: Yes
EXTENSION_IN - Ref. structure for BAPI parameter ExtensionIn/ExtensionOut
Data type: BAPIPAREXOptional: Yes
Call by Reference: Yes
EXTENSION_OUT - Ref. structure for BAPI parameter ExtensionIn/ExtensionOut
Data type: BAPIPAREXOptional: Yes
Call by Reference: Yes
RETURN - Return Parameter
Data type: BAPIRET2Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for BAPI_0038_CREATE 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: | ||||
| lv_e_fmarea | TYPE FMMEASURE-FMAREA, " | |||
| lv_i_fmarea | TYPE FIKRS, " | |||
| lt_fmmeasuret | TYPE STANDARD TABLE OF BAPI_0038_TEXT, " | |||
| lv_e_measure | TYPE FMMEASURE-MEASURE, " | |||
| lv_i_measure | TYPE FM_MEASURE, " | |||
| lt_extension_in | TYPE STANDARD TABLE OF BAPIPAREX, " | |||
| lv_fmmeasure | TYPE BAPI_0038_FMMEASURE_CREATE, " | |||
| lt_extension_out | TYPE STANDARD TABLE OF BAPIPAREX, " | |||
| lt_return | TYPE STANDARD TABLE OF BAPIRET2, " | |||
| lv_testrun | TYPE BAPI_0038_FIELDS-TESTRUN. " 'X' |
|   CALL FUNCTION 'BAPI_0038_CREATE' "Create Funded Program |
| EXPORTING | ||
| I_FMAREA | = lv_i_fmarea | |
| I_MEASURE | = lv_i_measure | |
| FMMEASURE | = lv_fmmeasure | |
| TESTRUN | = lv_testrun | |
| IMPORTING | ||
| E_FMAREA | = lv_e_fmarea | |
| E_MEASURE | = lv_e_measure | |
| TABLES | ||
| FMMEASURET | = lt_fmmeasuret | |
| EXTENSION_IN | = lt_extension_in | |
| EXTENSION_OUT | = lt_extension_out | |
| RETURN | = lt_return | |
| . " BAPI_0038_CREATE | ||
ABAP code using 7.40 inline data declarations to call FM BAPI_0038_CREATE
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 FMAREA FROM FMMEASURE INTO @DATA(ld_e_fmarea). | ||||
| "SELECT single MEASURE FROM FMMEASURE INTO @DATA(ld_e_measure). | ||||
| "SELECT single TESTRUN FROM BAPI_0038_FIELDS INTO @DATA(ld_testrun). | ||||
| DATA(ld_testrun) | = 'X'. | |||
Search for further information about these or an SAP related objects