Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

select x x from Z appending table ITAB

Hi all,

SELECT bukrs

hkont

gjahr

belnr

FROM bsis

INTO TABLE itab

WHERE bukrs EQ p_bukrs.

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

SELECT bukrs

hkont

gjahr

belnr

budat

bldat

xblnr

wrbtr

FROM bsas

APPENDING TABLE itab

WHERE bukrs EQ p_bukrs.

what is this second select statement. I have checked the ITAB. in both the select statements ITAB Data is same ?

then why we are using this select ?

Thanks in advance

krupali.

Tags:
replied

Hi,

Suppose in first select statement 20 records are selected in table 'itab' from table 'bsis'.

And you want to add further rows in table 'itab' from table 'bsas' then you have to use this second select ( using APPENDING TABLE itab)....

Check sy-subrc of the second select statement....it should be 4 as no data r getting selected...

Regards

Debarshi

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question