Hierarchy

⤷

⤷

IMG Activity
ID | HR_ECM_00_BD_E01 | Business Add-In: Initialize Budget Values |
Transaction Code | S_ALN_01002083 | (empty) |
Created on | 20030331 | |
Customizing Attributes | HR_ECM_00_BD_3_2_E | Budgeting - Not required - Not critical - User Exits |
Customizing Activity | HR_ECM_00_BD_E01 | BAdI HRECM00_BDG0001 |
Document
Document Class | SIMG | Hypertext: Object Class - Class to which a document belongs. |
Document Name | HRECM00_BDG0001 |
Use this Business Add-In (BAdI) to upload your enterprise's initial budget values from another source (for example, spreadsheet or database), into the Budget Values infotype (1520). The values can be amounts for monetary budgets or numbers for stock based budgets.
You need to add your own code changes in order to upload these budget values.
Example
Method: DETERMINE_BUDGET_VALUES
Import parameters Meaning
plvar Plan variant
butyp Budget type
begda Begin date of budget
endda End date of budget
kcurr Monetary budget indicator
budot Object type of budget unit, usually 'BU'
budid Budget unit id
oldam Old budget amount
oldcu Old budget currency
oldno Old budget number
oldsu Old budget stock unit
Export parameters Meaning
newam New budget amount
newcu New budget currency
newno New budget number
newsu New budget stock unit
Hints:
- If parameter kcurr is set to 'X', this is a monetary budget. Therefore you can only return an amount and a currency. If a number or stock unit is returned, SAP will generate an error.
- If parameter kcurr is set to ' ', then it is a non-monetary budget and you can only return a number and a stock unit. If an amount or stock unit is returned, SAP will generate an error. When returning an amount or number, you must also return the currency and the stock unit respectively.
Requirements
Standard settings
Recommendation
Activities
After calling up the IMG activity, a dialog box appears, in which you can enter a name for the implementation.
If you have already made other implementations for this BAdI, another dialog box appears, in which the existing implementations are displayed. In this case, choose Create, and proceed as follows:
- In the dialog box, enter a name for the BAdI implementation in the Implementation field, and choose Create.
The screen for creating BAdI implementations is now displayed. - Enter a short text for the implementation in the Short text for implementation field.
- From the tab index, choose Interface.
The Name of implemented class field is already filled on the tab page, as a class name was automatically assigned to the implementation when you named it. - Save your entries, and assign the implementation to a development class.
- Place the cursor on the method, and double-click to enter method processing.
- Enter the coding for the implementation between the statements method <Interface name> ~ <Name of method> and endmethod.
- Save and implement your coding. Return to the Edit Implementation screen.
- Save the entries on the Edit Implementation screen.
Note: You can also create an implementation, and then activate it at a later time. In such a case, end the processing stage at this point. - Choose Activate.
The coding you stored in the methods will be run when the application program is executed.
Further notes
Note: No negative amounts can be added. If you try to upload negative amounts, the system displays an error message and the Budget Values infotype (1520) is not updated.
To view an example implementation, proceed as follows:
- Go to transaction se18.
- Enter HRECM00_BDG0001 as the definition name and select Display.
- From the menu, choose Go to -> Sample code -> Display.
- Select (double click) on method DETERMINE_BUDGET_VALUES.
Business Attributes
ASAP Roadmap ID | 257 | Create User Exits |
Mandatory / Optional | 3 | Nonrequired activity |
Critical / Non-Critical | 2 | Non-critical |
Country-Dependency | A | Valid for all countries |
Maintenance Objects
Maintenance object type | E | Business Add-In - Definition |
History
Last changed by/on | SAP | 20031028 |
SAP Release Created in | 200 |