SAP Knowledge Base Article - Public

3773014 - After posting API_PROD_ORDER_CONFIRMATION_2_SRV, system generates an entry with "Enter a supply area" message in COGI.

Symptom

When using API_PROD_ORDER_CONFIRMATION_2_SRV/ProdnOrdConf2 to post a 261 goods issue for a production order, even if Production Supply Area (PSA) is maintained in material master, system still generates a failed 261 entry with "Enter a supply area" message in Reprocess Goods Movements (COGI) app. 

Environment

SAP S/4HANA Cloud Public Edition

Reproducing the Issue

  1. POST /sap/opu/odata/sap/API_PROD_ORDER_CONFIRMATION_2_SRV/ProdnOrdConf2

    {
      "OrderID" : "*",
      "Sequence" : "*",
      "OrderOperation" : "*",
      "ConfirmationText" : "*",
      "FinalConfirmationType" : "*",
      "OpenReservationsIsCleared" : true,
      "Plant" : "*",
      "to_ProdnOrdConfMatlDocItm" : [
        {
          "OrderID" : "*",
          "Material" : "*",
          "Plant" : "*",
          "StorageLocation" : "*",
          "GoodsMovementType" : "*",
          "MaterialDocumentItemText" : "*",
          "EntryUnitSAPCode" : "*",
          "QuantityInEntryUnit" : "*",
          "HandlingUnitExternalID" : "*",
          "Batch" : "*"
        }
      ]
    }

  2. Observe that response status is 201 created. However, good movement 261 failed and generates an entry with "Enter a supply area" message in COGI. 

Cause

The system will not automatically retrieve Production Supply Area (PSA) from master data when using API_PROD_ORDER_CONFIRMATION_2_SRV/ProdnOrdConf2.

Resolution

Add "ProductionSupplyArea" property in POST payload. The following is an example:

POST /sap/opu/odata/sap/API_PROD_ORDER_CONFIRMATION_2_SRV/ProdnOrdConf2

{
  "OrderID" : "*",
  "Sequence" : "*",
  "OrderOperation" : "*",
  "ConfirmationText" : "*",
  "FinalConfirmationType" : "*",
  "OpenReservationsIsCleared" : true,
  "Plant" : "*",
  "to_ProdnOrdConfMatlDocItm" : [
    {
      "OrderID" : "*",
      "Material" : "*",
      "Plant" : "*",
      "StorageLocation" : "*",
      "GoodsMovementType" : "*",
      "MaterialDocumentItemText" : "*",
      "EntryUnitSAPCode" : "*",
      "QuantityInEntryUnit" : "*",
      "HandlingUnitExternalID" : "*",
      "Batch" : "*",
      "ProductionSupplyArea":"*" 
    }
  ]
}

Keywords

COGI, Enter a supply area, API_PROD_ORDER_CONFIRMATION_2_SRV, ProdnOrdConf2, PSA, 261, EWM , KBA , PP-SFC-EXE-CON-2CL , Confirmation (Public Cloud) , SCM-EWM-IF-2CL , Interfaces (Public Cloud) , Problem

Product

SAP S/4HANA Cloud Public Edition all versions