SAP Knowledge Base Article - Public

2899875 - S4HC PREQ API Origin field estkz

Symptom

When creating Purchase Requisition via API_PURCHASEREQ_PROCESS_SRV you can transfer a creation indicator via the field 'PurReqnOrigin' (ESTKZ)
In some cases the posting fails with error 'Creation indicator 'x' invalid' message (MEPO081)

Environment

SAP S/4HANA Cloud All versions

Reproducing the Issue

Carry out a POST operation with a payload including the field 'PurReqnOrigin' = to 'I' or 'M' for example.

Cause

Unsupported creation indicator.
These are the only supported creation indicators for Purchase Requisitions:

  • 'V' Sales and distribution document
  • 'F' Production order
  • 'D' Direct procurement
  • 'R' Realtime (manual)
  • 'U' Converted planned order
  • 'A' SAP APO
  • 'B' Material requirements planning
  • 'S' Self-Service Procurement
  • 'E' External Requirements
  • 'T' S4CRM Service Order

Resolution

Use one of the supported indicators

Keywords

ESTKZ, CL_MM_PUR_REQ_PROCESS_API3, purreqnorigin, LMEREQF56 , KBA , MM-PUR-REQ , Purchase Requisitions , Problem

Product

SAP S/4HANA Cloud Public Edition all versions ; SAP S/4HANA Cloud all versions