Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Exit/BADI/Enhancement during Transfer Order creation

0 Kudos
1,971

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.

1 ACCEPTED SOLUTION

DominikTylczyn
Active Contributor
1,652

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

8 REPLIES 8

DominikTylczyn
Active Contributor
1,653

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

0 Kudos
1,652

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.

0 Kudos
1,652

deepak_2808 My answer has focused on standard enhancements available in LE-WM. Naturally, you can introduce required validation with implicit enhancements or change to SAP standard.

1,652

Hi 3a9e4ce873a94034b33dc62b0ce600ee, MWMTO010 worked for my requirement. Thank you so much!!

raymond_giuseppi
Active Contributor
1,652

If no Customer-Exit is suitable, you could also Look at Enhancement Spot ES_SAPLL03A (and implicit Enhancement Points too)

0 Kudos
1,652

Yeah this was my last option but the above exit worked for my requirement. Thank you.

nasar_
Discoverer
0 Kudos
1,652

HI Deepak

Could you please share the code you used to fulfill your requirement using the MWMTO010 ?

moshenaveh
Community Manager
Community Manager
1,652
Hello, While we're happy that you've come to SAP Community to get an answer to your question, you posted your question as an answer in an old thread.
I've converted your answer to a comment, but even so -- posting in older threads is not the best way to get guidance.
If you're looking for help, you should ask a new question: https://answers.sap.com/questions/ask.html.
Here are some tips to help you craft an effective question for our community: https://community.sap.com/resources/questions-and-answers, https://developers.sap.com/tutorials/community-qa.html, https://groups.community.sap.com/t5/welcome-corner-discussions/advice-from-sap-champions-questions-a....
I encourage you to follow this guidance, as I'd really like to see you get a solution to your problem.
I hope you find this advice useful!