‎2008 Jul 30 10:01 AM
Hi,
I want to append records from two interrnal tables into the structure created in se11... bith internal tables are having comman key fields...
for example..
itab
a1
a2
a3
itab1
a1
a4
a5
and my structure is
struct
a1
a2
a3
a4
a5
plz help me to solve this..
Thanks & Regards
Ashu Si gh
‎2008 Jul 30 10:03 AM
use.
Loop at itab
Move itab1 to struct.
append struct.
Clear struct.
endloop.
Loop at itab1.
Move itab1 to struct.
append struct.
Clear struct.
endloop.
Regars
rajesh
‎2008 Jul 30 10:03 AM
use.
Loop at itab
Move itab1 to struct.
append struct.
Clear struct.
endloop.
Loop at itab1.
Move itab1 to struct.
append struct.
Clear struct.
endloop.
Regars
rajesh
‎2008 Jul 30 10:03 AM
Hi Ashu,
You cannt append the records in structure, structure can hold only a single record, that too, it can hold only at runtime.
Instead, u can create one more table & append the records to that.
Regards,
Sujatha
‎2008 Jul 30 10:04 AM
we cannot enter the values for the structure ..but we can do for the internal tables..
use append lines of itab to itab1.
‎2008 Jul 30 10:05 AM
Hi,
loop at itab1 into wa1
read table itab2 into wa2where a1 = itab1-a1
update the database table where the work area will have all the field values.
endloop
‎2008 Jul 30 10:06 AM
Hi,
Use
Loop at itab into wa1.
Move corresponding wa1 to struct.
Endloop.
Loop at itab1 to wa2.
Move corresponding wa2 to struct.
Endloop.
‎2008 Jul 30 10:06 AM
hi,
You cannot Append Lines to the Structure. Data can be Stored in the tables. Create one internal table.
Pass the Data inot the internal table.
Regards
Sumit Agarwal
‎2008 Jul 30 10:08 AM
Check if its a table or structure to which U want to insert data ..
If Its Table then only U can insert data .
‎2008 Jul 30 10:08 AM
Hi Ashu,
We cannot append data into structures. We can have data only in internal tables.
Regards,
Chandra Sekhar
‎2008 Jul 30 10:18 AM
Hi,
We cannot append the records in a structure, structure can hold only a single record, at runtime only.
Instead, you can create one more internal table having the same structure type & append the records to that internal table.
hope this helps.
thanx,
dhanashri