on 10-22-2007 11:26 AM
Hi SAP Gurus....
How to write the dynamic action for creating the Infotype 27 (Cost Distribution) in background, the value of Cost Center should be proposed automatically. As we have created a Z table which includes PA, PSA and Cost Center.
DA which I have written...
0001 06 P P0000-MASSN='ZA' (hiring action)
0001 06 P T001P-MOLGA='40'
0001 06 P ZHR_COSTCENTER-WERKS=P0001-WERKS
0001 06 P ZHR_COSTCENTER-BTRTL=P0001-BTRTL
0001 06 I INS,0027,01,,(P0001-BEGDA),(P0001-ENDDA)/D
0001 06 W RHCD_TAB-KOSTL=ZHR_COSTCENTER-KOSTL
0001 06 W RHCD_TAB-PROZT='100'
Kindly help in this.. As its very urgent...
Regards,
Vikash
Hi,
The maintenance of dynamic actions is done via the view V_T588Z, as shown in Figure 1 (IMG menu path Personnel Management>Global Settings in Personnel Management>Basic Settings>Infotypes>Create Dynamic Actions).
Infotype Number (INFTY) 0027
Subtype (SUBTY): narrows the focus to a specific subtype
Function (FC): . They are 02 (change); 04 (create); 06 (create and change); 08 (delete); 10 (change and delete)
Sequence Number (NO): refers to a sequential number
Variable function part: The variable function part along with the step indicator forms the core part of your action. It specifies the processing details when the dynamic action is triggered
Reward Points
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You need to write a routine to read the value from table ZHR_COSTCENTER. The values used for decision ZHR_COSTCENTER-WERKS will not have a value unless you populate them.
My suggestion is that you read the table inside a routine and then pass the value back in structure fields viz RP50D for taking necessary decision. You can also do the logic inside the routine and pass the cost centre value back with structure RP50D.
Reward if this is helpful
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Are you getting any error while running the DA?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
110 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.