Commerce Documents

Overview

Each Commerce Process contains one or more document sets. There are two types of Commerce documents: main document (e.g. Quote or Transaction) and sub-document (e.g. Line Item or Transaction Line).

Document relationship

A document set is comprised of a main document, or a main document with an attached sub-document. Using these document types, you can create flexible Commerce processes.

  • For every process, Commerce documents are created in a one-to-one relationship.
  • Every main document can be mapped to only one sub-document.
  • A summary of sub-document data also appears on main documents, in the Line Item Grid.

Example: A process named RFQ can contain a main document and a corresponding sub-document (RFQ sub). Main documents are used for general information pertaining to the Transaction, like customer name or billing and shipping information, while sub-documents are used as product detail pages.

Standard Process Documents

The Standard Process is delivered for new Oracle CX Sales integrated site installations and is the default process when creating a new Commerce process. The standard main and sub-documents are Transaction and Transaction Line, respectively. The Standard Process documents come with predefined functional logic that is ready for customers' use. If required, seeded logic can be overridden by administrators to incorporate their customization logic.

ClosedActions

Transitions can be created between main and sub-documents using the system-generated Commerce action, open sub-document. Transitions can be created between two main documents using workflow steps.

Attributes and actions are the building blocks of documents. Attributes are used to create document fields, whereas actions trigger events. Along with the custom attributes and actions you can create, the Commerce system provides a set of standard attribute sets and system-generated actions.

After generating document attributes and actions, all the pieces can be arranged using document views. Only those attributes and actions included in a view appear to users.


ClosedUser-Defined Commerce Actions

Action Name Description
Modify This is the most common type of action and is used to change attribute values, modify quote data and save modifications to the transaction.
Back This is an action that takes the user back to the last viewed page. It does not save user data.
Add from Catalog This sends the user to the home page to select items to add to the transaction.
Print Displays a document created by the Document Engine. It is Modify action and hence possesses the same characteristics.
Email Emails a document created by the Document Engine.
Display History This is used to display the change history for a document. This action requires an XSL format file that controls how and which changes appear.
Export Attachment This enables a user to add the proposal (PDF) to the related partner Opportunity (only on an integrated site). It possesses the same characteristics as a Modify action.
Copy to Favorites * This is a special action that is used to copy selected line items from the transaction to the favorites. From here the user can add it back to the transaction.
Copy Line Items * This enables users to make one or more copies of one or more line items (configured and non-configured) at a time. It is a Modify action; however, unlike other Modify actions, the Copy Line Item Action possesses an Initialization tab and has no Integration tab.
Submit * This creates a special set of Approval Actions and Attributes used to set up approval sequences.

* Represents a system-generated action that is available on the main document only.


ClosedSystem-Generated Commerce Actions

Action Name Description
Update Line Items Enables users to modify line item data on a main document and then save changes.
Remove [sub-document] Enables users to remove products.
Open [sub-document] Enables users to view product details on a sub-document.
Create [next main document] Enables users to move on to the next main document in the Commerce Process. The Create button automatically appears with all main documents.
Reconfigure * Enables users to change a product's configuration. The system automatically creates a Reconfigure button when a Configurable Attribute Set (which is a composite attribute) is added to a main document.
Recalculate * Enables user to recalculate pricing data after a pricing field is altered. The Recalculate action is generated automatically when a Price Attribute Set is added to a sub-document.
Create [sub-document] * Enables users to create another sub-document. The system automatically creates the Create [sub-document] action if there is another sub-document attached to the next main document in order.
Autofill | Browse | View | Select Alternate Address

These are generated automatically when a Customer ID attribute field is added to a main document. They are also automatically removed from a main document if the Customer ID attribute is removed.

Autofill: A user can enter an ID into the Customer ID attribute, click the Autofill action and automatically link data from the Accounts database to the main document. Its variable name is _auto_fill_action. To trigger a default autofill with user or account information, set this option on the Process Administration page.

Browse: Enables user to search the Accounts database for a customer record. Its variable name is _browse_action.

View: Enables suppliers to view an Accounts profile when an ID appears in the Customer ID attribute. Its variable name is _view_crm_action.

Select Alternate Address: Enables the Host Company to associate an alternate Accounts address with a Commerce document. The system only displays this action when the Customer ID associated with a Commerce document has multiple addresses. Its variable name is _select_alternate_address_action.

* Represents a system-generated action that is available only on the main document.

The system automatically deletes system-generated actions when their corresponding attribute or attribute set is deleted, if attribute sets are associated.


Administration

ClosedManage Documents

Use the Document List page to manage Commerce documents within the selected process.

  1. ClosedNavigate to the Document List page.
    1. Click Admin to go to the Admin Home Page.

    2. Click Process Definition in the Commerce and Documents section.

      The Processes page opens.

    3. Select Documents from the Navigation drop-down for the applicable process, and click List.

      The Document List page opens.

  2. Select an option from the Navigation drop-down and click List.

    The corresponding screens (for the option selected) appear. The options are:

    • Attributes: Clicking List next to Attributes displays the Attributes List page for managing attributes for documents within the selected process.
    • Actions: Clicking List next to Actions displays the Actions List page.
    • Groups: Clicking List next to Groups displays the Group List page.

  3. Admins can select which Quote-level formulas will be executed when a new line item is added to a quote on the Modify tab within the Attribute Editor.

    Modify tab

    Main document formulas can be executed when users add a line item (sub-document) to the quote, regardless of whether the line item is a result of Configuration, Search, or Quick Key Line Items.

    When a new line item is added to a Quote, the formulas that are defined for line item attributes will run to determine the default values of the attributes.

  4. Click Back to return to the Processes page.

ClosedAdd a Sub-Document

Complete the following steps to create a new sub-document for a Commerce process.

Notes:

  • Customers can create a new pre-populated process using the Standard Process.
  • It is very unusual to create a blank Commerce Process or documents from scratch; customers typically use the default Commerce Process and its documents.
    • If another Commerce Process or Document is required, best practice is to clone the existing Commerce Process or Document and then delete everything that isn’t needed.
    • For more information on cloning a Commerce Process, see Commerce Deployment Center.
  1. Navigate to the Admin Home Page.
  2. Click Process Definition in the Commerce and Documents section.
  3. Select Documents from Navigation drop-down for the applicable process.
  4. Click List.

  5. Click Add.

    The Add button is only displayed when a Commerce Process has not been deployed.
  6. Enter a Name.

    This label distinguishes one document from another and is used as the page title on the Commerce side whenever a user opens the document type.

  7. For the document Type, select the Sub Document option.
  8. Enter a unique Variable Name.

    The Variable Name field populates automatically. Variable names can only contain alpha-numeric characters and underscores. The entry can be changed before saving, but after saving the value is read-only.

  9. Enter a document Description.
  10. Click Add.

    The Document List page re-opens.

Note: The sub-document must be mapped to a main document before editing. Complete the following tasks to edit this sub-document:

  1. Add a Main Document and map to this sub-document.
  2. Proceed to Edit a Sub-Document.

ClosedAdd a Main Document

Complete the following steps to create a new main document for a Commerce process.

Notes:

  • Customers can create a new pre-populated process using the Standard Process.
  • It is very unusual to create a blank Commerce Process or documents from scratch; customers typically use the default Commerce Process and its documents.
    • If another Commerce Process or Document is required, best practice is to clone the existing Commerce Process or Document and then delete everything that isn’t needed.
    • For more information on cloning a Commerce Process, see Commerce Deployment Center.
  1. Navigate to the Admin Home Page.
  2. Click Process Definition in the Commerce and Documents section.
  3. Select Documents from Navigation drop-down for the applicable process.
  4. Click List.

  5. Click Add.

    The Add button is only displayed when a Commerce Process has not been deployed.

    The Add Document page opens.

  6. Enter a Name.

    This label distinguishes one document from another and is used as the page title on the Commerce side whenever a user opens the document type.

  7. For the document Type, select the Main Document option.
  8. Select the sub-document from the drop-down next to the Main Document option.
  9. Enter a unique Variable Name.

    The Variable Name field populates automatically. Variable names can only contain alpha-numeric characters and underscores. The entry can be changed before saving, but after saving the value is read-only.

  10. Enter a document Description.
  11. Enter Opportunity Id Mapping, if necessary.

    This field is used to map a Salesforce opportunity id to a Commerce document.

  12. Click Add.

    The Advanced Default, Auto Update - Before Formulas, and Auto Update - After Formulas options appear.

    Add Document page

  13. Edit the Advanced Default, if necessary.

    • Select No Advanced Default.

      -or-

    • Select Define Advanced Default, then click Define Function.

      The Select Attributes dialog box appears.

      1. Select the System Variable Name, Variable Name for (Main Document), Variable Name for (Sub-Document), and/or Library Function(s) for the selected document.
      2. Click Next Screen to go the Function Editor page.
      3. Enter the BML function, then click Save and Close.
  14. Edit Auto Update - Before Formulas, if necessary.
    This allows functions to run before Formulas when the Commerce page performs an auto update.

    • Select No Auto Update - Before Formulas.

      -or-

    • Select Define Auto Update - Before Formulas, then click Define Function.

      The Select Attributes dialog box appears.

      1. Select the System Variable Name, Variable Name for (Main Document), Variable Name for (Sub-Document), and/or Library Function(s) for the selected document.
      2. Click Next Screen to go the Function Editor page.
      3. Enter the BML function, then click Save and Close.
  15. Edit Auto Update - After Formulas, if necessary.

    This allows functions to run after Formulas when the Commerce page performs an auto update. This was previously known as simply auto update.

    • Select No Auto Update - After Formulas.

      -or-

    • Select Define Auto Update - After Formulas, then click Define Function.

      The Select Attributes dialog box appears.

      1. Select the System Variable Name, Variable Name for (Main Document), Variable Name for (Sub-Document), and/or Library Function(s) for the selected document.
      2. Click Next Screen to go the Function Editor page.
      3. Enter the BML function, then click Save and Close.

Main document formulas can be executed when users add a line item (sub-document) to the quote, regardless of whether the line item is a result of Configuration, Search, or Quick Key Line Items.

When a new line item is added to a Quote, the formulas that are defined for line item attributes will run to determine the default values of the attributes.

  1. Click one of the following actions:

    • Translations: Oracle CPQ content and product templates can be translated into supported languages.
    • Apply: saves changes and remains on the page.
    • Update: saves changes and returns to the Document List page.
    • Back: returns to the Document List page without saving changes.

Note: If Advanced Default - Before Formulas or Advanced Default - After Formulas are required for the sub-document, proceed to the Edit a Sub-Document procedure.


ClosedEdit a Main Document

Complete the following steps to edit a main document.

  1. Navigate to the Admin Home Page.
  2. Click Process Definition in the Commerce and Documents section.
  3. Select Documents from Navigation drop-down for the applicable process.

    Document List page

  4. Click the name for the main document.

    Add Document page

    ClosedView Standard Process Main Document

    Standard Process Transaction

  5. Edit the Name, if necessary.
  6. Edit the Description, if necessary.
  7. Enter Opportunity Id Mapping, if necessary.

    This field is used to map a Salesforce opportunity id to a Commerce document.

  8. Edit the Advanced Default, if necessary.

    • Select No Advanced Default.

      -or-

    • Select Define Advanced Default, then click Define Function.

      The Select Attributes dialog box appears.

      1. Select the System Variable Name, Variable Name for (Main Document), Variable Name for (Sub-Document), and/or Library Function(s) for the selected document.
      2. Click Next Screen to go the Function Editor page.
      3. Enter the BML function, then click Save and Close.

    Standard Process Documents are pre-populated with default values.

    • To override a default value, check the applicable override option, click Apply, and then define the new function.
    • To quickly return to the standard function, simply uncheck the applicable override option, and then click Apply.
    • To view a function in read-only mode, click on View Function.
  9. Edit the Auto Update - Before Formulas, if necessary.
    This allows functions to run before Formulas when the Commerce page performs an auto update.

    • Select No Auto Update - Before Formulas.

      -or-

    • Select Define Auto Update - Before Formulas, then click Define Function.

      The Select Attributes dialog box appears.

      1. Select the System Variable Name, Variable Name for (Main Document), Variable Name for (Sub-Document), and/or Library Function(s) for the selected document.
      2. Click Next Screen to go the Function Editor page.
      3. Enter the BML function, then click Save and Close.

    Standard Process Documents are pre-populated with default values.

    • To override a default value, check the applicable override option, click Apply, and then define the new function.
    • To quickly return to the standard function, simply uncheck the applicable override option, and then click Apply.
    • To view a function in read-only mode, click on View Function.
  10. Edit the Auto Update - After Formulas, if necessary.

    This allows functions to run after Formulas when the Commerce page performs an auto update. This was previously known as simply auto update.

    • Select No Auto Update - After Formulas.

      -or-

    • Select Define Auto Update - After Formulas, then click Define Function.

      The Select Attributes dialog box appears.

      1. Select the System Variable Name, Variable Name for (Main Document), Variable Name for (Sub-Document), and/or Library Function(s) for the selected document.
      2. Click Next Screen to go the Function Editor page.
      3. Enter the BML function, then click Save and Close.

    Standard Process Documents are pre-populated with default values.

    • To override a default value, check the applicable override option, click Apply, and then define the new function.
    • To quickly return to the standard function, simply uncheck the applicable override option, and then click Apply.
    • To view a function in read-only mode, click on View Function.
  11. Click one of the following actions:

    • Translations: Oracle CPQ content and product templates can be translated into supported languages.
    • Apply: saves changes and remains on the page.
    • Update: saves changes and returns to the Document List page.
    • Back: returns to the Document List page without saving changes.


ClosedEdit a Sub-Document

Complete the following steps to edit a sub-document.

  1. Navigate to the Admin Home Page.
  2. Click Process Definition in the Commerce and Documents section.
  3. Select Documents from Navigation drop-down for the applicable process.
  4. Click List.

    Document List page

  5. Click the name of the sub-document on the Document List page.

    Add Sub-Document

    ClosedView Standard Process Sub-Document

    Standard Process Transaction Line

  6. Edit the Name and/or Description displayed on the Add Document page.
  7. Select the Yes option for Enable Coverage Service Quoting.

    Coverage Products for a Standard Process

    Note: The coverage product attributes are automatically mapped for the Standard Process.

    Coverage Products for a non-Standard Process

    Note: The Sales Product Type attribute in the sub-document Part Attribute Set must be enabled. Refer to Manage Parts Attributes for instructions.

    Search and map the following fields:

    • Coverage Order Number Mapping – the attribute which records the order number attribute of the covered product.

    • Coverage Line Number Mapping - the attribute which records the line number attribute of the covered product.

    • UOM Mapping - the attribute which records the ‘Unit of Measure’ of the coverage service, which should be same as that of the covered product.

    • Quantity Mapping - the attribute which records the 'Quantity' of the coverage service, which should be same as that of the covered product.

    • Order Number Mapping - the attribute which is used to search for previous Orders, which contains the product to be covered.

    • Customer Id Mapping - the attribute which captures the customer ID of the customer placing the coverage order.

  8. Edit the Advanced Default - Before Formulas, if necessary.
    • Select No Advanced Default- Before Formulas.

      -or-

      Select Define Advanced Default - Before Formulas, then click Define Function.

      The Select Attributes dialog box appears.

      1. Select the System Variable Name, Variable Name for (Main Document), Variable Name for (Sub-Document), and/or Library Function(s) for the selected document.
      2. Click Next Screen to go the Function Editor page.
      3. Enter the BML function, then click Save and Close.

    Standard Process Documents are pre-populated with default values.

    • To override a default value, check the applicable override option, click Apply, and then define the new function.
    • To quickly return to the standard function, simply uncheck the applicable override option, and then click Apply.
    • To view a function in read-only mode, click on View Function.
  9. Edit the Advanced Default - After Formulas, if necessary.

    This allows functions to run after Formulas when the Commerce page performs an auto update. This was previously known as simply auto update.

    • Select No Advanced Default-After Formulas.

      -or-

      Select Define Advanced Default - After Formulas, then click Define Function.

      The Select Attributes dialog box appears.

      1. Select the System Variable Name, Variable Name for (Main Document), Variable Name for (Sub-Document), and/or Library Function(s) for the selected document.
      2. Click Next Screen to go the Function Editor page.
      3. Enter the BML function, then click Save and Close.

    Standard Process Documents are pre-populated with default values.

    • To override a default value, check the applicable override option, click Apply, and then define the new function.
    • To quickly return to the standard function, simply uncheck the applicable override option, and then click Apply.
    • To view a function in read-only mode, click on View Function.
  10. Click the Modify tab to choose whether to Use Formula or Don't Use Formula for certain quote-level attributes.

    Only quote level attributes exist on the line level Modify tab. For each quote level attribute, the user can specify whether to use or not use formulas during a new line item addition.

    Modify tab

    ClosedView Standard Process Sub-Document Modify Tab

    Standard Process Transaction Line Modify Tab

    Standard Process Documents are pre-populated with default values.

    • To override a default value, check the applicable override option, click Apply, and then define the new function.
    • To quickly return to the standard function, simply uncheck the applicable override option, and then click Apply.
    • To view a function in read-only mode, click on View Function.

    Main document formulas can be executed when users add a line item (sub-document) to the quote, regardless of whether the line item is a result of Configuration, Search, or Quick Key Line Items.

    When a new line item is added to a Quote, the formulas that are defined for line item attributes will run to determine the default values of the attributes.

  1. Click one of the following actions:

    • Translations: Oracle CPQ content and product templates can be translated into supported languages.
    • Apply: saves changes and remains on the page.
    • Update: saves changes and returns to the Document List page.
    • Back: returns to the Document List page without saving changes.

    The order of execution is:

    1. Modify tab

    2. Advanced Default- Before Formulas

    3. Formulas

    4. Advanced Default- After Formulas.


ClosedDeleting a Document

It is not possible to recover a deleted Commerce document.
Upon deletion, all associated views, attributes and actions within the document are also deleted.

Complete the following steps to delete a Commerce document.

Only undeployed Commerce documents can be deleted.

  1. Navigate to the Admin Home Page.
  2. Click Process Definition in the Commerce and Documents section.
  3. Select Documents from Navigation drop-down for the applicable process.
  4. Click List.

  5. Select the checkbox for the corresponding document you wish to delete on the Document List page.
  6. Click Delete.

ClosedOrder a Document

Ordering documents determines how they appear in the Commerce Manager. Order numbers are auto-generated at the time of creating documents. Since only one sub-document is associated with a main document, sub-documents don't require ordering.

  1. ClosedNavigate to the Document List page.

    1. Click Admin to go to the Admin Home Page.

    2. Click Process Definition in the Commerce and Documents section.

      The Processes page opens.

    3. Select Documents from Navigation drop-down for the applicable process.
    4. Click List.

      The Document List page opens.

  2. Click on the order number next to the document and set it to any positive integer. The order numbers of other main documents in the list will be automatically reordered.
  3. Click Update.

    Changes to document order deletes current document mapping data.

ClosedFormulas in Reconfiguration Scenarios

The Reconfigure action is split into one parent (Reconfigure) and one sub-action (Reconfigure Inbound). This eliminates the need for conditionals to segregate logic.

  • The parent action (Reconfigure) contains all things common to both Reconfigure actions and its own identifiers: Label, Variable Name, Description, Action Icon, Show Loading Dialog, Layout Path, and Document Views Tab.
  • The sub-action (Reconfigure Inbound) only contains what is specific to it.
  • This allows administrators to execute a formula per attribute on:
    • Outbound paths from a Commerce Transaction.

    The Formula will run immediately after the user clicks the Reconfigure action in Commerce, and before the user enters Configuration.

    • Inbound paths to a Commerce Transaction.

    The Formula runs after the user clicks Save in the Reconfiguration, and before the user returns to the Commerce page.

  • Formula execution is consistent with the existing order of operations for inbound and outbound executions.

Notes

Warnings:

  • You cannot add, delete, or update order numbers for documents in a deployed Commerce Process.
  • Certain areas of document administration are only visible for Processes that have not been deployed. You cannot delete documents once a Process is deployed.
  • Users cannot create or add quotes from Configuration to Commerce if mandatory items are missing.

Notes:

  • Sub-documents and main documents have a one-to-one relationship, meaning only one sub-document can be associated with a main document.
  • Main document Advanced Default will run when the transaction is first created. Its purpose is to set main document attribute default values. The purpose is to have one script that sets all of these attribute values at once, instead of pulling each of them separately. This also simplifies maintenance because all the defaults are set in a single script.
  • Sub-document (line item) Advanced Default will run whenever a line item is added to a quote. The purpose of writing this script is to set all of the line item attribute values at once.

Tips and Considerations:

  • Edits are not visible until the process is deployed (or redeployed).
  • Create main documents as the primary documents in a set. Create sub-documents as detail pages that link up with main documents, that is, Line Item page for an RFQ.
  • There is an option, Run Once For All Line Items, next to the advanced default on sub-documents. Standard functionality of the Advanced Default is that it will run every time a line is added to a quote. Having this option enabled enhances performance.

Related Topics

Related Topics Link IconSee Also