SAP Knowledge Base Article - Public

3756528 - Draft creation of Purchase Orders and RFQs not supported via standard APIs

Symptom

  • Business requirement to create Purchase Orders (PO) and Requests for Quotation (RFQ) in draft mode via custom Fiori applications.
  • Tested standard APIs: API_PURCHASEORDER_PROCESS_SRV, API_PURCHASEORDER_2, API_RFQ_PROCESS_SRV, API_REQUESTFORQUOTATION_2.
  • Unable to find standard functionality or API supporting draft mode creation or saving of these documents.
  • Request for confirmation on draft creation support via standard API/service in SAP S/4HANA Public Cloud.

Environment

SAP S/4HANA Cloud Public Edition

Reproducing the Issue

  1. Use API_PURCHASEORDER_PROCESS_SRV or API_PURCHASEORDER_2 to attempt creating a Purchase Order in draft status or saving it as a draft.
  2. Use API_RFQ_PROCESS_SRV or API_REQUESTFORQUOTATION_2 to attempt creating an RFQ in draft status or saving it as a draft.
  3. Observe that only active documents can be created and no draft-mode or draft-persistence options are available.

Cause

The released standard APIs for Purchase Orders and Requests for Quotation support only active business document creation and processing.

Draft handling is currently not supported through the released APIs/business objects.

This is due to standard system design and validation logic:

  • Purchase Orders require mandatory field validation during API processing
  • Draft documents would represent incomplete/intermediate business states
  • The APIs validate mandatory fields immediately during document creation
  • Missing mandatory data results in validation errors

Resolution

Currently, SAP S/4HANA Cloud Public Edition does not provide a released standard API/service for creating or saving Purchase Orders or RFQs in draft mode.

The following APIs support only active document processing:

  • API_PURCHASEORDER_PROCESS_SRV
  • API_PURCHASEORDER_2
  • API_RFQ_PROCESS_SRV
  • API_REQUESTFORQUOTATION_2

See Also

Keywords

purchase order draft, rfq draft, draft save, draft persistence, fiori draft, api_purchaseorder_process_srv, api_purchaseorder_2, api_rfq_process_srv, api_requestforquotation_2, purchase order api, rfq api, s/4hana public cloud apis, standard design limitation, create po api, create rfq api , KBA , MM-PUR-PO-2CL , Purchase Orders (Public Cloud) , Problem

Product

SAP S/4HANA Cloud Public Edition all versions