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

append value in structure

Former Member
0 Likes
4,651

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,423

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

9 REPLIES 9
Read only

Former Member
0 Likes
2,424

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

Read only

Former Member
0 Likes
2,423

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

Read only

Former Member
0 Likes
2,423

we cannot enter the values for the structure ..but we can do for the internal tables..

use append lines of itab to itab1.

Read only

Former Member
0 Likes
2,423

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

Read only

Former Member
0 Likes
2,423

Hi,

Use

Loop at itab into wa1.

Move corresponding wa1 to struct.

Endloop.

Loop at itab1 to wa2.

Move corresponding wa2 to struct.

Endloop.

Read only

Former Member
0 Likes
2,423

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

Read only

Former Member
0 Likes
2,423

Check if its a table or structure to which U want to insert data ..

If Its Table then only U can insert data .

Read only

Former Member
2,423

Hi Ashu,

We cannot append data into structures. We can have data only in internal tables.

Regards,

Chandra Sekhar

Read only

Former Member
0 Likes
2,423

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