Dynamic Action for Infotype 27 (Cost Distribution)
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...