09-18-2008 12:45 PM
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
09-18-2008 12:52 PM
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
09-18-2008 12:52 PM
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
09-18-2008 12:53 PM
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
09-18-2008 1:11 PM
09-18-2008 1:12 PM
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.
09-22-2008 2:04 PM