Skip to Content

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

Read Table : Error Stating mandt field is not filled.

Dear members,

I am get syntax error when using Read table statement saying mandt field is not filled, however if I remove the KEY field. it is working fine.

please let me know, where I am doing mistake. thank you.

Data : spfli_tab like STANDARD TABLE OF spfli with HEADER LINE.


FROM spfli

INTO TABLE spfli_tab

WHERE carrid = 'LH'.

READ TABLE spfli_tab

WITH TABLE KEY carrid = 'LH'

connid = '2402'.

IF sy-subrc = 0.



Former Member
Former Member replied


The problem occurred since, you used the "WITH TABLE KEY" extension for "Read table".

This extension, will prompt the user to include all the table keys(in SPFLI, the table keys are MANDT,CARRID,CONNID).

If you don't want to compare with your system id...go for "WITH KEY" extension for "Read table" statement.

Try this.



0 View this answer in context

Helpful Answer

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