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
viniciuscoracini 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.