cancel
Showing results for 
Search instead for 
Did you mean: 

Infotype 002 - Marital Status - Married - Infotype 0021 - Subtype 1

Former Member
0 Kudos

Experts,

The below dynamic actions for Infotype 0002 works fine when the marital status is changed (from Single to Married) via PA30. IT0021 (subtype 1) Infotype pops up with Family Member as 'Spouse'

But when we create IT0002 record with marital status as 'Married' while hiring the employee (PA40) IT0021 doesn't pop up with subtype 1. Can someone help here on how to achieve this.

Guess we cant add Infotype 0021 subtype 1 in the Infogroup for Hiring Action as we need to check the condition for Marital Status as 'Married' and only then we need to populate IT0021 (Subtype 1).

                                                                                                                                                                                                             

INFTYFNAMEOPERASEQNOKENNZVINFO
2FAMST6150PPSPAR-TCLAS='A'
2FAMST6151PT001P-MOLGA='01'
2FAMST6152PP0002-FAMST='1'/X
2FAMST6153PPSAVE-FAMST='0'
2FAMST6154IINS,0021,1,,(P0002-FAMDT),(P0002-ENDDA)
2FAMST6160PPSPAR-TCLAS='A'
2FAMST6161PT001P-MOLGA='01'
2FAMST6162PP0002-FAMST='3'/X
2FAMST6163PPSAVE-FAMST='1'
2FAMST6164IINS,0021,10,,(P0002-FAMDT),(P0002-ENDDA)
2FAMST6165ILIS9,0021,1,,(P0002-FAMDT),(P0002-ENDDA)
2FAMST6170PPSPAR-TCLAS='A'
2FAMST6171PT001P-MOLGA='01'
2FAMST6172PP0002-FAMST='2'/X
2FAMST6173PPSAVE-FAMST='1'
2FAMST6175ILIS9,0021,1,,(P0002-FAMDT),(P0002-ENDDA)
2FAMST6180PPSPAR-TCLAS='A'
2FAMST6181PT001P-MOLGA='01'
2FAMST6182PP0002-FAMST='0'/X
2FAMST6183PPSAVE-FAMST='1'
2FAMST6185ILIS9,0021,1,,(P0002-FAMDT),(P0002-ENDDA)
2FAMST6190PPSPAR-TCLAS='A'
2FAMST6191PT001P-MOLGA='01'
2FAMST6192PP0002-FAMST='1'/X
2FAMST6193PPSAVE-FAMST='3'
2FAMST6195IINS,0021,1,,(P0002-FAMDT),(P0002-ENDDA)
2FAMST6200PPSPAR-TCLAS='A'
2FAMST6201PT001P-MOLGA='01'
2FAMST6202PP0002-FAMST='1'/X
2FAMST6203PPSAVE-FAMST='2'
2FAMST6204IINS,0021,1,,(P0002-FAMDT),(P0002-ENDDA)

Thanks,

Sriram

Accepted Solutions (0)

Answers (3)

Answers (3)

jagan_gunja
Active Contributor
0 Kudos

Further, when there are several records of IT 2, the module part which processes dynamic actions, may not be positioning IT 2 at the right record (i.e, with the right validity period) corresponding to the pers.action date.

Hence I 'd suggest a call to a routine where the plausibility checks can be made, as well as the insert/maintain of IT 21. 

jimso101
Active Contributor
0 Kudos

Hi Sriram,

From the above dynamic action sequence  i don't think you will get the expected output.The code will only work if there is a change in Marital status. Because you are comparing two values

P0002-FAMST='2' against PSAVE-FAMST='0'.

For eg: During hiring action you are entering Married- Status 1 , while saving the infotype PSAVE - Status is still married which is '1'. I don't think your code has similar scenarios covered. So to list out all scenarios is difficult via dynamic action, so will suggest to go via routine route(creation of routine) which gives more flexibility.

Hopefully this helps.

Thanks & Regards

JIm

Former Member
0 Kudos

Hi Sriram,

I assume you process IT0002 before 0001 in your action.

Even though you'll have captured the personnel area on the start screen or in the IT0000 screen, IT0001 data will not have been saved yet at that point.

I assume that's why the rule can't fugure out the MOLGA yet and therefore the rule doesn't proceed.

Not 100% sure where it's talking the data from, but seems a logocal explanation. Does it work, if you remove the MOLGA check rule?

SO, you may have to develop some custom routine to achieve this.

best wishes

Sven