Skip to Content
0
Former Member
Feb 02, 2010 at 11:02 AM

User exit modify?

25 Views

hi experts,

i have written user exit to extract the Unrestricted,blocked,quality inspection, stock in transfer by storage location wise.

but my extractor is picking up only the first storage location and the corresponding keyfigure values.

could you plz give me soluton to achive this.

i need to extract the keyfigure values by material,plant and storage location wise.

SELECT SINGLE * FROM MBEWH INTO MBEWH

WHERE MATNR EQ WA_L_S_KKBW_XBEW_IS4-MATERIAL

AND BKLAS EQ WA_L_S_KKBW_XBEW_IS4-VAL_CLASS

AND BWKEY EQ WA_L_S_KKBW_XBEW_IS4-PLANT

AND LFMON eq v_period

AND LFGJA eq v_year.

SELECT SINGLE * FROM MARDH INTO MARDH

WHERE MATNR EQ WA_L_S_KKBW_XBEW_IS4-MATERIAL

AND WERKS EQ WA_L_S_KKBW_XBEW_IS4-PLANT

AND LFMON eq v_period

AND LFGJA eq v_year.

IF SY-SUBRC = 0.

WA_L_S_KKBW_XBEW_IS4-ZZLBKUM = MBEWH-LBKUM .

WA_L_S_KKBW_XBEW_IS4-ZZSALK3 = MBEWH-SALK3.

WA_L_S_KKBW_XBEW_IS4-ZZLGORT = MARDH-LGORT.

WA_L_S_KKBW_XBEW_IS4-ZZUNREST = MARDH-LABST.

WA_L_S_KKBW_XBEW_IS4-ZZQUALITY = MARDH-INSME.

WA_L_S_KKBW_XBEW_IS4-ZZBLOCKED = MARDH-SPEME.

WA_L_S_KKBW_XBEW_IS4-ZZRETURNS = MARDH-RETME.

WA_L_S_KKBW_XBEW_IS4-ZZSTOCKIT = MARDH-UMLME.

ENDIF.

regards

vadlamudi