2022 Oct 11 7:18 PM
Dear Everybody,
I am working on XRechnung, and try to map specific fields including the attachment in BADI: Peppol: Filling of Invoice XML Files BADI.
My question would be, what is the best practice for getting PDF data in Base64 format from BillingDocument?
I followed this example: Implementation Hints for Embedding Documents to the XML File | SAP Help Portal
So the idea behind the mapping is clear, the only thing what I don't know how to get the PDF data because it is not available in the BADI parameters.
I saw also there is an API whitelisted: Overview | Billing Document - Read, Cancel, GetPDF | SAP API Business Hub
Is it fine to call it up within the BADI? Is it the right way? If yes, is there any written article about this?
Thanks in advance,
Tamás
2022 Oct 17 7:40 AM