Skip to Content

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

LOOP and Read statements

Hi abapers,

I want to know the difference between statements.

SELECT MATNR MAKTX FROM MAKT INTO TABLE IT_MAKT.

SELECT EBELN EBELP ... ..... ..... FROM EKPO INTO IT_EKPO WHERE MATNR = IT_MAKT-MATNR.

1st statement

LOOP AT IT_MAKT INTO WA_MAKT.

READ TABLE IT_EKPO INTO WA_EKPO WITH KEY MATNR = IT_MAKT-MATNR.

2ND Statement

LOOP AT IT_EKPO INTO WA_EKPO.

READ TABLE IT_MAKT INTO WA_MAKT WITH KEY MATNR = IT_EKPO-MATNR.

Frnds , can anyone please help me to understand the exact difference between the above statements.

Thanks,

satish

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