BAPI_0051_UPDATE 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_0051_UPDATE into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
0051
Released Date:
16.01.2002
Processing type: Remote-Enabled
CALL FUNCTION 'BAPI_0051_UPDATE' "FM Budgeting - Update totals
EXPORTING
f_mngt_area = " bapi_0051_fields-fm_area Financial management area
fisc_year = " bapi_0051_fields-fisc_year Fiscal year
versn = " bapi_0051_fields-version Budget version
bud_cat = " bapi_0051_fields-budcat Budget category
period_interval = " bapi_0051_period_interval Interval of periods to take into account for mass update
update_mode = " bapi_0051_fields-update_mode Update mode in mass transactions
* testrun = 'X' " bapi_0051_fields-testrun Switch to Simulation Session for Write BAPIs
TABLES
item_data = " bapi_0051_item_set Total line for Budget Data
* period_data = " bapi_0051_period_set Period value for Budget Data
return = " bapiret2 Return parameter
. " BAPI_0051_UPDATE
The ABAP code below is a full code listing to execute function module BAPI_0051_UPDATE 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).
| it_item_data | TYPE STANDARD TABLE OF BAPI_0051_ITEM_SET,"TABLES PARAM |
| wa_item_data | LIKE LINE OF it_item_data , |
| it_period_data | TYPE STANDARD TABLE OF BAPI_0051_PERIOD_SET,"TABLES PARAM |
| wa_period_data | LIKE LINE OF it_period_data , |
| 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_f_mngt_area | TYPE BAPI_0051_FIELDS-FM_AREA , |
| it_item_data | TYPE STANDARD TABLE OF BAPI_0051_ITEM_SET , |
| wa_item_data | LIKE LINE OF it_item_data, |
| ld_fisc_year | TYPE BAPI_0051_FIELDS-FISC_YEAR , |
| it_period_data | TYPE STANDARD TABLE OF BAPI_0051_PERIOD_SET , |
| wa_period_data | LIKE LINE OF it_period_data, |
| ld_versn | TYPE BAPI_0051_FIELDS-VERSION , |
| it_return | TYPE STANDARD TABLE OF BAPIRET2 , |
| wa_return | LIKE LINE OF it_return, |
| ld_bud_cat | TYPE BAPI_0051_FIELDS-BUDCAT , |
| ld_period_interval | TYPE BAPI_0051_PERIOD_INTERVAL , |
| ld_update_mode | TYPE BAPI_0051_FIELDS-UPDATE_MODE , |
| ld_testrun | TYPE BAPI_0051_FIELDS-TESTRUN . |
This method enables you to update budgeting totals.
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_0051_UPDATE or its description.
BAPI_0051_UPDATE - FM Budgeting - Update totals BAPI_0051_GET_TOTALS - Get FM budget totals BAPI_0050_REVERSE - Reverse FM Budgeting Entry document BAPI_0050_GET_LIST - Get list of budgeting entry documents BAPI_0050_GET_DETAIL - Get FM budgeting entry document BAPI_0050_CREATE - Create FM Budgeting Entry document