Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Infotype 2006 - Dynamic Action to fill the field ANZHL (LEAVE)

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

Former Member
Not what you were looking for? View more on this topic or Ask a question