2023 Feb 15 7:47 AM
I need an Exit/BADI/Enhancement at the time of transfer order creation. I need to compare quantities and give appropriate message to the user and stop the creation of Transfer orders.
This should trigger for any scenario of transfer order creation(TO ref delivery, TO from TR, etc) and any t code(LT01, LT04, etc) as well. I searched quite a few and couldn't find the proper place for my requirement. Any help or suggestion would be appreciated.
Thanks.
2023 Feb 15 11:11 AM
Hello deepak_2808
LE-WM user exits information is available in SPRO: Logistics Execution -> Warehouse Management -> Tools -> Develop User Exits for Warehouse Management:
However none of them is designed to validate transfer order data in general. Your best bet is MWMTO010 - it is call just before saving a transfer order; both header and items of the TO are provided in the exit interface:
FUNCTION EXIT_SAPLL03A_010.
*"----------------------------------------------------------------------
*"*"Globale Schnittstelle:
*" IMPORTING
*" VALUE(I_LTAK) LIKE LTAK STRUCTURE LTAK
*" TABLES
*" T_LTAP_VB STRUCTURE LTAP_VB
*" CHANGING
*" VALUE(C_SOLWM) LIKE LTAK-SOLWM
*"----------------------------------------------------------------------
As per MWMTO010 documentation, you can issue an error message with A type message.
I think this the best you can get in standard.
Best regards
Dominik Tylczynski
2023 Feb 15 11:11 AM
Hello deepak_2808
LE-WM user exits information is available in SPRO: Logistics Execution -> Warehouse Management -> Tools -> Develop User Exits for Warehouse Management:
However none of them is designed to validate transfer order data in general. Your best bet is MWMTO010 - it is call just before saving a transfer order; both header and items of the TO are provided in the exit interface:
FUNCTION EXIT_SAPLL03A_010.
*"----------------------------------------------------------------------
*"*"Globale Schnittstelle:
*" IMPORTING
*" VALUE(I_LTAK) LIKE LTAK STRUCTURE LTAK
*" TABLES
*" T_LTAP_VB STRUCTURE LTAP_VB
*" CHANGING
*" VALUE(C_SOLWM) LIKE LTAK-SOLWM
*"----------------------------------------------------------------------
As per MWMTO010 documentation, you can issue an error message with A type message.
I think this the best you can get in standard.
Best regards
Dominik Tylczynski
2023 Feb 15 2:14 PM
Thank you for the reply, i'll give MWMTO010 a try. Abend message wouldn't work for my scenario as other programs might be affected. I was thinking of an enhancement in FM L_TO_CREATE_INT, though i'm still not sure this would work for me.
2023 Feb 15 2:47 PM
2023 Feb 16 7:35 AM
Hi 3a9e4ce873a94034b33dc62b0ce600ee, MWMTO010 worked for my requirement. Thank you so much!!
2023 Feb 15 12:48 PM
If no Customer-Exit is suitable, you could also Look at Enhancement Spot ES_SAPLL03A (and implicit Enhancement Points too)
2023 Feb 16 7:35 AM
Yeah this was my last option but the above exit worked for my requirement. Thank you.
2023 Jul 31 12:39 PM
HI Deepak
Could you please share the code you used to fulfill your requirement using the MWMTO010 ?
2023 Jul 31 12:42 PM