
SAP CPQ customers to raise a SAP Support ticket for enabling Document Pricing. By Default : Stateless
The integration of SAP CPQ with SAP Variant Configuration & Pricing unites front-office and back-office processes, simplifying complex product configurations for sales representatives with real-time pricing connected to ERP or S4HANA Public or Private Cloud or S4 On-prem and closing the Deal faster than ever before.
When to use stateless APIs and when to use Document Pricing APIs?
The stateless pricing API is simpler and easier to use. It gets all needed data in one call, does the condition determination and price calculation, returns the results, and then forgets everything. This works well for example in a screen where you configure a product and want to see the calculated price including surcharges based on chosen product attributes. It also works well in catalog scenarios where you display a certain number of products per page and want to calculate and show their prices.
Letting users add or overwrite manual conditions it not possible with stateless API. For that, Document pricing APIs must be used. To know which change operations are allowed for which condition type, you can use the customizing API to read the corresponding settings. Some of those settings might change during runtime, which is returned by the corresponding pricing APIs.
Document pricing APIs are also recommended for interactive sales pricing, where user adds one item after the other to a sales document. Document pricing then avoids unnecessary condition determination for already known items.
If the calling application relies on persistency of the Pricing service, then Document APIs must be used, too.
Stateless pricing is used only during product configuration in SAP CPQ. With stateless pricing, it’s not possible to change the pricing information arriving from SAP Variant Configuration and Pricing in SAP CPQ, so it’s not possible to manually change the pricing information from SAP Variant Configuration and Pricing by mapping pricing conditions to fields in SAP CPQ.
The endpoint for this call is: /api/v1/statelesspricing with POST method only
Stateless Pricing - API Documentation
With stateless pricing, it’s not possible to change the pricing information arriving from CPS in SAP CPQ. On the other hand, Document pricing only applies to the entire quote, and the functionality allows to manually change the pricing information from CPS by mapping pricing conditions to fields in SAP CPQ. When document pricing is enabled, stateless pricing is still used in the configurator, but document pricing is used on the quote.
The endpoint for this call is: POST api/v1/documents
POST api/v1/documents/{documentId}/items
GET api/v1/documents/{documentId}
Document Pricing Document - API Documentation
Document Pricing Document Items - API Documentation
Advantages:
The status of a pricing document item indicates its current processing status.
Status | This means: |
A | New, not saved Pricing documents created explicitly in the sales price calculation function have items with status A (new, not saved). |
B | Changed, not saved If changes are made and prices are not activated, the item has status as B. |
C | Saved If sales prices are activated during pricing document processing, the status changes to C. All posted items in pricing documents generated automatically when sales prices are saved in the sales price calculation function also have status as C. |
D | Deleted items are given status as D. |
E | Cancelled items are given status as E. |
Status of the pricing document. Below are the possible statuses of the pricing document(Screenshot below).
Calculation Status | Description |
Not calculated | Price calculation was not triggered after the last change to the pricing document or an item. |
Inconsistent with errors | Errors occurred during price calculation. Refer to the messages for more details. |
Consistent with warnings | Warnings occurred during price calculation. Refer to the messages for more details. |
Consistent | Price calculation was triggered and the result is consistent. |
Below are the listed controls with description:
Control | control Description |
" "(Space) | Subtotal step |
A | Adjust for quantity variance |
B | Free |
C | Changed manually |
D | Fixed |
E | Condition value and basis fixed |
F | Condition value fixed (billed items) |
G | Condition basis fixed |
H | Condition value fixed (cost price) |
Below are the reasons for being inactiveFlag are:
Inactive Status | Description |
A | Condition exclusion item |
K | Inactive due to calculation basis |
M | Inactive due to manual entry |
W | The document item is statistical |
X | Inactive via formulae or inactive due to error |
Y | Inactive because of subsequent price |
Z | Invisible |
" "(space) | Condition is active |
Below are the listed origins with description:
Origin | Description |
" "(space) | Subtotal step at item level |
A | Automatic pricing |
B | Duplicated from main item |
C | Manually entered/changed |
D | Header condition |
E | Item total |
F | Condition supplement |
G | Original header condition |
H | Correction rebate |
I | Cost correction |
J | Transaction tax engine |
Below are the supported calculation types:
Calculation Type | Description |
A | Percentage |
B | Fixed Amount |
C | Quantity |
D | Gross weight |
E | Net weight |
F | Volume |
G | Formula |
H | Percentage (in hundreds) |
I | Percentage (travel expenses) |
L | Points |
M | Quantity - monthly price |
N | Quantity - yearly price |
O | Quantity - daily price |
P | Quantity - weekly price |
Q | Commodity price |
U | Percentage FIN |
W | Percentage (with 6 decimal places) |
There is a special function available for archiving pricing documents.
Document items with status D are archived independently of archiving key dates. You can also set an indicator in Archiving to archive canceled document items in the same way.
There is no field in API to find for the Quote - Document Pricing Id. you will have to find it via CTX tags to retrieve for the quote.
Customer's to raise a SAP Influence Portal for CPQ for getting missing field added into standard API for /quotes/<quoteid>
<*CTX(Quote.Id)*>
<*CTX( Quote.PricingDocumentID )*>
<*CTX( Quote.PricingProcedureName )*>
By integrating SAP CPQ with SAP Variant Configuration & Pricing, businesses can achieve a powerful, efficient, and scalable solution that enhances their sales processes and customer satisfaction.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
7 | |
4 | |
2 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 |