‎2008 Jan 22 10:39 AM
Hi all,
I have to retrieve some data from PA0001,PA0105 and PA0006 infotypes for a particular PERNR(Personnel Number).
I tried to use HR_READ_INFOTYPE.But it only retrieves data from a single infotype.
Is there any other function module to retrieve data from more than one infotypes.
Thanks in advance.
Regards,
Kashyap Ivaturi
‎2008 Jan 22 10:54 AM
Hi Kashyap
Please use the FM HR_99S_READ_INFOTYPE by passing the infotypes to be read to table IM_TAB_INFTY. This FM helps you to read multiple infotypes at one call.
Regards
Ranganath
‎2008 Jan 22 11:02 AM
Hi,,
try the FM HR_PT_GET_INFOTYPES
plzz reward if it is useful...
‎2008 Jan 22 12:02 PM
Hi
this can also be done using... GET pernr.
For this..... in attributes of pgm... give LDB as PNP....
in pgm....
tables : pernr.
infotypes : 0001,0105,0006.
start-of-selection.
get pernr.
*--now p0001,p0006 and p0105 contians data of those infotypes for this pernr.....
u can filter data using PROVIDE statement......
PROVIDE * from p0006 between pn-begda and pn-endda where subty = '01'.
ENDPROVIDE.
also u can use JOINS/PROJECTIONS or combination of them as per ur requirement....!!!!
**************************************************
If u want only function modules... then u can go for them....!!!!
Regards
Vasu
‎2008 Jan 22 12:10 PM
Hello Kashyap
If you are already on ECC 5.0 or higher then you may have a look at my Wiki posting:
[Unified Access to All HR Infotypes|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/unified%2baccess%2bto%2ball%2bhr%2binfotypes]
Regards,
Uwe