SAP BAPI_0035_CREATE Function Module for Create GM grant master data









BAPI_0035_CREATE is a standard bapi 0035 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 GM grant master data 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 0035 create FM, simply by entering the name BAPI_0035_CREATE into the relevant SAP transaction such as SE37 or SE38.

Function Group: 0035
Program Name: SAPL0035
Main Program: SAPL0035
Appliation area:
Release date: 16-May-2005
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function BAPI_0035_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_0035_CREATE'"Create GM grant master data
EXPORTING
HEADER_DATA = "Header data for grant master creation
* HEADER_DATA_ADD = "Additional data for grant master creation
* DEFAULT_CONTROL = "Checkbox for defaults to grant master
* TESTRUN = "Switch to Simulation Session for Write BAPIs

IMPORTING
GRANT = "Grant

TABLES
* RESPONSIBILITY = "Responsiblity for the grant
* SPONSORED_OBJECTS = "Grant master sponsored objects
* VALUETYPE = "GM: grant master value type posting control
* BUDGET_VALIDITY = "Grant master budget validity
* BUDGET_LAYOUT = "GM budget layout
* REPORT_TRACKING = "GM report tracking
* GRANT_DESCRIPTIONS = "GM Grant Description Texts
* EXTENSION_IN = "Ref. structure for BAPI parameter ExtensionIn/ExtensionOut
RETURN = "Return Parameter
* FUNDS = "Funds for the grant master
* SPONSORED_PROGRAM = "Sponsored program for grant master
* SPONSORED_CLASS = "sponsored class for grant master
* COST_SHARING = "Cost sharing in the grant master
* INDIRECT_COSTS = "Indirectcost for grant master
* IDC_CAP = "Grant IDC Cap (Program + Class)
* IDC_CAP2 = "Grant IDC Cap (Grant level)
* FUND_RECOVERY = "Fund recovery for grant
.



IMPORTING Parameters details for BAPI_0035_CREATE

HEADER_DATA - Header data for grant master creation

Data type: BAPI_0035_HEADER
Optional: No
Call by Reference: No ( called with pass by value option)

HEADER_DATA_ADD - Additional data for grant master creation

Data type: BAPI_0035_HEADER_ADD
Optional: Yes
Call by Reference: No ( called with pass by value option)

DEFAULT_CONTROL - Checkbox for defaults to grant master

Data type: BAPI_0035_DEFAULT_CONTROL
Optional: Yes
Call by Reference: No ( called with pass by value option)

TESTRUN - Switch to Simulation Session for Write BAPIs

Data type: BAPI_0035_FIELDS-TESTRUN
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for BAPI_0035_CREATE

GRANT - Grant

Data type: BAPI_0035_FIELDS-GRANT_NBR
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for BAPI_0035_CREATE

RESPONSIBILITY - Responsiblity for the grant

Data type: BAPI_0035_RESPONSIBLE
Optional: Yes
Call by Reference: Yes

SPONSORED_OBJECTS - Grant master sponsored objects

Data type: BAPI_0035_SPONSORED_OBJECTS
Optional: Yes
Call by Reference: Yes

VALUETYPE - GM: grant master value type posting control

Data type: BAPI_0035_VALUETYPE
Optional: Yes
Call by Reference: Yes

BUDGET_VALIDITY - Grant master budget validity

Data type: BAPI_0035_BUDGET_VALIDITY
Optional: Yes
Call by Reference: Yes

BUDGET_LAYOUT - GM budget layout

Data type: BAPI_0035_BUDGET_LAYOUT
Optional: Yes
Call by Reference: Yes

REPORT_TRACKING - GM report tracking

Data type: BAPI_0035_REPORT_TRACK
Optional: Yes
Call by Reference: Yes

GRANT_DESCRIPTIONS - GM Grant Description Texts

Data type: BAPI_0035_GRANT_DESCRIPTION
Optional: Yes
Call by Reference: Yes

EXTENSION_IN - Ref. structure for BAPI parameter ExtensionIn/ExtensionOut

Data type: BAPIPAREX
Optional: Yes
Call by Reference: Yes

RETURN - Return Parameter

Data type: BAPIRET2
Optional: No
Call by Reference: Yes

FUNDS - Funds for the grant master

Data type: BAPI_0035_FUNDS
Optional: Yes
Call by Reference: Yes

SPONSORED_PROGRAM - Sponsored program for grant master

Data type: BAPI_0035_SPONSORED_PROG
Optional: Yes
Call by Reference: Yes

SPONSORED_CLASS - sponsored class for grant master

Data type: BAPI_0035_SPONSORED_CLASS
Optional: Yes
Call by Reference: Yes

COST_SHARING - Cost sharing in the grant master

Data type: BAPI_0035_COSTSHARING
Optional: Yes
Call by Reference: Yes

INDIRECT_COSTS - Indirectcost for grant master

Data type: BAPI_0035_INDIRECTCOST
Optional: Yes
Call by Reference: Yes

IDC_CAP - Grant IDC Cap (Program + Class)

Data type: BAPI_0035_IDC_CAP
Optional: Yes
Call by Reference: Yes

IDC_CAP2 - Grant IDC Cap (Grant level)

Data type: BAPI_0035_IDC_CAP2
Optional: Yes
Call by Reference: Yes

FUND_RECOVERY - Fund recovery for grant

Data type: BAPI_0035_FUND_RECOVERY
Optional: Yes
Call by Reference: Yes

Copy and paste ABAP code example for BAPI_0035_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_grant  TYPE BAPI_0035_FIELDS-GRANT_NBR, "   
lv_header_data  TYPE BAPI_0035_HEADER, "   
lt_responsibility  TYPE STANDARD TABLE OF BAPI_0035_RESPONSIBLE, "   
lt_sponsored_objects  TYPE STANDARD TABLE OF BAPI_0035_SPONSORED_OBJECTS, "   
lt_valuetype  TYPE STANDARD TABLE OF BAPI_0035_VALUETYPE, "   
lt_budget_validity  TYPE STANDARD TABLE OF BAPI_0035_BUDGET_VALIDITY, "   
lt_budget_layout  TYPE STANDARD TABLE OF BAPI_0035_BUDGET_LAYOUT, "   
lt_report_tracking  TYPE STANDARD TABLE OF BAPI_0035_REPORT_TRACK, "   
lt_grant_descriptions  TYPE STANDARD TABLE OF BAPI_0035_GRANT_DESCRIPTION, "   
lt_extension_in  TYPE STANDARD TABLE OF BAPIPAREX, "   
lt_return  TYPE STANDARD TABLE OF BAPIRET2, "   
lt_funds  TYPE STANDARD TABLE OF BAPI_0035_FUNDS, "   
lv_header_data_add  TYPE BAPI_0035_HEADER_ADD, "   
lv_default_control  TYPE BAPI_0035_DEFAULT_CONTROL, "   
lt_sponsored_program  TYPE STANDARD TABLE OF BAPI_0035_SPONSORED_PROG, "   
lv_testrun  TYPE BAPI_0035_FIELDS-TESTRUN, "   
lt_sponsored_class  TYPE STANDARD TABLE OF BAPI_0035_SPONSORED_CLASS, "   
lt_cost_sharing  TYPE STANDARD TABLE OF BAPI_0035_COSTSHARING, "   
lt_indirect_costs  TYPE STANDARD TABLE OF BAPI_0035_INDIRECTCOST, "   
lt_idc_cap  TYPE STANDARD TABLE OF BAPI_0035_IDC_CAP, "   
lt_idc_cap2  TYPE STANDARD TABLE OF BAPI_0035_IDC_CAP2, "   
lt_fund_recovery  TYPE STANDARD TABLE OF BAPI_0035_FUND_RECOVERY. "   

  CALL FUNCTION 'BAPI_0035_CREATE'  "Create GM grant master data
    EXPORTING
         HEADER_DATA = lv_header_data
         HEADER_DATA_ADD = lv_header_data_add
         DEFAULT_CONTROL = lv_default_control
         TESTRUN = lv_testrun
    IMPORTING
         GRANT = lv_grant
    TABLES
         RESPONSIBILITY = lt_responsibility
         SPONSORED_OBJECTS = lt_sponsored_objects
         VALUETYPE = lt_valuetype
         BUDGET_VALIDITY = lt_budget_validity
         BUDGET_LAYOUT = lt_budget_layout
         REPORT_TRACKING = lt_report_tracking
         GRANT_DESCRIPTIONS = lt_grant_descriptions
         EXTENSION_IN = lt_extension_in
         RETURN = lt_return
         FUNDS = lt_funds
         SPONSORED_PROGRAM = lt_sponsored_program
         SPONSORED_CLASS = lt_sponsored_class
         COST_SHARING = lt_cost_sharing
         INDIRECT_COSTS = lt_indirect_costs
         IDC_CAP = lt_idc_cap
         IDC_CAP2 = lt_idc_cap2
         FUND_RECOVERY = lt_fund_recovery
. " BAPI_0035_CREATE




ABAP code using 7.40 inline data declarations to call FM BAPI_0035_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 GRANT_NBR FROM BAPI_0035_FIELDS INTO @DATA(ld_grant).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
"SELECT single TESTRUN FROM BAPI_0035_FIELDS INTO @DATA(ld_testrun).
 
 
 
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!