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

Freight Order Interface

Saha_Arpan
Explorer
0 Kudos
3,210

Hello All,

We need to interface the Freight Unit details to middleware system. On that note, what are the possible options?

A detailed approach will be highly appreciated.

Also the same has to be carried out for an inbound Freight Order interface.

System Details = S4H 1909 + Embedded TM

Regards,

Arpan

Accepted Solutions (1)

Accepted Solutions (1)

Dominik_Tylczynski
SAP Champion
SAP Champion

Hello arpan.saha

I've faced very similar requirements in the same system environment.

SAP standard doesn't support outbound interface from freight units. It only supports one for freight orders. However freight units and freight orders are implemented with the same business object /SCMTMS/TOR. Therefore it's quite easy to reuse the existing outbound interface TransportationOrderRequest_Out. There is an action in FO maintenance Fiori app to send the XML message: Subcontracting -> Send to Carrier.

The solution for freight units consists of the following parts:

First, you need to assign /SCMTMS/TOR output profile in freight unit type configuration. You can assign that as the output profile or as the additional output profile. Both work the same. Just be aware that the setting works for newly created freight units as the profiles are save in the freight unit header.

Second, you need a simple ABAP report to trigger the send_tor action for a freight unit. The action is not available in UI of freight units Fiori app therefore you need a custom development here. The report should use do_action method of /bobf/if_tra_service_manager interface.

Third, you should either enhance or override /bobfu/if_ppf/srev_for_bo~get_profiles method of PPF_SERV_TOR class. It suggest override, so not to change SAP standard code. You need to include freight unit TOR object category (constant /scmtms/if_tor_const=>sc_tor_category~freight_unit) to the condition around lines 160-165. That is to make send_tor action trigger an output also for freight unit. In standard this works only for freight orders.

Fourth, if you go with overriding in the previous step, you need to replace standard PPF_SERV_TOR class with your class for output agent /SCMTMS/B2B_SERVICES in the configuration: Cross-Application Components -> Processes and Tools for Enterprise Applications -> Reusable Objects and Functions for BOPF Environment -> PPF Adapter for Output Management -> Maintain Output Management Adapter Settings.

Fifth, optionally you can adjust the TransportationOrderRequest_Out XML message to your needs with /SCMTMS/TOR_SE_TPNOR_REQ BADI enhancement.

Definitely you'd need some ABAP skills to implement the scenario. However it's not that complicated and it works.

Best regards

Dominik Tylczynski

viren_sharma
Explorer

Very nice solution! Highly appreciable...

Former Member
0 Kudos

Nicely explained, Dominik

I am facing an issue where in when i doing tendering (Boradcast) to multiple carrier in ranking list , RFQ generates but xml are not generating.

While XML is generate when i assign a carrier to freight order and then press on "Send to carrier"

Your guidance will be highly appreciated.

Regards,

Gautam S

Saurabh
Participant
0 Kudos

Hi Dominik Tylczynski,

We can not use SEND_TOR as it has hard constraint that FO must have a TSP assigned .

Since we can not assign TSP immidiately to FU ( as it get's generated we need to send FU so that it can be planned and return message link FU to a FO where carrier is assigned )


Regards,

Saurabh

Answers (0)