‎2006 Oct 12 7:12 AM
hI FRNDS..
hOPE ALL R DOING FINE..
i HAV FEW DOUBTS..
1) HOW TO DUMP IDOC DATA INTO EXCEL SHEET WHILE
WE ARE GOING FROM OUTBOUND TO INBOUND I.E INBETWEEN WE ARE IN THE PROCESS IDOC DATA SHULD BE DUMPED INTO EXCEL SHEET.
2) I HAV 2 INTERNAL TABLES AND I WANT TO DUMP MY BOTH THE TABLES DATA SIMULTANEOUSLY INTO 3RD INTERNAL TABLE AND WANT TO KNOW THE TOTAL NO OF RECORDS CAN ANYONE TELL ME THE LOGIC BEHIND THAT PROCESS.
LOOKING FOR UR REPLIES.
REGARDS,
sahakla
‎2006 Oct 12 7:18 AM
Hi,
You cannot dump contents of 2 internal table in one go but you could do the following...provded the structure is same.
Append lines of itab1[] to itab2[]
Append lines of itab2[] to itab3[]
and to count the number of records. look below
data: cnt type n.
n = lines( itab1 ).
write: / n.
Thanks...
Preetham
‎2006 Oct 12 7:18 AM
for 2. If all internal tables have the same Structure then u can use like this.
itab3[] = itab[]1.
loop at itab2.
move-corresponding itab2 to itab3.
append itab3.
clear itab3.
endloop.
then u can all DESCRIBE command on itab3 after deleting the indentical records.
In that case u have to use within the loops also.
<b>loop at itab1 into wa.
move-corresponding wa to itab3.
append itab3.
clear itab3.
endloop.
loop at itab2 into wa.
move-corresponding wa to itab3.
append itab3.
clear itab3.
endloop.</b>
regards
Prabhu
Message was edited by: Prabhu Peram
‎2006 Oct 12 7:21 AM
Tell us what actually is the screnario.Otherwise find out the number of lines in both internal tables.Use DO ...wHILe with the number of line TIMES and append the records each time into third internal table.
‎2006 Oct 12 7:22 AM
Hi,
Try using INSERT LINES OF <itab1> INTO <itab2>
Regards,
Ruthra
‎2006 Oct 12 7:31 AM
HEY FRNDS I M PASSING DATA FROM THE WORK AREAS OF BOTH THE TABLES.
SO HOW TO DO THAT.
‎2006 Oct 12 7:35 AM
Hi,
It's better to pass the contents at a stretch.
itab3[] = itab1[].
append lines of itab2 to itab3.
But if you are passing thro' workarea,then you need loop.
loop at itab1 into wa1.
append wa1 to itab3.
endloop.
loop at itab2 into wa2.
append wa2 to itab3.
endloop.
data ln type i.
describe table itab3 lines ln.
write : 'No. of lines', ln.
‎2006 Oct 12 7:55 AM
Hi i want to insert data to itab3 at a time from itab1 and itab2.
plzz advice..
‎2006 Oct 12 8:16 AM