‎2007 Aug 27 11:21 AM
Hi experts,
The internal table p0000 for the infotype 0000 is get populated before reaching the 'get pernr' statement. Then what is the use of this 'get pernr' statement. Can anybody explain me..
Regards,
Shanthi.
‎2007 Aug 27 12:08 PM
Report zzzz.
tables : pernr.
infotypes : 0000, 0001, 0002, 0008.
start-of-selection.
get pernr.
rp-provide-from-last p0000 space pn-begda pn-endda.
if p0000-stat2 <> "<Give the code for active employee status here>".
reject.
endif.
rp-provide-from-last p0001 space pn-begda pn-endda.
if pnp-sw-found = 1.
wa_itab-pernr = p0001-pernr.
endif.
rp-provide-from-last p0002 space pn-begda pn-endda.
if pnp-sw-found = 1.
wa_itab-cname = p0002-CNAME.
endif.
rp-provide-from-last p0008 space pn-begda pn-endda.
if pnp-sw-found = 1.
wa_itab-ansal = p0008-ansal.
For getting the SUMBB use the FM "RP_GET_ANSAL_FROM_WAGETYPES" by passing the wage types as coming from PA0008-LGA01 to PA0008-LGA40 ( Or till PA0008-LGA20 in case of 4.6 and lesser versions.)
endif.