Friends,
I have been trying to write a dynamic action on IT0002 for the below 2 requirements but facing an issue.
Requirement:
1. Default "first name" in "Known As" field during hiring.
2. Default "Gender" based on "form of address" during hiring.
Gender is defaulting correctly but there is an issue with known as default.
Here is what is happening, step wise:
1) in PA40 - the "known as" field is initially blank, user saves the screen, eg First name "Matthew"
2) going back in PA30 in IT0002, we can see the known as field is populated with "Matthew" now, which is fine
3) when the user wants to change the "known as" to, say, "Matt", hit enter gives a "information" message - "No subsequent record for current selection criteria"
4) I get this 6 times after hitting enter each time
5) next time it gives the following "error" message - "Maximum number of internal sessions reached"
6) however the first name "Matt" is saved though
This is a pain for the user to go and hit enter 6 times and get all these messages before it can be saved.
Dynamic Action Code:
0002 | 06 | 1 | ***DEFAULT GENDER IN IT0002 BASED ON FOA*** | |||
0002 | 06 | 2 | P | T001P-MOLGA='10' | ||
0002 | 06 | 4 | P | P0000-MASSN='Z1'/X | ||
0002 | 06 | 6 | P | P0000-MASSN='Z4'/X | ||
0002 | 06 | 8 | P | P0002-ANRED='1' | ||
0002 | 06 | 10 | I | MOD,0002,,,(P0000-BEGDA),(P0000-ENDDA)/D | ||
0002 | 06 | 12 | W | P0002-GESCH='1' | ||
0002 | 06 | 14 | P | P0002-ANRED='2'/X | ||
0002 | 06 | 16 | P | P0002-ANRED='3'/X | ||
0002 | 06 | 18 | P | P0002-ANRED='4'/X | ||
0002 | 06 | 20 | I | MOD,0002,,,(P0000-BEGDA),(P0000-ENDDA)/D | ||
0002 | 06 | 22 | W | P0002-GESCH='2' | ||
0002 | 06 | 24 | P | P0000-MASSN='Z1'/X | ||
0002 | 06 | 26 | P | P0000-MASSN='Z4'/X | ||
0002 | 06 | 28 | I | MOD,0002 | ||
0002 | 06 | 30 | W | P0002-RUFNM=P0002-VORNA | ||
0002 | 06 | 31 | W | P0002-BEGDA=P0000-BEGDA | ||
0002 | 06 | 32 | W | P0002-ENDDA=P0000-ENDDA |
Regards
Nani