09-20-2008 2:28 PM
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
09-20-2008 2:44 PM
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
09-20-2008 2:39 PM
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.
09-20-2008 2:44 PM
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
09-20-2008 2:50 PM
09-20-2008 9:48 PM
>
> 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