Skip to Content

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

Read Table STMT

Hi All

When Reading ITAB i m facing some problem. i wrote the code a below.in that s_matnr is selection screen input(ranges).kindly check it. and if u have any code for reading itab with more than one selection-screen input like s_matnr,s_werks,s_lifnr.

READ TABLE IT_MSEG WITH KEY MBLNR = IT_MKPF-MBLNR

MJAHR = IT_MKPF-MJAHR

MATNR IN S_MATNR.

IT_MAIN-MATNR = IT_MSEG-MATNR.

IT_MAIN-WERKS = IT_MSEG-WERKS.

IT_MAIN-LIFNR = IT_MSEG-LIFNR.

IT_MAIN-MENGE = IT_MSEG-MENGE.

by this code i m trying to move the records to it_main from it_mseg in a loop.

when i mention matnr in s_matnr it is throwing error.

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