cancel
Showing results for 
Search instead for 
Did you mean: 

Sending ASN from Freight Order (embedded TM)

Thorsten2672
Explorer
0 Kudos

Hi all,

we are implementing an embedded SAP-TM on SAP S/4HANA 2022. In this environment we want to send ASNs via Freight Orders to our ship-to-party. 
We checked following blogs, notes:

As you can see, we investigated really a lot and the xml-message is still not working. Let's have a look into our system.

Freight Order Type has output profile “/SCMTMS/TOR” (Standard):thorsten_haus_0-1712316978230.png

Inactive flag for Action Definition TOR_TPNOR_ASN is demarked:thorsten_haus_1-1712317210665.png
And everything depending on this definition is NOT changed. Standard is used.

The output management adapter settings are NOT changed. Standard is used.

thorsten_haus_2-1712317740459.png

Questions:

  • Is there a documentation available how a freight order should look like for sending an ASN (e.g. view "Output Management")?
  • Is there a "how-to" available how to configure the complete solution for sending ASNs from the freight order?
  • Which pre-conditions do we have to consider (e.g. special content of the freight order)?
  • Under which circumstances, status, etc. in the freight order, an ASN should be created?
  • Currently we are using SHPMNT05 in LE-TRA which should be replaced by using the xml-file in TM. If we get a file created, how is the routing to be configured? Today we use WE20 for partner connection sending an IDoc. 

Best Regards,
Thorsten

Accepted Solutions (0)

Answers (2)

Answers (2)

thomaspasberg
Advisor
Advisor
0 Kudos

Hello  @Thorsten2672 ,

In the SAP standard scenario the ASN message is foreseen to be sent based on the Consignment Order as soon as the goods movement status is competed. This document allows to group goods based on fixed and individual criteria. For more information about the standard scenario you can check the following SAP Help page: End-to-End Process (E2E) for Advanced Shipping and Receiving | SAP Help Portal.

The SAP standard PPF-action for sending the ASN-message has some fixed scheduling conditions like checking if the delivery goods movement status is completely processed or if the process is an outbound process. Actual details of fixed conditions in PPF-scheduling can be checked in the corresponding output agent class like /SCMTMS/CL_PPF_SERV_TOR_B2B in the case of B2B messages in the TM-context. For ASN-messaging, SCHED_COND_TPNORD_ASN is the relevant method in which the checks are performed. 

Are you using Advanced Shipping & Receiving (ASR)? If ASR is not used, the delivery goods movement is not propagated to the Freight Order. Please check 3456518 - Goods Movement Status is not updated in Freight Orders - SAP for Me for additional details.

SAP TM uses WebServices which can be routed for example in a middleware (e.g. SAP PO) based on certain identifier. In case the ASN-message is sent based on a Freight Order, additional message splitting might be necessary (e.g. split based on customer or locations, like it would be done implicitly if sent from the Consignment Order)

Regards,
Thomas

Thorsten2672
Explorer
0 Kudos

Hello thomaspasberg,

thanks a lot for your response. We don't use ASR. We don't see any advantage using this scenario.

My understanding is that we have to substitute the current shipment (LE-TRA) where we send the DESADV with a freight order in SAP-TM (embedded) sending the ASN-message. Furthermore, it should be possible to send it from a freight order and the consignment order is NOT mandatory. Please correct me, if I should be wrong.

We try to set-up the message with:

Thorsten2672_0-1714985610850.png

Is this correct?

Unfortunately, there is no "how-to" and/or specific guideline how to set-up the ASN. This would be very helpful for customers moving from LE-TRA to SAP-TM.

Regards,
Thorsten

 

thomaspasberg
Advisor
Advisor
0 Kudos

If ASR is not used, the delivery goods movement status is not propagated to the Freight Order. This status is checked in the standard PPF-action TOR_TPNOR_ASN for sending the ASN. Thus, in your scenario it will not work by just re-using the standard actions.

To send the ASN-message based on your process, you can use a custom PPF-action which is triggered as soon as required. To do so, you can check the PPF-guide Output Management Configuration Guide (sap.com) and the TM-enhancement guide Hands on Guide TMS (sap.com) In your custom-action you can trigger the TORGenericRequest_Out message similar to the standard coding. As a reference, you can check the method call exec_tor_tpnord_fu_asn for Consignment Orders in the SAP standard PPF-class /SCMTMS/CL_PPF_SERV_TOR_B2B and method METHOD_CALL_BY_ABAP.

Thorsten2672
Explorer
0 Kudos

Hello thomaspasberg,

we implement now the OSS-notes. It seems that there is a general gap in out scenario? What is the best practice for sending an ASN (without using ASR and consignment order) out of a freight order? 
Do you think that it would be possible to have a common call? 

Thanks in advance for your support!
Thorsten

Ryan-Crosby
Active Contributor
0 Kudos

You could refer to the following blog for use of SHPMNT05 in place of the XML.  I read through the contents of the "official" blog regarding the target architecture for advanced shipping and can't say I'm convinced that switching to SOAP web services is any form of gain, but we also use DESADV with X12 856 instead of EDIFACT as the target.

https://community.sap.com/t5/supply-chain-management-blogs-by-sap/how-to-send-shipment-document-to-f... 

 

Regards,

Ryan Crosby

0 Kudos

In some cases Customer wants single ASN for all the deliveries clubbed in to one Freight order/Shipment. Normally via DESADV it is not possible but SHPADV can do this. How this can be managed in SAP TM ?