Requirement is IT0388 should come only for the Pay Groups QR2, QR5 and QR9 for the Action Transfer for only a few Action Reasons e.g. New Position Promotion, New Position Lateral, Existing Position Lateral etc.
Is it doable? I am thinking, this is should be via DA. Please advise. What should be steps?
If you want the infotype to appear every time the action is run with specific reasons then just create a new infogroup modifier and set up the infogroup accordingly.
If you want it to be further restricted so that it only appears when other criteria are met then you can do it through a dynamic action.
Simon
It is further restirictions e.g. For Action Transfer Z3 and the Action Reason 01, 02,03,04 the IT0388 should come up only for the Payroll Areas 7A, 7B and 7C.
I created the following DA, can you please confirm, if I am not missing anything:
0001 04 500 P T001P-MOLGA='10'
0001 04 501 P PSPAR-MASSN='Z3'
0001 04 515 P P0001-ABKRS='7A'/X
0001 04 516 P P0001-ABKRS='7B'/X
0001 04 517 P P0001-ABKRS='7C'/X
0001 04 504 P INS,0388,,,(P0000-BEGDA),(P0000-ENDDA)/D
You mentioned that Action with Specific Action Reason with sepcific IT (IT0388) can be taken care via IG modifier, how this is possible? or are you talking about all the actions reasons for specific Action in this case Action is Z3 and actions reasons are 01,02,03 and 04. Further for Payroll areas 7A, 7B and 7C only
The indicator for your insert should be an 'I' and not a 'P'. Also, if there are more than 4 action reasons, they will need to be defined as part of your dynamic action as well.
How should I include the Action Reasons 01,02,03,04 as part of this DA?
Should IT0001 not IT0000 in the DA, since this for Action Z3?
Is there an action reason 5, 6... etc. for this action?
I would use 0000 for the DA.
Yes, there are a few more action reasons, I just gave an example 1,2 ,3, 4, what should be the code for this condition.
Also, they want IT0388 to come after IT0008, in this case should it be IT0008 or IT0000
In order to add action reason, you would include the following:
0001 04 502 P PSPAR-MASSG='01', etc.
You may need to play around to get it to appear exactly where they want so you could definitely start by populating with 0008 instead.
Finally, I will create the following DA for the Condition : For Action Transfer Z3 and the Action Reason 01, 02,03,04 the IT0388 should come up only for the Payroll Areas 7A, 7B and 7C:
Can you review it for me? And then I can play around and test to see if it works.
0008 04 500 I T001P-MOLGA='10'
0008 04 501 I PSPAR-MASSN='Z3'
0008 04 502 I PSPAR-MASSG='01'
0008 04 503 I PSPAR-MASSG='02'
0008 04 504 I PSPAR-MASSG='03'
0008 04 505 I PSPAR-MASSG='04'
0008 04 506 I P0001-ABKRS='7A'/X
0008 04 507 I P0001-ABKRS='7B'/X
0008 04 508 I P0001-ABKRS='7C'/X
0008 04 504 I INS,0388,,,(P0000-BEGDA),(P0000-ENDDA)/D
Hi 2012 HCM,
a couple of things;
1. your plausability check lines should be P instead of I
2. You need 2 'or' decisions; one for the action reason and the second for the Payroll Aeas., You can't dot his in a single DA, and so will have to split it up into 3 or separate separate ones.
3. Your last line should be numbered 509.
i.e./e.g.
0008 04 500 P T001P-MOLGA='10'
0008 04 501 P PSPAR-MASSN='Z3'
0008 04 502 P PSPAR-MASSG='01'
0008 04 506 P P0001-ABKRS='7A'/X
0008 04 507 P P0001-ABKRS='7B'/X
0008 04 508 P P0001-ABKRS='7C'/X
0008 04 509 I INS,0388,,,(P0000-BEGDA),(P0000-ENDDA)/D
0008 04 510 P T001P-MOLGA='10'
0008 04 511 P PSPAR-MASSN='Z3'
0008 04 512 P PSPAR-MASSG='02'
0008 04 513 P P0001-ABKRS='7A'/X
0008 04 514 P P0001-ABKRS='7B'/X
0008 04 515P P0001-ABKRS='7C'/X
0008 04 516I INS,0388,,,(P0000-BEGDA),(P0000-ENDDA)/D
0008 04 517 P T001P-MOLGA='10'
0008 04 518P PSPAR-MASSN='Z3'
0008 04 519 P PSPAR-MASSG='03'
0008 04 520 P P0001-ABKRS='7A'/X
0008 04 521P P0001-ABKRS='7B'/X
0008 04 522P P0001-ABKRS='7C'/X
0008 04 523I INS,0388,,,(P0000-BEGDA),(P0000-ENDDA)/D
0008 04 524 P T001P-MOLGA='10'
0008 04 525 P PSPAR-MASSN='Z3'
0008 04 526P PSPAR-MASSG='04'
0008 04 527 P P0001-ABKRS='7A'/X
0008 04 528P P0001-ABKRS='7B'/X
0008 04 529P P0001-ABKRS='7C'/X
0008 04 530I INS,0388,,,(P0000-BEGDA),(P0000-ENDDA)/D
2. You need 2 'or' decisions; one for the action reason and the second for the Payroll Aeas., I did not understand this line?
2. You need 2 'or' decisions; one for the action reason and the second for the Payroll Aeas., I did not understand this line?
Put your cursor in the 'Variable funcion part' and click F1. There you can read up on logical 'or' links within the plausibility check and also find some really helpful examples.
I understand it and read documentation when created DA. Not sure what you mean by: You need 2 'or' decisions; one for the action reason and the second for the Payroll Aeas., I did not understand this line?
I thought it is typo or you missed a word.
Thank you so much for all you help.
All I meant is that in the DA that you pasted you had 4 lines;
0008 04 502 I PSPAR-MASSG='01'
0008 04 503 I PSPAR-MASSG='02'
0008 04 504 I PSPAR-MASSG='03'
0008 04 505 I PSPAR-MASSG='04'
As these don't have /X at the end they are treated as an 'AND' statement, but they can't all be true as they apply to the same field. However, as you are already using /X in the DA for the Payroll Area you can't use it again in the same DA, otherwise if any of the 7 'OR' statements was true it would process the DA e.g. if the reason was action reason was '05' and the Payroll Area was '7B' it would process the DA because one of the /X statements is true.
Regards
Simon
Thank you - I tested the following DA for the Condition create IT388 after IT0027 for the Action Transfer Z3 for all action reasons and the Py roll areas 7A,7B AND 7C. works fine except, start date for IT388 is not defaulting as would for the start date of the action.
0027 04 910 PSPAR-MASSN='Z3'
0027 04 911 P0001-ABKRS='7A'/X
0027 04 912 P0001-ABKRS='7B'/X
0027 04 913 P0001-ABKRS='7C'/X
0027 04 914 INS,0388/D
Make sure your last line reads:
0027 04 914 INS,0388,,,(P0000-BEGDA),(P0000-ENDDA)/D
by inserting the line suggested:
0027 04 914 I INS,0388,,,(P0000-BEGDA),(P0000-ENDDA)/D Still IT0388 is not coming up when I execute Action Transfer via PA40.
And if I change the last line 0027 04 914 I INS,0388, IT0388 comes up but start date does not default.
0027 04 911 P PSPAR-MASSN='Z3'
0027 04 912 P P0001-ABKRS='7A'/X
0027 04 912 P P0001-ABKRS='7B'/X
0027 04 912 P P0001-ABKRS='7C'/X
0027 04 914 I INS,0388,,,(P0000-BEGDA),(P0000-ENDDA)/D
The /D at the end of your insert means that it creates the infotype in the background. If you want to see it during the action, it should be part of your infogroup. If it isn't being created at all, it may be due to you using 0027 in your infotype field.
Perfect. I removed /D and IT388 from the DA and infogroup respectively. Now works.
Thanks so much. Sounds like you are really good at DA. I will post another Q on DA separately, I will request you to please help.
Hi
DA created so worked fine but the user requirement is changed a bit. Per new requirement - IT0388 should come up for the action "transfer" if employee is "coming in and out of the Pay Groups QR2, QR5 and QR9" for all Actions so that user can "remove" or "add" employee in the IT388.
Is it doable?
Hi Neo
PSAVE will check the old value of a field, however you may need to rework your DA to use it; it checks the fields of the infotype that your DA is based on (e.g. IT0027 in your example above, so you may have to change it so that it's triggered on IT0000 or IT0001).
e.g.
0001 04 911 P PSAVE-ABKRS='Z3' will check whether the PREVIOUS value of field ABKRS was Z3 or not.
Also, if this condition is in addition to the existing ones then it will be another /X (i.e. OR) decision, and so the DA may need to be split out again into another x3 versions.
Regards
Simon
Hi - In your previous replies, /X is read as AND but your this reply says /X means Or. Can you please confirm.
Also, since the requirements have changed, after user meeting, I will post a new thread on DA.
Thank you sooo much for your help so far.
The /X is read as an OR.