2009 Mar 27 11:16 AM
Hi All
I am trying to fetch records for wage type range between 8100 to 8214 for a particular finacial period .
I have written this provide statement.
e.g say a emp A which has 3 wage types 8110, 8150 , 8214 which are valid for the current period.
but this provide returns only one 8110. any idea how can I return all the three wage types.
provide * into wa_p0002 from p0002
into wa_p0014 from p0014 between pn-begda and pn-endda
where p0014-lgart between s_lgart-low and s_lgart-high.
rgds
C
2009 Mar 27 11:23 AM
Replace Between by IN.
where p0014-lgart IN s_lgart.
Edited by: harsh bhalla on Mar 27, 2009 4:53 PM
2009 Mar 27 11:24 AM
provide * into wa_p0002 from p0002
into wa_p0014 from p0014 between pn-begda and pn-endda
where p0014-lgart IN s_lgart.
2009 Mar 27 11:44 AM
I tried using
provide * into wa_p0002 from p0002
into wa_p0014 from p0014 between pn-begda and pn-endda
where p0014-lgart in s_lgart.
but still not working returns only one record.
2009 Mar 27 11:50 AM
2009 Mar 27 2:12 PM
Hi Amit
I tried using internal table but it doesnt works, thing is I am getting the value between provide and end provide so it doesnt makes diff if I use WA or internal table.
what do you suggest, how we can extract all the relevant wagetype for particular pernr.
2009 May 27 12:05 PM
used function CU_READ_RGDIR,
read table rgdir into wa_rgdir with key srtza = 'A'
ABKRS = 'GM'
fpbeg = pn-begda fpend = pn-endda.
function PYXX_READ_PAYROLL_RESULT
loop at payroll-inter-rt
2009 Mar 27 11:26 AM
hi ,
try this...
write the statment between provide , end provide.
provide * into wa_p0002 from p0002
* into wa_p0014 from p0014 between pn-begda and pn-endda
where p0014-lgart between s_lgart-low and s_lgart-high.
append wa_p0014 to t_poo14.
endprovide.
you are using work are..
always work area contains one field.
Regards,
Prabhudas
2009 May 27 12:05 PM