Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Modify RGDIR

Former Member
0 Likes
788

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 .

3 REPLIES 3
Read only

andreas_mann3
Active Contributor
0 Likes
551

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.

Read only

Former Member
0 Likes
551

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

Read only

Former Member
0 Likes
551

I have the same problem, can you help me pls?

I´m using  rp-exp-c2-cd. but the RGDIR is not updated

thansk!