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

move

Former Member
0 Likes
654

hi,

if want to move same structure, same data type and same sequence but different component name, for example, the first component for table1 is bukrs whereas table2 is rbukrs but they are same data type/size.

may i know how to move the data from table1 to table2?

thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
624

HI

In this case, we have to explicitly move the content.

<b>Eg: TAB2-RBUKRS = TAB1-BUKRS.</b>

Kind Regards

Eswar

4 REPLIES 4
Read only

Former Member
0 Likes
625

HI

In this case, we have to explicitly move the content.

<b>Eg: TAB2-RBUKRS = TAB1-BUKRS.</b>

Kind Regards

Eswar

Read only

Former Member
0 Likes
624

Hi,

If both the structure are same, with same data type and same sequence and only different name then just use below given statement.

ITAB2 = ITAB1.

Let say these are two internal tables then

  LOOP AT itab1.

    itab2 = itab1.
    APPEND itab2.

  ENDLOOP.

Let me know if you have any question.

Regards,

RS

Read only

0 Likes
624

ITAB1[] = ITAB2[]

Read only

Former Member
0 Likes
624

hi,

try to use itab1[] = itab2[] for copying the body or tyr with keyword MOVE-CORESSPONDING ITAB1 INTO ITAB2.

if helpful assign points.

ravi