Skip to Content
0
Former Member
Sep 28, 2006 at 08:11 AM

Syntax error

32 Views

hello all,

SELECT B~MATNR

INTO TABLE LT_FINAL

FROM /SAPAPO/MATLOC AS A

INNER JOIN /SAPAPO/MATKEY AS B ON AMATID EQ BMATID

INNER JOIN /SAPAPO/LOC AS C ON ALOCID EQ CLOCID

WHERE C~LOCID EQ LT_ORDKEYS-LOCID.

Error : lt_ordkeys is a table without header line.

My Declaration is.

data : LT_ORDKEYS TYPE /SAPAPO/OM_ORDKEY_TAB,

But i cannot declare like

LT_ORDKEYS TYPE /SAPAPO/OM_ORDKEY_TAB with header line.

Then i cannot pass it to Fm CALL FUNCTION '/SAPAPO/OM_ORDER_GET_DATA'

importing parameter : et_ordkeys.

How to solve this ?