Read Table : Error Stating mandt field is not filled.
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.
INTO TABLE spfli_tab
WHERE carrid = 'LH'.
READ TABLE spfli_tab
WITH TABLE KEY carrid = 'LH'
connid = '2402'.
IF sy-subrc = 0.
sumi girijan 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.