mb1b transfer posting
In mb1b second screen, they are entering second line item which is called scrap(eg: M03-SCRAP).This is updated in MARD table as the scrap materials doesn't belong to any batch.
So, they are entering matnr and labst (quantity in second line item).
How to identify this particular scrap material from mard table.
I m writing query like this:-
SELECT matnr labst FROM mard
INTO CORRESPONDING FIELDS OF TABLE it_mard
WHERE matnr = 'M03-SCRAP'
AND werks = plant
AND lgort = '2200'.
How to get this material number without hardcoding bcoz this ll be vary for different material numbers.