on 04-02-2015 4:53 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok. Let's try a different approach using PSAVE to compare old value.
For a single pay scale type check:
0002 | FAMST | 02 | 10 | P | T001P-TCLAS='A' |
0002 | FAMST | 02 | 12 | P | T001P-MOLGA='04' |
0002 | FAMST | 02 | 14 | P | P0008-TRFAR='S' |
0002 | FAMST | 02 | 16 | P | P0002-FAMST='1' |
0002 | FAMST | 02 | 18 | P | PSAVE-FAMST<>'1' |
0002 | FAMST | 02 | 20 | I | INS,0167,,, |
If the above works, try this for the four pay scale types:
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 | P | PSAVE-FAMST<>'1' |
0002 | FAMST | 02 | 26 | I | INS,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
Hi Rishitha
You can ask your abap consultant to write a subroutine for your conditions and then call this subroutine from dynamic actions.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You may want to try two sets:
1.
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 | INS,0167,,, |
2.
0002 | FAMST | 02 | 30 | P | T001P-TCLAS='A' |
0002 | FAMST | 02 | 32 | P | T001P-MOLGA='04' |
0002 | FAMST | 02 | 34 | P | P0008-TRFAR='S'/X |
0002 | FAMST | 02 | 36 | P | P0008-TRFAR='M'/X |
0002 | FAMST | 02 | 38 | P | P0008-TRFAR='A'/X |
0002 | FAMST | 02 | 40 | P | P0008-TRFAR='F'/X |
0002 | FAMST | 02 | 42 | P | P0002-FAMST='3' |
0002 | FAMST | 02 | 44 | I | INS,0167,,, |
Hope this helps.
Donnie
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Try this:
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'/X |
0002 | FAMST | 02 | 24 | P | P0002-FAMST='3'/X |
0002 | FAMST | 02 | 26 | I | INS,0167,,, |
Hope this helps.
Donnie
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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).
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 | P | P0002-FAMST='3'/X |
0002 | FAMST | 02 | 26 | I | INS,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..
We need to implement dynamic action only, Is it possible to write dynamic action for the explained scenario.
Regards,
Rishitha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Did you try implementing PBO exit ZXPADU02 for this ?
Thanks
Kamesh
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.