Skip to Content
Personal Insights
Author's profile photo Rogerio Lima

How To Plan in SAP TM using TransportationOrderGenericRequest_In

Sometimes in a project the planning is not in SAP but come from different tools which optimizes it.

In SAP TM is also possible to plan a Freight Order, Freight Booking, Transportation Unit and Service Order using a Web service.

SAP delivery a standard API call TransportationOrderGenericRequest_In which you can find in SPROXY Transaction in SAP.

 

Open via Class /SCMTMS/II_CPX_TOR_GN_RQ_IN

 

Execute to see the result of available fields:

 

 

If you’re before S/4HANA 2020will  need to do a custom enhancement at BAdI /SCMTMS/TOR_SE_TOR_GN_REQ to associate FUs with the FO and consider the Actions in Business Object /SCMTMS/TOR:

  • ADD_FUSTAGE_WITH_PLANNING
  • ADD_FU_BY_BASEID
  • ADD_FU_BY_FUID
  • ADD_FU_BY_TRQID

If your version is above consider the the details to assigned FU into the FO automatically, consider the in Oss Note. 2474539.

By Vinicius Coracini Consider the TAG :

<BusinessScope>
<ID>EXTERNAL_PLANNING</ID>
</BusinessScope>

 

A Document type will be created with the Type G -Creation from Service TransportationOrderGenericRequest_In

 

Oss Notes, refer to this topic:

2722559 – Usage of TransportationOrderGenericRequest_In in SAP Transportation Management

2875534 – Can you use TransportationOrderGenericRequest_In to assign FU to a FO?

Also, if you need to debug It consider the Oss note:

2356343 – How to debug XML messages in TM (B2B or A2A)

 

Regards

Rogerio LIma.

Assigned Tags

      6 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo SANTHOSH SURAKASI
      SANTHOSH SURAKASI

      Hi Rogerio,

       

      Thanks for Posting the Blog. I have got a business requirement that from we need FO and FB using the same webservice TransportationOrderGenericRequest_In. As per standard i believe it creates either of them but not both. We are into S/4 HANA 2021 version and i also believe we can associate FU's into FO with a BASE ID as Sales Order as reference. Third party system is sending SO as a reference with 114 as BASE_ID_TCO. Does it helps to associate FU's as we already have FU in S/4 HANA. Please put your thoughts.

       

      Regards

      Santhosh

      Author's profile photo Rogerio Lima
      Rogerio Lima
      Blog Post Author

      Hello,

      yes you can use the SO with reference with 114.

      Author's profile photo Dominik Tylczynski
      Dominik Tylczynski

      Can TransportationOrderGenericRequest_In assign container units to freight orders too or is it limited to freight units only?

      Author's profile photo Rogerio Lima
      Rogerio Lima
      Blog Post Author

      In the standard is limited to FU only refer 2875534 - Can you use TransportationOrderGenericRequest_In to assign FU to a FO

      Author's profile photo Eduardo Chagas
      Eduardo Chagas

      Hi Rogério

       

      Can you please provide an example that works? A message creating a new FO with deliveries associated.

       

      Thank you

      Eduardo Chagas

      Author's profile photo Rogerio Lima
      Rogerio Lima
      Blog Post Author

      Sure, example is in the Blog updated