Skip to Content
0
Former Member
Aug 05, 2008 at 01:58 PM

internal table

16 Views

SELECT * FROM mara UP TO 1 ROWS

INTO CORRESPONDING FIELDS OF TABLE itab

WHERE matnr IN s_matnr AND ersda IN s_date.

READ TABLE itab INDEX 1 .

IF sy-subrc EQ 0 .

SELECT SINGLE * FROM makt WHERE matnr EQ itab-matnr .

ENDIF .

select * from mast into table w_mast

for all entries in itab where matnr = itab-matnr.

loop at w_mast.

SELECT * FROM stpo APPENDING TABLE w_stpo

WHERE stlnr = w_mast-stlnr.

READ TABLE w_stpo index 1 .(I need help here , bcoz internal table has more than one content)so i cant use read

ENDLOOP.