on 2024 Sep 10 2:19 PM
We are seeing no header pricing data coming back from this service and wonder if it is a bug that SAP should investigate or fix.
Even in the tryout feature, no billing documents return header pricing.
https://api.sap.com/api/API_BILLING_DOCUMENT_SRV/tryout
Has anyone been able to retrieve header pricing conditions for billing documents with this service?
Request clarification before answering.
Hello Ray. You can get billing document details from API in the SAP API Business Hub.
API Documentation URL: SAP API Business Hub - Billing Document (V2)
Please Check Available Endpoints : Header Details: /A_BillingDocument and Header Pricing Conditions: /A_BillingDocumentItemPricingElement
To Trouble shoot further, you can filter or query using the billing document ID and ensure that you are using correct authentication details.
Sample code to fetch header pricing conditions for a specific billing document, use an HTTP GET request:
GET /sap/opu/odata/sap/API_BILLING_DOCUMENT_SRV/A_BillingDocumentItemPricingElement?$filter=BillingDocument eq '<BILLING_DOCUMENT_ID>'
Also note that A_BillingDocumentPrcgElmnt doesn't fetch you pricing elements at header level if there are no actual header conditions from that specific invoice.
Learn more with Note 876617 - FAQ: Header conditions or header condition screen.
Pricing API only get the pricing conditions from database table for "actual" header or "actual" item level, If there are 'virtual' condition rows ex. 'item totals' (created (dynamically) at runtime during the display of the header condition screen)) will not be fetched.
Hope this helps
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
102 | |
16 | |
9 | |
7 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.