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

select and append

Former Member
0 Likes
645

hello friends,

i tried the below code,

it was giving sytax error appending,

can some one correct it.

loop at i_marc.

select aennr aetyp objkt revlv aedat ccsto from aeoi

into APPENDING CORRESPONDING FIELDS OF TABLE lt_aeoi

where matnr in i_marc.

endloop.

thanks.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
611

remove into before appending ..

loop at i_marc.

select aennr aetyp objkt revlv aedat ccsto from aeoi

APPENDING CORRESPONDING FIELDS OF TABLE lt_aeoi

where matnr in i_marc.

endloop.

thanks.

5 REPLIES 5
Read only

Former Member
0 Likes
612

remove into before appending ..

loop at i_marc.

select aennr aetyp objkt revlv aedat ccsto from aeoi

APPENDING CORRESPONDING FIELDS OF TABLE lt_aeoi

where matnr in i_marc.

endloop.

thanks.

Read only

b_deterd2
Active Contributor
0 Likes
611

delete APPENDING in your code

Read only

Former Member
0 Likes
611

Hi Sanjana,

you have to type like

loop at i_marc.

select aennr aetyp objkt revlv aedat ccsto from aeoi

into CORRESPONDING FIELDS OF TABLE lt_aeoi

where matnr in i_marc.

endloop.

you must not use appending.its not the syntax.

rewards points if helpful.

Read only

Former Member
0 Likes
611

Hi Sanjana,

loop at i_marc.

select aennr aetyp objkt revlv aedat ccsto from aeoi
APPENDING CORRESPONDING FIELDS OF TABLE lt_aeoi
where matnr in i_marc.
endloop.

Regards,

Sunil

Read only

Former Member
0 Likes
611

Hi,

Take out 'into' from the select statement.


loop at i_marc.

select aennr aetyp objkt revlv aedat ccsto from aeoi 
APPENDING CORRESPONDING FIELDS OF TABLE lt_aeoi 
where matnr in i_marc.

endloop.

Have u used delete adjacent duplicates for i_marc internal table before looping, otherwise you have duplicate entries.

Thanks,

Sriram Ponna.