I am trying to program EXIT_SAPLL03A_013 in MWMTO013.
(Mind you I am a functional consultant with limited knowledge of ABAP..
What I want the system to do is in case the Warehouse is ‘400’, the Destination Storage type is ‘916’, and the Delivery type of the preceding Delivery is ‘ZS’, let the Destination bin be 916-001-SCRAP, instead of the dynamic bin (Delivery number).
My code is as follows (and is syntactically correct so I learned checking it):
Code: Select all
DATA: i_ltak TYPE ltak, i_ltap TYPE ltap, likp type likp, lv_lfart TYPE lfart. CHECK i_ltak-lgnum = '400' AND i_ltap-nltyp = '916'. SELECT SINGLE lfart from likp INTO lv_lfart WHERE vbeln = i_ltak-vbeln. IF lv_lfart = 'ZS'. i_ltap-nltyp = 'SCRAP'. ENDIF.
What do I need to change in the code…?
Thanks in advance for any clues!