When creating an inbound delivery from CPI using API „Integration of Procurement with External Suppliers” and artifact „Advance Shipping Notification”, the field batch is empty in the inbound delivery.
Instead, the field supplier batch is filled with batch record.
Sales And Distribution (SD)
SAP S/4HANA Cloud
Reproducing the Issue
Batch and Supplier Batch are transferred from ECC to S4HC in the inbound XML file:
In the inbound delivery, the field batch is empty, instead, supplier batch is filled with batch record.
This is standard behavior of SAP. As the receiver side (Inbound ASN) does not know the batch of the sender side (Outbound ASN), so the field batch for inbound delivery will remain empty.
If you want this field to be populated in the inbound delivery with the exact batch record as in the outbound delivery, there are two ways to do it:
- If there is no batch split item existed, insert the batch record in the purchase order, then the batch record will be filled in the inbound delivery.
- If there are batch split items exist, implement cloud BAdI: LE_SHP_SAVE_DOCUMENT_PREPARE (Modify Standard and Custom Fields for Delivery Header and Items), so that the value can be filled for "Batch" based on "BatchBySupplier" in inbound delivery.
Inbound Delivery, Batch, CPI, API, BAdI, Advanced Shipping Notification (ASN), lips-charg , KBA , LE-SHP-DL-LA , Inbound Delivery , Problem