Hi,
I had developed the code and i want to display the data according to the given condition. it is displaying the storage location of a material but when i specify a condition that only this should be displayed it is not working properly.
here's the code:-
tables: mard.
data: begin of itab occurs 0,
matnr like mard-matnr,
werks like mard-werks,
lgort like mard-lgort,
end of itab.
PARAMETERS: item like mard-MATNR,
plant like mard-werks.
select matnr werks lgort FROM mard
into table itab where matnr eq item and werks eq plant." and ( lgort eq 'w1wp' or lgort eq 'w1wp' ).
sort itab by matnr lgort.
loop at itab.
if itab-lgort eq 'w1wp'.
write: / itab-matnr,itab-lgort.
else.
write: / itab-matnr,itab-lgort.
endif.
ENDLOOP.