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

How do I get access to the ObjectKey of an Supplier Invoice?

test123456789764
Discoverer
0 Kudos
205

Image (3).jpegImage (4).jpegImage (5).jpegI’m developing a SAP Fiori application in Business Application Studio, using two services: CV_ATTACHMENT_SRV to attach files to an object (e.g., an invoice) and MM_SUPPLIER_INVOICE_LIST_ENH_SRV to list all invoices for selection. Currently, the upload process works, but it relies on a static example ObjectKey for a specific invoice. I now need to modify the code so that the ObjectKey dynamically adapts based on the selected invoice.

The issue is that none of the invoice attributes include an ObjectKey. The primary key available is InvoiceUUID, and I know this UUID must be mapped or transformed to create the ObjectKey, but I don' really know HOW.. I tried using btoa(uuid), which produces a result similar to the static ObjectKey, but it’s not exact, and the upload doesn’t succeed.

Any insights on how to correctly generate the ObjectKey from the UUID would be greatly appreciated.

Accepted Solutions (0)

Answers (0)