Symptom
The field RetentionType is not available in the metadata ($metadata) of the CE_PURCHASEORDER_0001 API in SAP S/4HANA Cloud Public Edition.
Environment
SAP S/4HANA Cloud Public Edition
Cause
- The standard RetentionType field is not part of the released Purchase Order API CE_PURCHASEORDER_0001 for SAP S/4HANA Cloud Public Edition.
- This is a known product limitation: the field is absent from the API metadata ($metadata) and is not extensible via Key User Custom Fields, CDS view extensions, or BAdIs.
Resolution
Maintain retention information using the standard SAP Fiori application (for example, Create Purchase Order – Advanced). Standard retention-related fields are not available for extension through Key User Custom Fields, CDS View Extensions, or BAdIs.
If your integration scenario requires a retention-related indicator, you may create a separate custom field using the Custom Fields app and expose that custom field through the API. This would be a custom implementation and would not represent the standard RetentionType field.
See Also
Keywords
RetentionType, CE_PURCHASEORDER_0001, purchase order api, $metadata, not exposed, missing field, public cloud, s/4hana cloud public edition, api limitation, retention, extensibility, custom fields, cds view, badi, fiori create purchase order advanced , KBA , MM-PUR-PO-2CL , Purchase Orders (Public Cloud) , How To
SAP Knowledge Base Article - Public