Skip to Content
0
Former Member
Aug 27, 2007 at 07:32 AM

Searching material number, delivery number and destination storage unit nb.

19 Views

I am given the value corresponding to the field <b>lein-lenum</b> in first screen of transaction <b>lt13</b>. How can I manage with this single datum to determine:

- Material number

- Delivery number

- Destination storage unit number

Thanks.

What I have done so far is, after calling transaction <b>lt13</b>,

if sy-subrc = 0.

clear: entrega, material, orden, hudest.

select single vbeln_gen

into entrega

from vekp

where exidv = t1.

select single matnr tanum nlenr

into (material, orden, hudest)

from ltap

where vlenr = t1

and vbeln = entrega

and werks = zpl0_centro

and lgnum = zpl0_numalm.

...

endif.