‎2010 Jan 28 1:00 PM
Hi Eveybody ,
I want to modify rgdir . But My code not working ? How can I do ?
Thanks Replys .
My code :
DATA : ls_rgdir LIKE LINE OF rgdir .
LOOP AT p.
MOVE p-pernr TO cd-key-pernr.
rp-imp-c2-cd .
CHECK: rp-imp-cd-subrc EQ 0 .
LOOP AT rgdir.
rx-key-pernr = p-pernr.
UNPACK rgdir-seqnr TO rx-key-seqno.
rp-imp-c2-tr.
CHECK: rp-imp-tr-subrc EQ 0.
MOVE rgdir TO ls_rgdir.
IF ls_rgdir-abkrs <> 40 .
ls_rgdir-abkrs = 10 .
ENDIF.
IF ls_rgdir-iabkrs <> 40 .
ls_rgdir-iabkrs = 10 .
ENDIF.
ENDIF.
MODIFY rgdir FROM ls_rgdir.
"apply changes..
ENDLOOP.
" rp-exp-c2-cd.
rp-exp-c2-cu .
ENDLOOP .
‎2010 Jan 28 1:21 PM
I'd never modify an internal table in its own loop.
use an 2nd "help-table" to modify.
h_table[] = rgdir.
loop at h_table ....
A.
‎2010 Jan 28 1:50 PM
You capture the cluster with "rp-imp-c2-cd." and the export is with "rp-exp-c2-cd." not with "rp-exp-c2-cu .". They are different clusters from HR
‎2014 Feb 06 8:47 PM
I have the same problem, can you help me pls?
I´m using rp-exp-c2-cd. but the RGDIR is not updated
thansk!