Skip to Content
0
Former Member
Jan 14, 2008 at 10:29 AM

report

20 Views

hi experts

plse tell me is there any thing wrong in the below logic,i am not getting values to the wa_stko.

SELECT matnr

werks

stlnr

FROM mast

INTO TABLE i_mast

FOR ALL ENTRIES IN i_marc

WHERE matnr = i_marc-matnr AND

stlan = '1' AND

stlal = '01'.

ENDIF .

IF NOT i_mast IS INITIAL.

SELECT stlnr

FROM stko

INTO TABLE i_stko

FOR ALL ENTRIES IN i_mast

WHERE stlnr = i_mast-stlnr AND

datuv IN r_datuv AND "sy-datum to be changed

loekz NE 'X' AND

stlst = '1'.

ENDIF .

LOOP AT i_stko INTO wa_stko .

  • LOOP AT i_mast INTO wa_mast WHERE stlnr = wa_stko-stlnr.

READ TABLE i_mast INTO wa_mast WITH KEY stlnr = wa_stko-stlnr.

wa_stko-matnr = wa_mast-matnr.

wa_stko-werks = wa_mast-werks.

wa_stko-stlnr = wa_mast-stlnr.

with regads

sermarao