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

Creation of Freight Order from Web service

former_member679858
Discoverer
0 Likes
4,109

We are trying to create Freight Order from an xml file using Web service /SCMTMS/TransportationOrderGen ,Referenced Object:/SCMTMS/II_CPX_TOR_GN_RQ_IN.

please let me know if this is the correct web service that can be used to create FO with respect sales order and freight unit details, also need sample xml file with data for the above web service.

Help would be appreciated.

Regards,

Vishal

Accepted Solutions (1)

Accepted Solutions (1)

Dominik_Tylczynski
SAP Champion
SAP Champion
0 Likes

Hello vishalpulipati07

You can use TransportationOrderGenericRequest_In service to create freight orders. Refer to note 2722559 - Usage of TransportationOrderGenericRequest_In in SAP Transportation Management for details.

Just notice that according to the note you can't refer and assign already existing freight units to the freight order with this interface - the note says:

IMPORTANT NOTE: This service is only capable of creating LOCAL items and cannot reference items of an existing demand document. Eg. Freight Unit.

Best regards

Dominik Tylczynski

former_member679858
Discoverer

Hello 3a9e4ce873a94034b33dc62b0ce600ee

Thank you for you response, i am able to create Freight order from the Webservice TransportationOrderGenericRequest_In but i am not able to assign a freight unit or the sales order to the created freight Order.

In the document flow of the Freight order in document hierarchy i see only the Freight order and rest are missing(FU and sales order).

can you please suggest what am i missing when creating from webservice.

Dominik_Tylczynski
SAP Champion
SAP Champion
0 Likes

Hello vishalpulipati07

You can use the add_fustage_with_planning action from the ROOT node of /SCMTMS/TOR object to assign FUs to a FO

Answers (1)

Answers (1)

Dominik_Tylczynski
SAP Champion
SAP Champion
0 Likes

Hello vishalpulipati07

The XML structure of TransportationOrderGenericRequest_In contains items, so you can transfer them. However the service implementation is flawed and it doesn't allow to assign existing demand documents to a freight order being created. That's what 2722559 - Usage of TransportationOrderGenericRequest_In in SAP Transportation Management says:

IMPORTANT NOTE: This service is only capable of creating LOCAL items and cannot reference items of an existing demand document. Eg. Freight Unit.

I could think of a work around - /SCMTMS/TOR objects features an action that allows assignment of freight units to a freight order. Therefore the service could be enhanced to call this action after the freight order is created. I've not implemented that yet, but I'm quite sure it's doable.

Best regards

Dominik Tylczynski

aba212
Participant

Hi 3a9e4ce873a94034b33dc62b0ce600ee,

I'm also having same requirement. Can you please provide information like where exactly the action can be called after FO creation. Thanks in advance.

--

Dominik_Tylczynski
SAP Champion
SAP Champion
0 Likes

You can use the add_fustage_with_planning action from the ROOT node of /SCMTMS/TOR object to assign FUs to a FO.