Loading
Get Started with Communications, Media, and Energy & Utilities (CME)...
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Attribute-Based Pricing with Usage Pricing and Cost and Margin

          Attribute-Based Pricing with Usage Pricing and Cost and Margin

          A calculation matrix for attribute-based pricing can be expanded to handle usage pricing, cost and margin, or both. You must also update the PricingPlanHelper Apex class and the Pricing Plan.

          Because Energy & Utilities Cloud makes extensive use of usage pricing, the example shown here is related to Energy. You can apply the same principles to matrices for ​Salesforce Industries Communications, Media, and Energy.

          To use attribute-based pricing with usage pricing and/or cost and margin:

          1. If you're using usage pricing, set it up as described in Usage-Based Pricing for Industries CPQ.
          2. If you're using cost and margin, set it up as described in Cost and Margin in EPC.
          3. If you're using cost and margin, set the MarginCalculationType setting to margin. See CPQ Configuration Settings Reference.
          4. Create a calculation matrix similar to the matrix described in Set Up AttributePricingMatrix, Setting Up SourceTargetAttributePricingMatrix, or Setting Up RangeAttributePricingMatrix.
          5. For usage pricing, add output columns for the unit rate and the charge measurement. For cost and margin, add an output column for the cost.

            In the following example, the UP and CM columns are for the unit rate and the charge measurement, and the UC column is for the cost.

            Source product
          6. In the related calculation procedure, add variables that match the pricing variables you are using for usage pricing and cost and margin.

            In the following example, the variables are USAGE_STD_PRICE, CM, and USAGE_STD_COST.

            Variables and Constants
          7. In the related calculation procedure, map each matrix output column to the corresponding variable. Be sure to check the Include in Calculation Output checkbox.
            Usage Pricing with costs
          8. In the PricingPlanHelper Apex class, update the output map to include the variables.
            Output
          9. Update the Pricing Plan to call the calculation procedure and calculation matrix.
            Calculate ABP
          10. To update unit rates and costs efficiently, you can upload the data from a CSV file. See Prepare a CSV File to Upload to a Calculation Matrix.

          When you view the product in the Cart, make sure that the Usage Price, Usage Price Total, and Usage Margin are as expected.

          Product Cart
           
          Loading
          Salesforce Help | Article