04-24-2008 3:52 PM
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.
04-24-2008 3:53 PM
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.
04-24-2008 3:53 PM
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.
04-24-2008 3:53 PM
04-24-2008 3:54 PM
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.
04-24-2008 3:54 PM
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
04-24-2008 4:20 PM
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.