Skip to Content
0
Former Member
Jul 27, 2006 at 11:21 AM

Select statement

27 Views

Hi All

I got an Internal table STAB like

DATA: BEGIN OF STAB OCCURS 0,

BELNR LIKE BKPF-BELNR,

END OF STAB.

I want to read one BELNR from BKPF & NOT IN STAB-BELNR..I am trying belo..but not working..HOW CAN I READ

SELECT SINGLE BELNR FROM BKPF INTO DOCNO

WHERE BLDAT = DATE1

AND BUDAT = DATE2

AND BUKRS = COMPCO

AND BELNR IN STAB-BELNR.

I declare all the variables correctly.

Only problem with select statement. Can any one correct me ASAP.

Is there any other waysÂ…

Thanks & Regards

Rajendra