IBM Support

How to create receipts for Sales Order?

Technical Blog Post


Abstract

How to create receipts for Sales Order?

Body

In some B2B scenarios, it is possible that the business partner sends receipt for the sales order. This is important from reconciliation perspective, especially for serialized items, to ensure that the business partner has received the correct serial numbers and to record any discrepancies in the same.
There is no out of the box pipeline for handling Sales Order Receipts in Sterling but, the transactions for Receipt are provided in the Sales Order Receipt Repository. The following steps need to be performed to generate receipt for sales orders.

1. Add the Receive Sales order transaction in the SO pipe line post ship shipment / as per use case.
2. Create a Sales order receipt pipe line (SO_RECEIPT) similar to purchase order receipt pipeline , as it would be empty OOTB.
3. Change the outbound shipment pipe line also to add the Include in Receipt transaction after Confirm Shipment.
4. Create a Sales order passing ReceivingNode. (Receiving will happen against the receiving node)
5. Schedule, Release and Confirm Shipment.
6. Create a receipt against this outbound shipment. (startReceipt using the shipment key and then perform a receiveOrder against the shipment line for the receipt created via startReceipt)

Sample Inputs:

startReceipt

<Receipt ArrivalDateTime="" DocumentType="0001" DriverName=""

NumOfCartons="" NumOfPallets="" OpenReceiptFlag="" ReceiptDate=""

ReceiptNo="11" ReceivingDock="" ReceivingNode="Node1" ShipmentKey="q1" TrailerLPNNo="">

<Shipment DocumentType="0001" OrderHeaderKey="q1" OrderNo="q1" SellerOrganizationCode="" ShipNode="Node2" ShipmentNo="q1" TrackingNo="" TrailerNo=""/>

</Receipt>

 

receiveOrder

<Receipt ArrivalDateTime="" CaseId="" CloseCase="" ClosePallet=""

   DocumentType="0001" DriverName="" LocationId="" NumOfCartons=""

   NumOfPallets="" OpenReceiptFlag="" PalletId="" ReceiptDate=""

   ReceiptHeaderKey="20181206150320124799" ReceiptNo="11" ReceivingDock=""

   ReceivingNode="Node1" ShipmentKey="q1" Status="" TrailerLPNNo="">

<ReceiptLines>

 <ReceiptLine DispositionCode="RESTOCKED" ItemID="item1"

ShipmentLineKey="20181205181629123273" ProductClass=""

Quantity="1.0" SuggestedQuantity="1.0"

UnitOfMeasure="EACH" YFC_NODE_NUMBER="1"/>

</ReceiptLines>

</Receipt>

 

closeReceipt

<Receipt DocumentType="0001" ReceiptHeaderKey="20181206150320124799" ReceiptNo="11" ReceivingNode="Node1" ShipmentKey="q1">

<Shipment DocumentType="0001" EnterpriseCode="DEFAULT" OrderHeaderKey="q1" OrderNo="" OrderReleaseKey="20181206150245124775" ReleaseNo="1" SellerOrganizationCode="" ShipNode="Node2" />

</Receipt>

 

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SS6PEW","label":"Sterling Order Management"},"Component":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}},{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SS6PEW","label":"Sterling Order Management"},"Component":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

UID

ibm11124391