Create Contexts and Context-Sensitive Segments

Create the activity type (for example, Stationary Combustion) as the context for the Emission Factor Map descriptive Flexfield. Create the attributes (for example, Fuel Type) of the activity type as the context-sensitive segment.

Before you start

To perform this procedure, you must be assigned a role to access the Manage Sustainability Descriptive Flexfields task.
  1. In the Setup and Maintenance work area, go to the Manage Sustainability Descriptive Flexfields task:
    • Offering: Manufacturing and Supply Chain Materials Management, Product Management, or Procurement
    • Functional Area: Sustainability
  2. Click the Manage Sustainability Descriptive Flexfields task.

  3. On the Manage Sustainability Descriptive Flexfields page, click Search.

  4. From the search results, select the row with Emission Factor Map, and then click the Edit icon.

  5. On the Edit Descriptive Flexfield: Emission Factor Map page, in the Context Segment section, select BI Enabled.

  6. Click Manage Contexts.
  7. On the Manage Contexts page, click the Create icon.

  8. On the Create Context page, enter the required details to create the activity type as a context. The following steps provide sample values for creating a context for the Stationary Combustion activity type:
    1. In the Display Name field, enter the name of the activity type. For example, Stationary Combustion. The Context Code and API name fields are automatically populated.

      Note: Ensure that the display name is less than or equal to 30 characters, including spaces. The context code, which is generated automatically based on the display name, must not exceed 30 characters to avoid problems later if you plan to upload data using File-Based Data Import (FBDI) or use invoice classification. After the context code is generated, you can't update it, but you can update the display name.
    2. Ensure that the Enabled checkbox is selected.

  9. Click Save.

  10. In the Context Sensitive Segments section, click the Create icon to add the attribute of the activity type as a context-sensitive segment.

  11. On the Create Segment page, enter the required details to create the attribute as a context-sensitive attribute. The following steps provide sample values for creating a context-sensitive segment for the Fuel Type attribute of the Stationary Combustion context value:

    Note:

    If you're using a context that is provided in the Emission Factor Mapping accelerator spreadsheet and has more than one context-sensitive segment, then define the context-sensitive segments in the same sequence as it appears in the Emission Factor Mapping accelerator spreadsheet. This will ease the process of copying data into Oracle Visual Builder Add-in for Excel spreadsheets later.

    1. In the Name field, enter the name of the attribute (for example Fuel Type). The Code and API Name fields are automatically populated.

      Note:
      • Ensure that the value in the Name and Code fields are unique across all activity type attributes, across all contexts.
      • Ensure that the name is less than or equal to 30 characters, including spaces. The Code, which is generated automatically based on the name, must not exceed 30 characters to avoid problems later if you plan to upload data using File-Based Data Import (FBDI) or use invoice classification. After the code is generated, you can't update it, but you can update the display name.
    2. In the Column Assignment section, from the Data Type drop-down list, select Character.

    3. The Table Column is automatically populated with the next available internal table column, for example, EFM_ATTRIBUTE1, EFM_ATTRIBUTE2, and so on. Don’t change this value.

    4. In the Validation section, from the Value Set drop-down list, select the value set that was created in one of the earlier steps. For example, FUEL_TYPE.

    5. In the Display Properties section, the values for the Prompt and Display Type fields are autopopulated.

    6. In the Business Intelligence section, select BI Enabled.

    7. Click Save and then Save and Close.

      The context-sensitive segment and the context are saved.

  12. (Optional) Repeat Steps 10 and 11 to add more attributes as context-sensitive segments.
  13. Click Save and Close.

  14. Repeat steps 7 through 13 to add more contexts and context-sensitive segments.