3PL Integration through EDI
Applies to:
Summary
implement EDI 940 (Warehouse shipping order) and EDI 945 (Warehouse Shipping Advice) transactions for the Advanced Planning, Picking, Packing/Unpacking, Shipment Confirmation/PGI processes. Moreover, this document covers the use of Handling Unit management (HU) as a part of the overall process and the automated re-processing of failed IDocs.
Author(s): Prakash K Bodicherla & Anthony Chesnick
Company: Deloitte Consulting LLP
Created on: 10 September 2012
Prakash Bodicherla is specialist in SAP EDI processing and mapping the IDocs with all set of EDI transactions. Exceptional knowledge in ABAP and Sales & Distribution practice.
Anthony Chesnick – Specialist Leader in Deloitte’s Retail and Distribution practice specializing in SAP ERP Supply Chain
transformation projects with a focus on Order Fulfillment, Distribution, Warehousing, Transportation and Materials Management.
Overview
The objective of this article is to provide a detailed overview of the EDI interfaces required to collaborate effectively with third party logistics providers. This article also describes the technical approach for typical business requirements. The reader will gain a better understanding of the EDI processes needed to
implement EDI 940 (Warehouse shipping order) and EDI 945 (Warehouse Shipping Advice) transactions for the Advanced Planning, Picking, Packing/Unpacking, Shipment Confirmation/PGI processes. Moreover, this document covers the use of Handling Unit management (HU) as a part of the overall process and the automated re-processing of failed IDocs.
Third party logistics provider’s offer outsourced services to support supply chain management and the delivery of shipper’s products to customers in an on-demand fashion with real-time information. Standardized electronic data information exchange (EDI) will increase the efficiency for business partners. Moreover, it significantly reduces manual intervention, paper work and improves cycle time and better supports a high volume transaction environment. It provides direct electronic communication between shipper and 3PL computer systems using national and international telecommunication networks and requires agreements between trading partners. The communication is typically done through a VAN (Value Added Network) using international EDI standards such as the American National Standard Institution (ANSI) or EDI for Administration, Commerce and Transport (EDIFACT).
Background
Business Requirements
-
3PL Shipments to customers and Internal plants
-
3PL has to be notified in advance about the warehouse shipping order (EDI 940) to perform the resource planning. Warehouse shipping order can be generated either from sales order or STO for advance notification.
-
Any changes in the warehouse shipping order have to be communicated to 3PL’s. Changes may be quantity, date, address or product.
-
If warehouse shipping order has changed the plant values then communication has to be sent to both parties.
-
Final confirmation for the warehouse shipping order will be communicated to 3PL from the delivery document. If the delivery document is deleted after the confirmation to 3PL then the shipping order has to be sent from sales order/STO with change status.
-
Warehouse shipping advice (EDI 945) sent by 3PL has to be update the delivery document with Pick quantity, Packing/Unpacking the Handling unit and Post Goods Issue.
-
EDI 945 may contain partial pallet, where the original handling unit has to undergo unpacking and packing with the quantity sent by the 3PL.
-
Automated reprocess for the failed IDocs to execute the only from the position where it has failed.
Proposed Solution
EDI 940 – Warehouse Shipping Order
EDI 945 – Warehouse Shipping Advice
-
Check if the line item quantity is equal to the handling unit quantity in SAP. Handling unit is nothing but a Batch number which exists in the IDoc. Retrieve the Handling unit quantity from VEKP and VEPO tables using the batch number.
-
Before comparing the quantities check that the batch UOM and Delivery UOM are the same, if not then convert the delivery UOM to batch UOM and decide whether its partial pallet or not.
-
If the EDI quantity is greater than the delivery quantity then the IDoc will throw an error and it must be processed manually. If the quantity is less than delivery quantity then follow the partial pallet process as defined below.
-
Add the new handling unit number created from partial pallet process or from the IDoc into the internal table IT_HANDLING_UNITS_1.
-
Update the delivery with the new batch numbers for the applicable line items and pass the Handling unit number internal table to ‘WS_DELIVERY_UPDATE_2’ which will do Pick, Pack and PGI.
Partial Pallet Processing
-
If the EDI line item quantity doesn’t match with the Handling Unit line item quantity then the 3PL has split the handling unit while shipping to the
customer. -
Retrieve the Handling unit details from VEKP and VEPO tables.
-
Create a Handling Unit with reference to the packaging material of the existing handling unit number using the FM ‘BAPI_HU_CREATE’. Pass the Packaging Material in the ‘HEADERPROPOSAL-PACK_MAT’. It will return the new handling unit number which has generated internally with sequence. Use Commit work after the BAPI and capture the new handling unit number.
-
Now we have to unpack the existing handling unit and repack with the new handling unit by adjusting the quantities. Use FM ‘BAPI_HU_REPACK’ (Tcode: HU02) to do the process in standard way. Pass the parameters as defined below.
Import Parameters HUKEY
Table Parameters REPACK-SOURCE_HU REPACK-PACK_QTY REPACK-BASE_UOM REPACK-MATERIAL REPACK-BATCH REPACK-PLANT REPACK-STGE_LOC
-
If the BAPI was successful, then use execute the commit work command because the unpack/repack process is completed. Now we have to execute last step below to perform the goods movement for the new handling unit and to change the receiving batch.In the partial pallet process, the new batch will always be created with a restricted status as per the configuration requirements. Once the batch is
generated, the batch status is change to unrestricted as per the parent batch characteristics. -
Check the both Parent and Child Batch statuses are the same. If yes, then don’t change the status.
-
If the Statuses are different and the parent has an unrestricted status, then change the child batch status to unrestricted using the FM
‘VB_CHANGE_BATCH_STATUS’. -
For goods movement transfer use FM ‘HU_CREATE_GOODS_MOVEMENT’ (Tcode: VLMOVE) passing the following parameters.
Import Parameters IF_TCODE VLMOVE IT_MOVE_TO-HUWBEVENT ‘0010’ IT_MOVE_TO-MATNR IT_MOVE_TO-CHARG IT_MOVE_TO-WERKS IT_MOVE_TO-LGORT IT_MOVE_TO-HU_ITEMS-VENUM IT_MOVE_TO-HU_ITEMS-VEPOS IT_INTERNAL_ID-VENUM
IDoc Re-Processing
-
Handling Unit Creation
-
Repacking of Handling units
-
Handling unit status change
-
Goods Movement
Go-Live). To avoid errors with legacy batch numbers a cross-reference table must be established to cross-reference the legacy batch numbers with new SAP
batch number.
Conclusion
-
Mapping of EDI 940 and EDI 945 transactions
-
Developing the logic to trigger the EDI 940 document from a Sales Order, STO and delivery
-
Defining the data requirements needed for 3PL integration
-
Managing the output determination
-
Understanding the requirements for batch split and partial pallet process
-
Understanding the requirements and logic for re-processing of failed IDocs
Related Content
For more information, visit the Supply Chain Management Homepage
New NetWeaver Information at SAP.com
Very Helpfull