2010 Feb 25 8:42 AM
Hi all,
I have a requirement as such If employee's employment status(STAT2=0) is withdrawn or retireee(STAT2=2) on report run date then fetch position type for the last hold position and display in output.
Can you help me in coding the above please. Thnaks in advance
2010 Feb 25 10:24 AM
Hi,
<li>Try this way.
Thanks
Venkat.O
SELECT * FROM pa0000 INTO p0000 WHERE pernr = '00090104'
AND stat2 in ('2', '0').
SELECT * FROM pa0001 INTO p0001 WHERE pernr = '00090104'
AND endda LE p0000-endda
AND begda GE p0000-begda.
WRITE p0001-plans. "Plans is Position
ENDSELECT.
ENDSELECT.
2010 Feb 25 9:27 AM
Hi,
Use the reoprt flexible employee data.
Tcode:- S_AHR_61016362
2010 Feb 25 10:09 AM
2010 Feb 25 10:24 AM
Hi,
<li>Try this way.
Thanks
Venkat.O
SELECT * FROM pa0000 INTO p0000 WHERE pernr = '00090104'
AND stat2 in ('2', '0').
SELECT * FROM pa0001 INTO p0001 WHERE pernr = '00090104'
AND endda LE p0000-endda
AND begda GE p0000-begda.
WRITE p0001-plans. "Plans is Position
ENDSELECT.
ENDSELECT.
2010 Feb 25 10:40 AM
Hi, <li>Use the function module HR_GET_POSITIONS_FOR_EMPLOYEE. Thanks Venkat.O