cancel
Showing results for 
Search instead for 
Did you mean: 

Need a write a dynamic action

Former Member
0 Kudos


Hi Folks,

Can you help me in writing the dynamic action .

The pay scale type maintaied as follows:

S- Leadership

M- Manager

A- Assistant Manager

F-Executive

J- Junior Engineer

T- Trainee

The Different martial satus maintained is :

1. Married

2.living relationship

3. Divorced

4. Co.habituation

5.Single

6. unknown

Requirement is as follows:

we need the have a action dynamic action to update IT0167 for all the employees belong to particular country grouping 04, whenever an employee belonging to Payscale type F & above (F, A, M & S) has change in marital status ( only married or divorced, no other status should be considered).

This should happen only when IT0002 is updated not for creation of It 0002 of  marital status ( married & divorced only).

Thanks in advance for all your support.

Best Regards,

Rishitha

Accepted Solutions (0)

Answers (7)

Answers (7)

Former Member
0 Kudos

Hai Rishitha


 

0002


 

 

FAMST


 

 

02


 

 

10


 

 

P


 

 

T001P-TCLAS='A'


 

 

0002


 

 

FAMST


 

 

02


 

 

12


 

 

P


 

 

T001P-MOLGA='04'


 

 

0002


 

 

FAMST


 

 

02


 

 

14


 

 

P


 

 

P0008-TRFAR='S'/X


 

 

0002


 

 

FAMST


 

 

02


 

 

16


 

 

P


 

 

P0008-TRFAR='M'/X


 

 

0002


 

 

FAMST


 

 

02


 

 

18


 

 

P


 

 

P0008-TRFAR='A'/X


 

 

0002


 

 

FAMST


 

 

02


 

 

20


 

 

P


 

 

P0008-TRFAR='F'/X


 

 

0002


 

 

FAMST


 

 

02


 

 

22


 

 

P


 

 

P0002-FAMST='1'


 

 

0002


 

 

FAMST


 

 

02


 

 

24


 

 

I


 

 

MOD,0167,,,


 

Use MOD or COP operation and fill the desired Values what needs to be updated after MOD,0167, ......

Regards

Nidhin

Former Member
0 Kudos

Hi Nidhin,

This is not working:(

Regards,

Rishita

Former Member
0 Kudos

Hi,

Out of curiosity, can you try for just one pay scale type and test an employee in that pay scale type and one who's not?

0002FAMST0210PT001P-TCLAS='A'
0002FAMST0212PT001P-MOLGA='04'
0002FAMST0214PP0008-TRFAR='S'
0002FAMST0216PP0002-FAMST='1'
0002FAMST0218IINS,0167,,,
Former Member
0 Kudos

Hi Donnie,

Its not working:(

Regards,

Rishita

Former Member
0 Kudos

Ok. Let's try a different approach using PSAVE to compare old value.

For a single pay scale type check:

0002FAMST0210PT001P-TCLAS='A'
0002FAMST0212PT001P-MOLGA='04'
0002FAMST0214PP0008-TRFAR='S'
0002FAMST0216PP0002-FAMST='1'
0002FAMST0218PPSAVE-FAMST<>'1'
0002FAMST0220IINS,0167,,,

If the above works, try this for the four pay scale types:

0002FAMST0210PT001P-TCLAS='A'
0002FAMST0212PT001P-MOLGA='04'
0002FAMST0214PP0008-TRFAR='S'/X
0002FAMST0216PP0008-TRFAR='M'/X
0002FAMST0218PP0008-TRFAR='A'/X
0002FAMST0220PP0008-TRFAR='F'/X
0002FAMST0222PP0002-FAMST='1'
0002FAMST0224PPSAVE-FAMST<>'1'
0002FAMST0226IINS,0167,,,

I'd have validated these and the ones given previously but unfortunately, I do not have a system at my disposal currently. I'm using excel to write these.

Could you also confirm that you have full access to infotypes 0002 and 0008?

Hope this helps.

Donnie

ShrutiJoshi
Active Contributor
0 Kudos

Hi Rishitha

You can ask your abap consultant to write a subroutine for your conditions and then call this subroutine from dynamic actions.

Former Member
0 Kudos

Hi Shruti,

I can do that, only when I am 100% confirmed that it is not working via standard Dynamic action.

Regards,

Rishitha

Former Member
0 Kudos

Hi Folks,

Since Pay scale Type( TRFAR) field is from IT0008 and dynamic action is based on IT0002, so pay scale type is not validated.

Please confirm.

Regards,

Rishitha

jagan_gunja
Active Contributor
0 Kudos

Try changing the dynamic action to IT 8.

Former Member
0 Kudos

I have tried changing to IT8, now IT0167 is not appearing at all  for any change in marital status.

so its not working.

Regards,

Rishitha

Former Member
0 Kudos

Hi,

You may want to try two sets:

1.

0002FAMST0210PT001P-TCLAS='A'
0002FAMST0212PT001P-MOLGA='04'
0002FAMST0214PP0008-TRFAR='S'/X
0002FAMST0216PP0008-TRFAR='M'/X
0002FAMST0218PP0008-TRFAR='A'/X
0002FAMST0220PP0008-TRFAR='F'/X
0002FAMST0222PP0002-FAMST='1'
0002FAMST0224IINS,0167,,,

2.

0002FAMST0230PT001P-TCLAS='A'
0002FAMST0232PT001P-MOLGA='04'
0002FAMST0234PP0008-TRFAR='S'/X
0002FAMST0236PP0008-TRFAR='M'/X
0002FAMST0238PP0008-TRFAR='A'/X
0002FAMST0240PP0008-TRFAR='F'/X
0002FAMST0242PP0002-FAMST='3'
0002FAMST0244I

INS,0167,,,

Hope this helps.

Donnie

Former Member
0 Kudos

Hi Donnie,

It is not at all working in this case, nor even IT0167 is getting inserted.:(

Regards,

Rishitha

Former Member
0 Kudos

Hi Folks ,

Thanks  for your  help,

the dynamic action provided by Donnie is working fine for IT0002 FAMST condition.

It is creating IT0167 only in case of married or divorced, rest of the cases is not working, which is fine.

but the payscale group is not getting verified it is working for all the pay scale groups, which are not provided in the dynamic action also.

can yopu please help here, I want the dynamic action to work for few pay cale groups.

Regards.

Rishitha

Former Member
0 Kudos

Hi,

Try this:

0002FAMST0210PT001P-TCLAS='A'
0002FAMST0212PT001P-MOLGA='04'
0002FAMST0214PP0008-TRFAR='S'/X
0002FAMST0216PP0008-TRFAR='M'/X
0002FAMST0218PP0008-TRFAR='A'/X
0002FAMST0220PP0008-TRFAR='F'/X
0002FAMST0222PP0002-FAMST='1'/X
0002FAMST0224PP0002-FAMST='3'/X
0002FAMST0226IINS,0167,,,

Hope this helps.

Donnie

jagan_gunja
Active Contributor
0 Kudos

It is doubtful if you combine P checks with /X for more than one field, since the condition required is

P0008-TRFAR = (one of F, A, M, or S)

and P0002-FAMST= (one of 1 or 2)

Suggest trying one of the following

(A) as below  (i.e., remove X for the first line when the check is for a different field).

0002FAMST0210PT001P-TCLAS='A'
0002FAMST0212PT001P-MOLGA='04'
0002FAMST0214PP0008-TRFAR='S'/X
0002FAMST0216PP0008-TRFAR='M'/X
0002FAMST0218PP0008-TRFAR='A'/X
0002FAMST0220PP0008-TRFAR='F'/X
0002FAMST0222PP0002-FAMST='1'
0002FAMST0224PP0002-FAMST='3'/X
0002FAMST0226IINS,0167,,,

(B)after checking TCLAS & MOLGA, call a function to check TRFAR & FAMST and if true return X in RP50D-FLAG1; next if RP50D-FLAG1 =X, insert..

Former Member
0 Kudos

Hi Jagan,

I have checked your dynamic action also, its not working .

I want dynamic action to provide IT0167 only for few pay scale groups and only in case of change in marital status( married or divorce).

Regards,

Rishitha

Former Member
0 Kudos

We need to  implement dynamic action only, Is it possible to write dynamic action for the explained scenario.

Regards,

Rishitha

kamesh_g
Contributor
0 Kudos

Hi

Did you try implementing PBO exit ZXPADU02 for this ?

Thanks

Kamesh

Former Member
0 Kudos

Thanks for your reply Kamesh , but the requirement is only for dynamic action.

Can you explain more about this exit what it does.

Regards,

Rishitha