SAP Function Modules

BAPI_0035_CREATE SAP Function module - Create GM grant master data







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
remote enabled module settings


Pattern for FM BAPI_0035_CREATE - BAPI 0035 CREATE





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

ABAP code example for Function Module 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).

DATA:
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 .

DATA(ld_header_data) = 'Check type of data required'.
DATA(ld_header_data_add) = 'Check type of data required'.
DATA(ld_default_control) = 'Check type of data required'.

DATA(ld_testrun) = some text here

"populate fields of struture and append to itab
append wa_responsibility to it_responsibility.

"populate fields of struture and append to itab
append wa_funds to it_funds.

"populate fields of struture and append to itab
append wa_sponsored_program to it_sponsored_program.

"populate fields of struture and append to itab
append wa_sponsored_class to it_sponsored_class.

"populate fields of struture and append to itab
append wa_cost_sharing to it_cost_sharing.

"populate fields of struture and append to itab
append wa_indirect_costs to it_indirect_costs.

"populate fields of struture and append to itab
append wa_idc_cap to it_idc_cap.

"populate fields of struture and append to itab
append wa_idc_cap2 to it_idc_cap2.

"populate fields of struture and append to itab
append wa_fund_recovery to it_fund_recovery.

"populate fields of struture and append to itab
append wa_sponsored_objects to it_sponsored_objects.

"populate fields of struture and append to itab
append wa_valuetype to it_valuetype.

"populate fields of struture and append to itab
append wa_budget_validity to it_budget_validity.

"populate fields of struture and append to itab
append wa_budget_layout to it_budget_layout.

"populate fields of struture and append to itab
append wa_report_tracking to it_report_tracking.

"populate fields of struture and append to itab
append wa_grant_descriptions to it_grant_descriptions.

"populate fields of struture and append to itab
append wa_extension_in to it_extension_in.

"populate fields of struture and append to itab
append wa_return to it_return. . CALL FUNCTION 'BAPI_0035_CREATE' EXPORTING header_data = ld_header_data * header_data_add = ld_header_data_add * default_control = ld_default_control * testrun = ld_testrun IMPORTING grant = ld_grant TABLES * responsibility = it_responsibility * funds = it_funds * sponsored_program = it_sponsored_program * sponsored_class = it_sponsored_class * cost_sharing = it_cost_sharing * indirect_costs = it_indirect_costs * idc_cap = it_idc_cap * idc_cap2 = it_idc_cap2 * fund_recovery = it_fund_recovery * sponsored_objects = it_sponsored_objects * valuetype = it_valuetype * budget_validity = it_budget_validity * budget_layout = it_budget_layout * report_tracking = it_report_tracking * grant_descriptions = it_grant_descriptions * extension_in = it_extension_in return = it_return . " BAPI_0035_CREATE
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

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.

ld_header_data = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_responsibility to it_responsibility.
ld_header_data_add = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_funds to it_funds.
ld_default_control = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_sponsored_program to it_sponsored_program.

ld_testrun = some text here

"populate fields of struture and append to itab
append wa_sponsored_class to it_sponsored_class.

"populate fields of struture and append to itab
append wa_cost_sharing to it_cost_sharing.

"populate fields of struture and append to itab
append wa_indirect_costs to it_indirect_costs.

"populate fields of struture and append to itab
append wa_idc_cap to it_idc_cap.

"populate fields of struture and append to itab
append wa_idc_cap2 to it_idc_cap2.

"populate fields of struture and append to itab
append wa_fund_recovery to it_fund_recovery.

"populate fields of struture and append to itab
append wa_sponsored_objects to it_sponsored_objects.

"populate fields of struture and append to itab
append wa_valuetype to it_valuetype.

"populate fields of struture and append to itab
append wa_budget_validity to it_budget_validity.

"populate fields of struture and append to itab
append wa_budget_layout to it_budget_layout.

"populate fields of struture and append to itab
append wa_report_tracking to it_report_tracking.

"populate fields of struture and append to itab
append wa_grant_descriptions to it_grant_descriptions.

"populate fields of struture and append to itab
append wa_extension_in to it_extension_in.

"populate fields of struture and append to itab
append wa_return to it_return.

SAP Documentation for FM BAPI_0035_CREATE


With this method you can create the master data of a grant

EXAMPLE ...See here for full SAP fm documentation

Contribute (Add Comments)

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.