How to Handle Stock Issues From Wrong Location

Within this guide you are going to learn how you can issue an item from a location different to the delivery location. This fix can only be applied, if the order is in the state 'Ordered' and of type 'StockTransfer'.

The process for stock transfers within the decentralized stock issuing is straightforward :

  1. the location is responsible for stocking items
  2. a recipient ordering a stocked item to such a location has to receive it at the location

Should the process be mistreated and an item is sent from another location or given out at a different location, a manual fix has to be applied.

Example

The booking BOO0073010 (order ORD54843) was ordered to Aachen. The item was provided from Dortmund.

  1. Determine the purchase requisition within S4Hana using the order number
    image.png
  2. Obtain the purchase order number ("4500000905") and the position ("10") within S4Hana using the process flow of the purchase requisition
    image.png
  3. Determine the S4Hana id of the location that (actually) issued the good
  4. Enable port-forwarding to the order-procurement service. Attention, this service does not provide the same rigorous checks like the order-management service does!

    kubectl port-forward -n default deployment/order-procurement 8081:80
  5. Manually create an outbound delivery using the order-procurement service. You have to execute a POST request using the tool of your choice e.g. Postman.

    http://localhost:8081/deliveries/outbound
    {
    "purchaseId": "4500000905",
    "purchasePositionId": "10",
    "locationId": "0001"
    }