Symptom
- Error 'Document framework is not active for 'PreliminaryBillingDocument'' when uploading attachments using API_CV_ATTACHMENT_SRV in SAP S/4HANA Cloud Public Edition.
- Error message: "Document framework is not active for 'PreliminaryBillingDocument'" When using API_CV_ATTACHMENT_SRV .
- API API_CV_ATTACHMENT_SRV and Entity AttachmentContentSet with POST fails with Exception CX_ODATA_CV_ATTACH_EXCEPTION.
Environment
- SAP S/4HANA Cloud Public Edition
- External Billing
Reproducing the Issue
- Activate Harmonized Document Management (HDM) for billing process documents as outlined in the resource 'Harmonized Document Management for Attachments in Billing Process Documents'
- Attempt to call the API API_CV_ATTACHMENT_SRV and Entity AttachmentContentSet in a POST request with BusinessObjectTypeName: VBRK
- Error code: CX_ODATA_CV_ATTACH_EXCEPTION "Document framework is not active for 'PreliminaryBillingDocument'" is returned by the API
Cause
The communication scenario SAP_COM_0120 is not assigned to the communication user used to call the API API_CV_ATTACHMENT_SRV
Resolution
- Assign the communication scenario SAP_COM_0120 to the communication user.
- Follow the setup instructions for the External Billing (1Z6) scope item to ensure proper configuration.
Keywords
cx_odata_cv_attach_exception, document framework not active, preliminarybillingdocument, API_CV_ATTACHMENT_SRV, SAP_COM_0120, external billing, communication scenario, attachment upload error, SAP S/4HANA Cloud Public Edition, document management. , KBA , SD-SLS-API-2CL , API (Public Cloud) , CA-DMS , Document management , How To
Product
SAP S/4HANA Cloud Public Edition all versions
SAP Knowledge Base Article - Public