cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

CDS-View for Attachment in Supplier Invoices

ruthnuss
Explorer
0 Likes
1,944

Dear SAP-Crowd

We are working on S/4HANA public Cloud and would like to create a Custom CDS-View on Supplier Invoices.
Unfortunately, we could not find an existing source that contains the link to the attachment of the supplier invoice.
The question we are now asking is:
Is there an existing source for our Custom CDS-View that contains the link to the attachment with a reference to the supplier invoice?

Kind regard
Ruth

Accepted Solutions (1)

Accepted Solutions (1)

Enda
Product and Topic Expert
Product and Topic Expert

Hello Ruth,

Please consider using the API https://api.sap.com/api/API_CV_ATTACHMENT_SRV/resource to

retrieve attachment information ( Entity /GetAllOriginals or AttachmentsCount)

If the attachment assigned to the Supplier Invoice has a Document Info Record then the CDS views

as mentioned in the documentation at 'CDS Views for Document Management

might be of use as well

https://help.sap.com/viewer/0f69f8fb28ac4bf48d2b57b9637e81fa/latest/en-US/86f3f5577c84bc12e10000000a...

Best Regards

Enda

EGallana
Explorer

Dear all,

we have the same issue with our customer. How did you solve this topic? 

Thanks 

Enrico

juveria_sap_integrity
Participant
0 Likes
In S/4HANA Cloud Public Edition, attachment metadata for Supplier Invoices is not exposed via CDS views. Standard approach is to use API_CV_ATTACHMENT_SRV (e.g. GetAllOriginals / GetAttachmentCount) to retrieve attachment details. CDS views can only be used if attachments are created as Document Info Records (DIR); otherwise, attachment access is API-only by design.

Answers (0)