Skip to Content
0
Former Member
Jul 20, 2010 at 07:00 PM

retrieving data through RT_

33 Views

hi every body,

I have come across a problem I have access the data of RT using

for other period

call function 'CU_READ_RGDIR'

exporting

persnr = p0001-pernr

importing

molga = lv_molga

tables

in_rgdir = gs_rgdir.

sort gs_rgdir by seqnr.

CONCATENATE PNPPABRJ PNPPABRP into varfppr.

READ TABLE GS_rgdir into gs_rgdir WITH key fpper = varfppr.

SELECT SINGLE relid FROM t500l

INTO lv_relid

WHERE molga = lv_molga.

if sy-subrc = 0.

call function 'PYXX_READ_PAYROLL_RESULT'

exporting

clusterid = lv_RELID

employeenumber = p0001-pernr

sequencenumber = gs_rgDIR-SEQNR

read_only_international = 'X'

changing

payroll_result = result.

endif.

Now I have got all the required data in the RT but I need the most recent salary from the RT for the given month can some body tell me how to retrieve the data of the most recent salary through it. I have been using the other period option in it.

Edited by: ZAHID HAMEED on Jul 21, 2010 12:12 AM