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: 

subtype in HR_READ_INFOTYPE

Former Member
0 Kudos

Hi

i have a requirement where i need t fetch subtype specific data from infotype '0006' using HR_READ_INFOTYPE.

how do we get this done?

Thanks & Regards

Manjari

1 ACCEPTED SOLUTION

Former Member
0 Kudos

subty can be given in import parameters of HR_READ_SUBTYPE

is better to use select than hr_read_infotype

select *

from pa0006

into it_0006

where subty = g_subtyp

and begda le sy-datum

and enda ge sy-datum.

this will fetch you all the active employees for the given subtype

4 REPLIES 4

Former Member
0 Kudos

Hi.

HR_READ_INFOTYPE function module can't carry out your task.

Instead, you should use HR_READ_SUBTYPE function module which has

importing parameter SUBTY responsible for reading subtype specific data from infotype.

Former Member
0 Kudos

subty can be given in import parameters of HR_READ_SUBTYPE

is better to use select than hr_read_infotype

select *

from pa0006

into it_0006

where subty = g_subtyp

and begda le sy-datum

and enda ge sy-datum.

this will fetch you all the active employees for the given subtype

0 Kudos

Yes, I agree with you. This will work much faster.

>

> Yes, I agree with you. This will work much faster.

But I don't quite agree.. Using the function call will save you the need to check for Authns.. with a direct db Select, you will have to put in explicit Authority-checks..

~Suresh