‎2008 Mar 26 9:45 AM
Hi experts,
I'm trying to modify the payroll results (table RT) using the macro rp-exp-c2-r* but it doesn't work.
This is the code I've written:
cd-key-pernr = p_pernr.
rp-imp-c2-cd.
LOOP AT rgdir
WHERE fpper EQ period
AND srtza EQ 'A'.
MOVE p_pernr TO rx-key-pernr.
UNPACK rgdir-seqnr TO rx-key-seqno.
rp-imp-c2-rf.
IF rp-imp-rf-subrc NE 0.
REJECT.
ENDIF.
LOOP AT RT WHERE lgart EQ p_lgart.
rt-betrg = p_betrg.
MODIFY rt.
ENDLOOP.
versc-void = rgdir-void.
versc-voidr = rgdir-voidr.
versc-voidd = rgdir-voidd.
versc-voidt = rgdir-voidt.
rp-exp-c2-rf.
WRITE: / 'Complete', rp-imp-rf-subrc.
PERFORM prepare_update USING 'V'.
ENDLOOP.
END-OF-SELECTION.
INCLUDE rpcmgr00.
INCLUDE rpppxm00.Unfortunately, nothing changes.
Can anyone help me?
Many thanks,
A. Cepa
‎2008 Mar 26 11:01 AM
Finally,
I've found the mistake.
This was missing and now it works properly.
DATA: BEGIN OF COMMON PART buffer.
INCLUDE rpppxd10.
DATA: END OF COMMON PART buffer.instead of only the include:
INCLUDE rpppxd10.Best regards,
A. Cepa
‎2010 Sep 29 7:29 PM
Hi Angel
Do you still have a source code for reference.
We performed exactly as per your self discovered solution by the RT result still could not get updated
thanks
Greg