Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

HR_READ_INFOTYPE issue

Former Member
0 Kudos

Hi everyone,

I know that, we use HR_READ_INFOTYPE to read the data store in an infotype for a given emloyee (given pernr).

Can I use the FM 'HR_READ_INFOTYPE' to read several infotypes for a pernr in the same time? (That is, use the FM only one time).

If possible how to do that?

Thanks and Regards,

Anirban

1 ACCEPTED SOLUTION

JozsefSzikszai
Active Contributor
0 Kudos

hi Anirban,

with HR_READ_INFOTYPE you can only read one infotype at a time. However you can use FM HRO1_READ_INFOTYPES to read more infotypes for one employee at the same time.

hope this helps

ec

5 REPLIES 5

JozsefSzikszai
Active Contributor
0 Kudos

hi Anirban,

with HR_READ_INFOTYPE you can only read one infotype at a time. However you can use FM HRO1_READ_INFOTYPES to read more infotypes for one employee at the same time.

hope this helps

ec

Former Member
0 Kudos

Hi Anirban,

That is not possible as the FM can take only one PERNR as input. Also the program logic inside the FM is not tailored to handle multiple Employee numbers.

For your requirement you need to customize the FM. But thats a Nightmare .

Cheers,

Kothand

Former Member
0 Kudos

This message was moderated.

former_member181995
Active Contributor
0 Kudos

Anirban,

Since you are using this Fm module in Some program than your purpose would be solve by this FM only.

As though just fill one internal table with infotypes and loop on it and

loop at itab.
CALL FUNCTION 'HR_READ_INFOTYPE'
       EXPORTING
            pernr           = pernr-pernr
            infty           = itab-infotp"<---this shold be itrate each time
       IMPORTING
            subrc           = subrc
       TABLES
            infty_tab       = p0717"<----this should be clear each time
       EXCEPTIONS
            infty_not_found = 1
            OTHERS          = 2.
endloop.

Cheers.

Former Member
0 Kudos

Thanks all.