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

iNTERNAL TABLE DOUBT PLZ..

Former Member
0 Likes
850

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

8 REPLIES 8
Read only

Former Member
0 Likes
823

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

Read only

Former Member
0 Likes
823

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

Read only

Former Member
0 Likes
823

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.

Read only

Former Member
0 Likes
823

Hi,

Try using INSERT LINES OF <itab1> INTO <itab2>

Regards,

Ruthra

Read only

Former Member
0 Likes
823

HEY FRNDS I M PASSING DATA FROM THE WORK AREAS OF BOTH THE TABLES.

SO HOW TO DO THAT.

Read only

0 Likes
823

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.

Read only

0 Likes
823

Hi i want to insert data to itab3 at a time from itab1 and itab2.

plzz advice..

Read only

0 Likes
823

any solutions frnds..