SAP HR_ECM_CHANGE_BUDGET_VALUE Function Module for Change budget amount, number or by percentage
HR_ECM_CHANGE_BUDGET_VALUE is a standard hr ecm change budget value SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Change budget amount, number or by percentage 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 hr ecm change budget value FM, simply by entering the name HR_ECM_CHANGE_BUDGET_VALUE into the relevant SAP transaction such as SE37 or SE38.
Function Group: HRECM00BUDGETSTRUC
Program Name: SAPLHRECM00BUDGETSTRUC
Main Program: SAPLHRECM00BUDGETSTRUC
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function HR_ECM_CHANGE_BUDGET_VALUE 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 'HR_ECM_CHANGE_BUDGET_VALUE'"Change budget amount, number or by percentage.
EXPORTING
BUDOT = "Object Type
MESSAGE_HANDLER = "HR Master Data: Messages
BUDID = "Object ID
CHGTYP = "Single-character flag
* NEWAM = 0 "Budgeted Amount
* NCURR = "Currency Key
* NEWNO = 0 "Number of Budgeted Awards
* PERCT = 0 "Change by percentage for budget amount / quantity
* ROLL_UP = ' ' "Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')
* CHCONS = 'X' "Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')
IMPORTING
IS_OK = "Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')
CHANGING
BUDGET_STRUC_TAB = "Table of budget objects
IMPORTING Parameters details for HR_ECM_CHANGE_BUDGET_VALUE
BUDOT - Object Type
Data type: OTYPEOptional: No
Call by Reference: Yes
MESSAGE_HANDLER - HR Master Data: Messages
Data type: IF_HRPA_MESSAGE_HANDLEROptional: No
Call by Reference: Yes
BUDID - Object ID
Data type: OBJEKTIDOptional: No
Call by Reference: Yes
CHGTYP - Single-character flag
Data type: CHAR1Optional: No
Call by Reference: Yes
NEWAM - Budgeted Amount
Data type: ECM_BDAMTOptional: Yes
Call by Reference: No ( called with pass by value option)
NCURR - Currency Key
Data type: CURCYOptional: Yes
Call by Reference: No ( called with pass by value option)
NEWNO - Number of Budgeted Awards
Data type: ECM_BDNUMOptional: Yes
Call by Reference: No ( called with pass by value option)
PERCT - Change by percentage for budget amount / quantity
Data type: CMP_BU_PRZOptional: Yes
Call by Reference: Yes
ROLL_UP - Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')
Data type: BOOLE_DDefault: SPACE
Optional: Yes
Call by Reference: Yes
CHCONS - Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')
Data type: BOOLE_DDefault: 'X'
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for HR_ECM_CHANGE_BUDGET_VALUE
IS_OK - Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')
Data type: BOOLE_DOptional: No
Call by Reference: Yes
CHANGING Parameters details for HR_ECM_CHANGE_BUDGET_VALUE
BUDGET_STRUC_TAB - Table of budget objects
Data type: HRECM00BUDGET_STRUC_TABOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for HR_ECM_CHANGE_BUDGET_VALUE 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_budot | TYPE OTYPE, " | |||
| lv_is_ok | TYPE BOOLE_D, " | |||
| lv_budget_struc_tab | TYPE HRECM00BUDGET_STRUC_TAB, " | |||
| lv_message_handler | TYPE IF_HRPA_MESSAGE_HANDLER, " | |||
| lv_budid | TYPE OBJEKTID, " | |||
| lv_chgtyp | TYPE CHAR1, " | |||
| lv_newam | TYPE ECM_BDAMT, " 0 | |||
| lv_ncurr | TYPE CURCY, " | |||
| lv_newno | TYPE ECM_BDNUM, " 0 | |||
| lv_perct | TYPE CMP_BU_PRZ, " 0 | |||
| lv_roll_up | TYPE BOOLE_D, " SPACE | |||
| lv_chcons | TYPE BOOLE_D. " 'X' |
|   CALL FUNCTION 'HR_ECM_CHANGE_BUDGET_VALUE' "Change budget amount, number or by percentage |
| EXPORTING | ||
| BUDOT | = lv_budot | |
| MESSAGE_HANDLER | = lv_message_handler | |
| BUDID | = lv_budid | |
| CHGTYP | = lv_chgtyp | |
| NEWAM | = lv_newam | |
| NCURR | = lv_ncurr | |
| NEWNO | = lv_newno | |
| PERCT | = lv_perct | |
| ROLL_UP | = lv_roll_up | |
| CHCONS | = lv_chcons | |
| IMPORTING | ||
| IS_OK | = lv_is_ok | |
| CHANGING | ||
| BUDGET_STRUC_TAB | = lv_budget_struc_tab | |
| . " HR_ECM_CHANGE_BUDGET_VALUE | ||
ABAP code using 7.40 inline data declarations to call FM HR_ECM_CHANGE_BUDGET_VALUE
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.| DATA(ld_roll_up) | = ' '. | |||
| DATA(ld_chcons) | = 'X'. | |||
Search for further information about these or an SAP related objects