cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic Action - Sub Routine

Former Member
0 Kudos

Hi,

My requirement is that based on the union code given on IT0001 and pay scale data on IT0008, IT0057 should be auto populated with subtype, payee code, wagetype and amount.

Currently using dynamic action, I am able to populate subtype, payee code and wagetype. To populate amount by default, I used a subroutine and called it from dynamic actions.

Sub routine will inturn check conditions and based on pay scale, it will calculate the amount and stores in RP50D-FIELD1.

I am assigning RP50D-FIELD1 to P0057-BETRG, but it still it does not populate.

Am I missing something ?

Any help will be greatly appreciated.

Thanks!

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

You may need some type casting mechanism as FIELD1 is a char-field and BETRG is currency.

Please also check the following wiki page for reference:

https://wiki.sdn.sap.com/wiki/display/ERPHCM/HowtoCreateaDynamic+action

Regards,

Dilek

Edited by: Dilek Ersoz Adak on Jun 3, 2010 7:36 AM

Former Member
0 Kudos

Can you provide your dynamic action coding here?

Former Member
0 Kudos

Hi,

You can user Exit here . User Exit --> EXIT_SAPFP50M_002.

Please ask some ABAP er to check it.

Transaction SMOD.

Enhancement --> PBAS0001

Function Module --> EXIT_SAPFP50M_002

Thanks & Regards,

Sandip