‎2021 Apr 12 8:10 AM - edited ‎2024 Feb 04 1:40 AM
Dear community,
does anyone have experience with CDS views for Journal Entries, where I can include the count of attachments attached to this specific journal entries.
More or less I want to have a CDS view which brings me back this number as in the screenshot per Document.
best regards
Christoph
Request clarification before answering.
Dear Christoph,
For the retrieval of attachment information associated with an object like journal entries,
the API API_CV_ATTACHMENT_SRV and Entity /GetAllOriginals can be used
https://api.sap.com/api/API_CV_ATTACHMENT_SRV/resource
For Journal Entries the BusinessObjectTypeName is 'BKPF'.
The API API API_CV_ATTACHMENT_SRV also has the Entity AttachmentsCount to receive the number of attachments an object has which seems to match your requirement .
If the attachment shown in the screenshot is linked in a Document Info Record, then the
CDS views mentioned in the online documentation at 'CDS Views for Document Management
might be of use as well
Best Regards
Enda
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 35 | |
| 18 | |
| 14 | |
| 13 | |
| 9 | |
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.