‎2006 Oct 06 4:50 AM
Hi Friends,
My requirement is as follows:
I have two internal table itab & jtab.
Itab having without header line & jtab is with header line.
Now i wanted to modify the fields & move these fields from itab to jtab.
Will u tell me how to do this.
my logic is like
move-corresponding itab-kunnr to jtab-kunnr.
move-corresponding itab-land1 to jtab-land1.
modify transporting jtab-kunnr jtab-land1.
I am getting error.
Plz tell me as earliest as possible.
‎2006 Oct 06 4:53 AM
‎2006 Oct 06 4:55 AM
Hi
wa_itab type <itab type>.
loop at itab into wa_itab.
move-corresponding wa_itab to jtab.
append jtab.
clear : wa_itab,jtab.
endloop.
Regards
- Gopi
Message was edited by: Gopi Narendra
‎2006 Oct 06 4:55 AM
Hi ,
U will have to declare work area for itab , an additional work area.
then u can move to Jtab.
also i think u dont have to use move-corresponding if the structure is same .
‎2006 Oct 06 4:56 AM
Since u dont have header line,do one thing declare a work area and move the content to work area and then move the work are contents to jtab.
Some thing like this:
loop at itab into wa.
move-corresponding wa to jtab.
endloop.
wa:is work area.
Check and see.
Regards
‎2006 Oct 06 4:57 AM
Hi,
Since itab is without header line,you need an explicit workarea for moving.
Declare an explicit workarea.
data wa like line of itab.
loop at itab into wa.
move-corresponding wa-kunnr to jtab-kunnr.
move-corresponding wa-land1 to jtab-land1.
append jtab.
endloop.
Kindly reward points if it helps.
Message was edited by: Jayanthi Jayaraman