Application Development and Automation 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: 
Read only

Function module for retrieving data from HR infotypes.

Former Member
0 Likes
3,835

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

4 REPLIES 4
Read only

Former Member
0 Likes
1,698

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

Read only

Former Member
0 Likes
1,698

Hi,,

try the FM HR_PT_GET_INFOTYPES

plzz reward if it is useful...

Read only

Former Member
0 Likes
1,698

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

Read only

uwe_schieferstein
Active Contributor
0 Likes
1,698

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