cancel
Showing results for 
Search instead for 
Did you mean: 

Fetching wagetypes from an infotype

Former Member
0 Kudos

Hi All,

I have a requirement wherein i need to fetch wagetypes from IT 0008 subtype IN11 based on the latest record available for that employee.

Any pointers in this regard would be of utmost help.

Regards,

Amrita

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Amrita

you can use FM HR_READ_INFOTYPE to read details of a IT-0008 for a employee for a given date.

then your p0008 structure would be populated , you can use do varying to get the exact wagetype.

using the above function module is better option if you dont know how to use do varying command.

but do varying is also a simple command.

code :

DO 40 TIMES VARYING lgart FROM p0008-lga01 NEXT p0008-lga0

IF lgart = 'IN11' .

                      • Your logic

EXIT.

ENDIF.

ENDDO.

hope this is helpful for you

Former Member
0 Kudos
Former Member
0 Kudos

Hi,

Thanks for ur immediate response. I need to fetch the wagetypes for a particular employee selected. So is there any other way that i can use instead of GET PERNR.

Regards,

Amrita

Former Member
0 Kudos

Please use the function module 'RP_FILL_WAGE_TYPE_TABLE_EXT' to fetch wage type details from IT0008

Former Member
0 Kudos

What is the context ? ABAP? Payroll/ Time schema? Query?

Former Member
0 Kudos

Hi ,

Its an ABAP query.

Thanks,

Amrita