Skip to Content
0
Former Member
Dec 05, 2006 at 05:54 PM

Transferring data from one internal table to another

35 Views

Hi,

I have two internal tables it_acct and it_acct1 as below.

data: begin of it_acct occurs 0,

belnr like bkpf-belnr,

bldat like bkpf-bldat,

augcp like bseg-augcp,

vbeln like bseg-vbeln,

end of it_acct.

data: begin of it_acct1 occurs 0,

belnr like bkpf-belnr,

cpudt like bsad-cpudt,

vbeln like bseg-vbeln,

end of it_acct1.

select belnr cpudt vbeln into corresponding fields of table it_acct1

from bsad where cpudt in s_cpudt.

Now I want to move the data from it_acct1 to it_acct . I have no data in it_acct now.

i want to move it_acct1-belnr to it_acct-belnr,

move it_acct1-cpudt to it_acct-augcp,

move it_acct1-vbeln to it_acct-vbeln.

Can someone help me how to code to move the data from it_acct1 to it_acct.

Regards,

D