on 04-11-2008 8:47 AM
Hi all
I need to create infotype 0041 in the background when hiring a person in Denmark (MOLGA 09). I tried to create a dynamic action doing this but it is acting strange. I will post the records from table T588Z later in this text.
Problem is that I actually follow an example from the HR convention (at Orlando this year) but it will not work when i set the MOLGA = 09. I can only get the action to execute if I set the MOLGA <> 09 (or in fact <> from anything).
I have talked this over with my colleagues and now I ask of you bright people if you can tell me what I am doing wrong. The entries in T588Z is as follows:
iType STy Field N FC No. S Variable f p
0000 MASSN 04 50 P P0000-MOLGA='09'
0000 MASSN 04 52 P MASSN=01
0000 MASSN 04 54 I INS,0041,,,(P0000-BEGDA),(P0000-ENDDA)/D
0000 MASSN 04 56 W P0041-DAR01='01'
0000 MASSN 04 58 W P0041-DAT01=P0000-BEGDA
0000 MASSN 04 60 W P0041-DAR02='40'
0000 MASSN 04 62 W P0041-DAT02=P0000-ENDDA
Now, I hire a person to a danish PA and I have MOLGA 09 on my profile. So the question is - why does the above entries only work when I set No. 50 in the sequence to <> instead of =
Best regards from Jesper
Hi,
I dont get your problem Exactly.
You try change the No.50 by
T001P-MOLGA='09'
PSPAR-MASSN='01'
Regards,
Manoj.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
50 is the sequence number. Sorry I should be more specific. What I ma trying to do is to auto generate an infotype 41 record when doing a hiring. When i validate on MOLGA, SAP does not generate the IT 41 when MOLGA is set to be equal to 09. Only when I set it to be not equal to 09. I wonder if the MOLGA is unknown to the system at the creation time.
EDIT sorry, the table is of course T001P and not P0000 but I still have the issue
Edited by: Jesper Lund Hedegaard on Apr 11, 2008 10:16 AM
I have just checked, and all entries in T001P on the chosen WERKS has MOLGA 09. A good point though but still no sollution.
UPDATE I know this is disturbing because all your suggestions are good but they are all already as you suggest. It just does not make sense to me why it will not work then.
Edited by: Jesper Lund Hedegaard on Apr 11, 2008 1:12 PM
Hi Jesper,
What I set for my client, just giving code over here.
Itype STy Field N FC NO S Variable Function part
0000 04 401 ** CREATE IT 0041 FOR GLOBAL**
0000 04 406 P T001P-MOLGA='07'/X
0000 04 408 P T001P-MOLGA='10'/X
0000 04 411 P PSPAR-MASSN='ZA' (Hiring action)
0000 04 412 I INS,0041,,,(P0000-BEGDA),(P0000-ENDDA)/D
0000 04 413 W P0041-DAR12='ZA' (Hiring Date)
0000 04 414 W P0041-DAT12=P0000-BEGDA
0000 04 415 W P0041-DAR11='ZC' (Probation date)
0000 04 418 W P0041-DAT11=P0000-BEGDA
I think it will solve your problem.
Regards,
Purnima
This is getting technical. I have received some settings for the table and people tell me they work in their system. I even had a consultant use my code and it worked - but only not in my system.
Right now I am thinking that there must be something "behind" the table that differs but that part is way to technical for me. Since the code I used does work on other systems I figured it had to do with something else. Any suggestions on that part are also very welcome
User | Count |
---|---|
107 | |
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.