cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BADI for Sales Order integration with Embedded TM

0 Likes
2,168

Hello Community,

We are on SAP S4 HANA 1809 SP01 with Embedded TM.

We have requirement to restrict Sales Orders from creating Freight Unit, if the "Sales Order Overall Status == blocked" due to any reason including Delivery Block or Custom Block statuses.

There are BADI's available for TRQ creation with External TM "BAdI for IntracompanyTransportationRequestRequest_In", but assuming it works only with OTR creation which is not required in case of Embedded TM. So we are looking for if there is similar BADI available which can be implemented for Freight Unit creation in our case of Embedded TM.

Thanks in advance,

Accepted Solutions (0)

Answers (3)

Answers (3)

0 Likes

Thanks for all the answers.

We were able to handle this in OTC side. By making the Sales Order "Incomplete" if the user status is not "UNBLOCK".

former_member201799
Active Participant
0 Likes

Just a wild guess, but you could try doing something with the Logistics Integration Profile, and then Freight Unit Building Rule determination condition. So in the condition, you could potentially evaluate based on your custom user status, and prevent FU building at that point.

0 Likes

Thanks Joseph for your response.

The custom user status is OTC related and will not be interfaced to Freight Unit. Please advise if I am missing something here?

Alternatively, we have asked OTC if they can enhance user exit to flag the Order as Incomplete, based on user status. This will restrict these orders from being interfaced to TM. They haven't committed on this development yet, so we are still looking for a way to manage this.

former_member201799
Active Participant
0 Likes

Hi Ravindra,

What do you mean by OTC related and will not be interfaced to Freight Unit?

Thanks,

Joseph

0 Likes

Hello Mac,

Thanks for your response.

I am assuming you meant "Selection Profile" for planning.

Since the Sales Order may have specific Custom User Status (Custom Development from OTC team) which doesn't result in Delivery Block. Due to that, Freight Unit will not be blocked for Planning. So we will be unable to use Selection Profile to restrict these Freight Units (created for Sales Orders with specific User Status) from Planning.

Let me know if I am missing something.