Reading Invoice PDF from External systems in S/4 Hana

1 day ago 1

In this blog , one volition sermon connected however to work the invoice PDF generated done Outputs successful SAP S/4 strategy from External systems.

S/4 Hana provided a modular API to work , cancel , get PDF  & implicit Proforma invoice.

In bid to usage the API  API_BILLING_DOCUMENT_SRV to get PDF , outputs should beryllium configured utilizing BRF+.

Read Operation:

Read tin beryllium utilized to retrieve Billing papers header details based connected the billing papers fig and point details based connected billing papers header and point number.

use Get Method to work the billing papers details.

Cancel  Operation:

Cancel cognition is utilized to cancel azygous oregon aggregate invoices based connected the petition from outer strategy oregon consumers.

POST HTTP method is utilized to cancel the billing documents. ETAG handling is required for Posting the cancellation.

For immoderate cancellation requests IF-MATCH should beryllium mentioned successful the HTTP request, if it is missing past lawsuit throws an mistake response.

Get PDF:

Get PDF method is utilized to retrieve the PDF from S/4 strategy outputs.

PDF volition beryllium sent to the outer strategy successful a ASCII drawstring format (encoded successful Base64). The receiver strategy should person the basal 64 to binary format utilizing a instrumentality oregon API.

PDF volition be encoded successful base64, an encoding strategy that represents binary information successful an ASCII drawstring format earlier sent to receiver. 

Example to get PDF:

GET <host>/sap/opu/odata/sap/API_BILLING_DOCUMENT_SRV/GetPDF?BillingDocument=''9xxxxxxxxx'

Read Entire Article