Skip to Content
0
Former Member
Mar 12, 2009 at 09:48 AM

For all entries

22 Views

Dear all,

I am stuck with for alle entries: plz guide me how to do that.

SELECT MATNR

MATKL

FROM MARA

INTO CORRESPONDING FIELDS OF TABLE IT_MARA

WHERE MATKL IN PRODUCT

AND MTART = 'ZFIN'.

SELECT KUNNR

KVGR2

FROM KNVV

INTO CORRESPONDING FIELDS OF TABLE IT_KNVV

WHERE KVGR2 IN BELT.

IF NOT IT_KNVV[] IS INITIAL.

SELECT VBELN

KUNRG

FKDAT

FROM VBRK

INTO CORRESPONDING FIELDS OF TABLE IT_VBRK

FOR ALL ENTRIES IN IT_KNVV

WHERE FKDAT IN PERIOD

AND KUNRG = IT_KNVV-KUNNR.

ENDIF.

IF NOT IT_VBRK[] IS INITIAL.

SELECT VBELN

MATNR

FROM VBRP

INTO CORRESPONDING FIELDS OF TABLE IT_VBRP

FOR ALL ENTRIES IN IT_VBRK

WHERE VBELN = IT_VBRK-VBELN

AND MATNR = IT_MARA-MATNR.

ENDIF.

Here in it_vbrp for all entries is not working.

Regards

Puneet