BAPI_0035_CREATE is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.
See here to view full function module documentation and code listing, simply by entering the name BAPI_0035_CREATE into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
0035
Released Date:
16.05.2005
Processing type: Remote-Enabled
CALL FUNCTION 'BAPI_0035_CREATE' "Create GM grant master data
EXPORTING
header_data = " bapi_0035_header Header data for grant master creation
* header_data_add = " bapi_0035_header_add Additional data for grant master creation
* default_control = " bapi_0035_default_control Checkbox for defaults to grant master
* testrun = " bapi_0035_fields-testrun Switch to Simulation Session for Write BAPIs
IMPORTING
grant = " bapi_0035_fields-grant_nbr Grant
TABLES
* responsibility = " bapi_0035_responsible Responsiblity for the grant
* funds = " bapi_0035_funds Funds for the grant master
* sponsored_program = " bapi_0035_sponsored_prog Sponsored program for grant master
* sponsored_class = " bapi_0035_sponsored_class sponsored class for grant master
* cost_sharing = " bapi_0035_costsharing Cost sharing in the grant master
* indirect_costs = " bapi_0035_indirectcost Indirectcost for grant master
* idc_cap = " bapi_0035_idc_cap Grant IDC Cap (Program + Class)
* idc_cap2 = " bapi_0035_idc_cap2 Grant IDC Cap (Grant level)
* fund_recovery = " bapi_0035_fund_recovery Fund recovery for grant
* sponsored_objects = " bapi_0035_sponsored_objects Grant master sponsored objects
* valuetype = " bapi_0035_valuetype GM: grant master value type posting control
* budget_validity = " bapi_0035_budget_validity Grant master budget validity
* budget_layout = " bapi_0035_budget_layout GM budget layout
* report_tracking = " bapi_0035_report_track GM report tracking
* grant_descriptions = " bapi_0035_grant_description GM Grant Description Texts
* extension_in = " bapiparex Ref. structure for BAPI parameter ExtensionIn/ExtensionOut
return = " bapiret2 Return Parameter
. " BAPI_0035_CREATE
The ABAP code below is a full code listing to execute function module BAPI_0035_CREATE including all data declarations. The code uses 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 original method of declaring data variables up front. 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).
| ld_grant | TYPE BAPI_0035_FIELDS-GRANT_NBR , |
| it_responsibility | TYPE STANDARD TABLE OF BAPI_0035_RESPONSIBLE,"TABLES PARAM |
| wa_responsibility | LIKE LINE OF it_responsibility , |
| it_funds | TYPE STANDARD TABLE OF BAPI_0035_FUNDS,"TABLES PARAM |
| wa_funds | LIKE LINE OF it_funds , |
| it_sponsored_program | TYPE STANDARD TABLE OF BAPI_0035_SPONSORED_PROG,"TABLES PARAM |
| wa_sponsored_program | LIKE LINE OF it_sponsored_program , |
| it_sponsored_class | TYPE STANDARD TABLE OF BAPI_0035_SPONSORED_CLASS,"TABLES PARAM |
| wa_sponsored_class | LIKE LINE OF it_sponsored_class , |
| it_cost_sharing | TYPE STANDARD TABLE OF BAPI_0035_COSTSHARING,"TABLES PARAM |
| wa_cost_sharing | LIKE LINE OF it_cost_sharing , |
| it_indirect_costs | TYPE STANDARD TABLE OF BAPI_0035_INDIRECTCOST,"TABLES PARAM |
| wa_indirect_costs | LIKE LINE OF it_indirect_costs , |
| it_idc_cap | TYPE STANDARD TABLE OF BAPI_0035_IDC_CAP,"TABLES PARAM |
| wa_idc_cap | LIKE LINE OF it_idc_cap , |
| it_idc_cap2 | TYPE STANDARD TABLE OF BAPI_0035_IDC_CAP2,"TABLES PARAM |
| wa_idc_cap2 | LIKE LINE OF it_idc_cap2 , |
| it_fund_recovery | TYPE STANDARD TABLE OF BAPI_0035_FUND_RECOVERY,"TABLES PARAM |
| wa_fund_recovery | LIKE LINE OF it_fund_recovery , |
| it_sponsored_objects | TYPE STANDARD TABLE OF BAPI_0035_SPONSORED_OBJECTS,"TABLES PARAM |
| wa_sponsored_objects | LIKE LINE OF it_sponsored_objects , |
| it_valuetype | TYPE STANDARD TABLE OF BAPI_0035_VALUETYPE,"TABLES PARAM |
| wa_valuetype | LIKE LINE OF it_valuetype , |
| it_budget_validity | TYPE STANDARD TABLE OF BAPI_0035_BUDGET_VALIDITY,"TABLES PARAM |
| wa_budget_validity | LIKE LINE OF it_budget_validity , |
| it_budget_layout | TYPE STANDARD TABLE OF BAPI_0035_BUDGET_LAYOUT,"TABLES PARAM |
| wa_budget_layout | LIKE LINE OF it_budget_layout , |
| it_report_tracking | TYPE STANDARD TABLE OF BAPI_0035_REPORT_TRACK,"TABLES PARAM |
| wa_report_tracking | LIKE LINE OF it_report_tracking , |
| it_grant_descriptions | TYPE STANDARD TABLE OF BAPI_0035_GRANT_DESCRIPTION,"TABLES PARAM |
| wa_grant_descriptions | LIKE LINE OF it_grant_descriptions , |
| it_extension_in | TYPE STANDARD TABLE OF BAPIPAREX,"TABLES PARAM |
| wa_extension_in | LIKE LINE OF it_extension_in , |
| it_return | TYPE STANDARD TABLE OF BAPIRET2,"TABLES PARAM |
| wa_return | LIKE LINE OF it_return . |
The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.
DATA:
| ld_grant | TYPE BAPI_0035_FIELDS-GRANT_NBR , |
| ld_header_data | TYPE BAPI_0035_HEADER , |
| it_responsibility | TYPE STANDARD TABLE OF BAPI_0035_RESPONSIBLE , |
| wa_responsibility | LIKE LINE OF it_responsibility, |
| ld_header_data_add | TYPE BAPI_0035_HEADER_ADD , |
| it_funds | TYPE STANDARD TABLE OF BAPI_0035_FUNDS , |
| wa_funds | LIKE LINE OF it_funds, |
| ld_default_control | TYPE BAPI_0035_DEFAULT_CONTROL , |
| it_sponsored_program | TYPE STANDARD TABLE OF BAPI_0035_SPONSORED_PROG , |
| wa_sponsored_program | LIKE LINE OF it_sponsored_program, |
| ld_testrun | TYPE BAPI_0035_FIELDS-TESTRUN , |
| it_sponsored_class | TYPE STANDARD TABLE OF BAPI_0035_SPONSORED_CLASS , |
| wa_sponsored_class | LIKE LINE OF it_sponsored_class, |
| it_cost_sharing | TYPE STANDARD TABLE OF BAPI_0035_COSTSHARING , |
| wa_cost_sharing | LIKE LINE OF it_cost_sharing, |
| it_indirect_costs | TYPE STANDARD TABLE OF BAPI_0035_INDIRECTCOST , |
| wa_indirect_costs | LIKE LINE OF it_indirect_costs, |
| it_idc_cap | TYPE STANDARD TABLE OF BAPI_0035_IDC_CAP , |
| wa_idc_cap | LIKE LINE OF it_idc_cap, |
| it_idc_cap2 | TYPE STANDARD TABLE OF BAPI_0035_IDC_CAP2 , |
| wa_idc_cap2 | LIKE LINE OF it_idc_cap2, |
| it_fund_recovery | TYPE STANDARD TABLE OF BAPI_0035_FUND_RECOVERY , |
| wa_fund_recovery | LIKE LINE OF it_fund_recovery, |
| it_sponsored_objects | TYPE STANDARD TABLE OF BAPI_0035_SPONSORED_OBJECTS , |
| wa_sponsored_objects | LIKE LINE OF it_sponsored_objects, |
| it_valuetype | TYPE STANDARD TABLE OF BAPI_0035_VALUETYPE , |
| wa_valuetype | LIKE LINE OF it_valuetype, |
| it_budget_validity | TYPE STANDARD TABLE OF BAPI_0035_BUDGET_VALIDITY , |
| wa_budget_validity | LIKE LINE OF it_budget_validity, |
| it_budget_layout | TYPE STANDARD TABLE OF BAPI_0035_BUDGET_LAYOUT , |
| wa_budget_layout | LIKE LINE OF it_budget_layout, |
| it_report_tracking | TYPE STANDARD TABLE OF BAPI_0035_REPORT_TRACK , |
| wa_report_tracking | LIKE LINE OF it_report_tracking, |
| it_grant_descriptions | TYPE STANDARD TABLE OF BAPI_0035_GRANT_DESCRIPTION , |
| wa_grant_descriptions | LIKE LINE OF it_grant_descriptions, |
| it_extension_in | TYPE STANDARD TABLE OF BAPIPAREX , |
| wa_extension_in | LIKE LINE OF it_extension_in, |
| it_return | TYPE STANDARD TABLE OF BAPIRET2 , |
| wa_return | LIKE LINE OF it_return. |
With this method you can create the master data of a grant
EXAMPLE
...See here for full SAP fm documentation
Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name BAPI_0035_CREATE or its description.
BAPI_0035_CREATE - Create GM grant master data BAPI_0035_CHANGE - Change grant master data BAPIW4W5INFOUSSIMULATECREATION - Employee W4/W5 Information: Simulate Record Creation BAPISDORDER_GETDETAILEDLIST - BAPIS1068_GET_POSTING_DATA - BAPIINTCONTROLSIMULATECREATION - Simulation: Create internal control