Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to extract PDF from Billing Document and map to Peppol XML in BADI?

tamas_gaal
Explorer

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

1 REPLY 1

OwenLiu
Product and Topic Expert
Product and Topic Expert
0 Kudos

Changed tag to Sales.

Best Regards,
Owen Liu