on 05-18-2009 8:33 PM
Hello Gurus,
When an employee leaves the company, the system must to create the infotype 2006 filled. We need to create a dynamic action to do that.
We already got the values for fields: P2006-KTART, P2006-BEGDA,P2006-ENDDA, P2006-DESTA and P2006-DEEND.
But we don't know how to get the number of vacation days to fill the field ANZHL....
We found the program RP2006P0 and we think the form ' calc_va_days_on_exit ' may give us the value that we want, but we tried to use it and it didn't work.
Here is the dynamic action that we are using:
0000 06 200 * *******LEAVE**********
0000 06 205 P T001P-MOLGA='55'
0000 06 210 P P0000-MASSN='AE'
0000 06 215 W PSPAR-PERSG='S'
0000 06 220 W PSPAR-PERSK='S1'
0000 06 225 P T001P-MOLGA='55'
0000 06 230 P P0000-MASSN='AE'
0000 06 235 I INS,2006,55,
0000 06 237 F CALC_VA_DAYS_ON_EXIT(RP2006P0)
0000 06 240 W P2006-BEGDA=P0000-BEGDA
0000 06 245 W P2006-ENDDA=P0000-BEGDA
0000 06 249 W P2006-ANZHL=RP50D-FIELD1
0000 06 250 I INS,0416,
Thaks in advance.
Best regards,
PC
give a break point in that program.
this will give you, whether program is called when dynamic action is triggered or not.
Based on this, try to find out, whether RP50D-Field1 got any values.
IF yu get the values in the field, then field ANZHL should be updated.
Regards
...Sadhu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi PC,
In "0000 06 235 I INS,2006,55," hope 55 is the existing subtype of IT2006.
Also, ANZHL is of DEC type where as RP50D-FIELD1 is of CHAR type. So i fear if there is a data type mismatch too, but i am not sure. Try to debug the same.
Thanks,
Ravi.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
97 | |
10 | |
9 | |
6 | |
3 | |
3 | |
3 | |
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.