Hi All,
I have used Move-Corresponding in my code,which I want to avoid. Logic I have used is as follow:
I have 2 tables, table A and Table B.Now if there are 10 fields in table A ,then in table B there are those same 10 and 4 more fields.
After populating table A,I pass the values of those 10 fields to table B and update the value of the rest 4.
Code:
loop at <table A> into <wa_A>
MOVE-CORRESPONDING <wa_A> to <wa_B>
<WA_B>-field1 = <>.
<WA_B>-field2 = <>.
<WA_B>-field3 = <>.
<WA_B>-field4 = <>.
APPEND <wa_B> to <Table B>
ENDLOOP.
Please tell me a more efficient way of doing this.I want to avoid using Move Corresponding
Regards