Modify Journal Approval Notifications with Analytics Publisher

This example shows how to modify notifications for the journal approval workflow using Oracle Analytics Publisher reports.

The following table summarizes the key decisions for this scenario.

Decisions to Consider

In This Example

What text changes are needed in the notification header?

Append the fiscal year.

What additional field should the notification header include?

The name of the user who created the journal batch.

What changes are needed in the details section of the notification?

Replace the values of the cost center and account segments with the descriptions for those segments. The chart of accounts has the following segments: Company, Cost Center, Account, Product.

Modify the journal approval notification by:

  1. Downloading the report layout template.

  2. Copying and modifying the data model. This step is only needed if the attributes to be added to the notification aren't already present in the data model.

  3. Exporting the data model. You must perform this step even if you didn't make changes to the data model. This step is needed for previewing.

  4. Editing the report layout template.

  5. Previewing the modified notification.

  6. Uploading the modified report layout template.

For more information about configuring Analytics Publisher notifications, see the Reports chapter in the Creating Analytics and Reports for Financials Cloud guide.

Prerequisites

  1. To edit the report layout template, download and install Template Builder for Word, which is an extension to Microsoft Word.

    1. Sign in to the application with the application consultant job role.

    2. In the Reports and Analytics work area, click the Browse Catalog button.

    3. Click the Home link.

    4. In the Get Started section, click the Download BI Desktop Tools link.

    5. Select Template Builder for Word from the list.

    6. Save the file and run the installer.

  2. To preview the notification output for your modified report layout template, you must first download a copy of the Workflow Notification Subtemplate.

    1. Click the Catalog link on the Oracle Business Intelligence home page and expand the Shared Folders > Common Content > Templates folder.

    2. Click the Edit link for the Workflow Notification Subtemplate. The subtemplate page opens.

    3. In the Templates section, click the language name link in the Locale column.

    4. Save the subtemplate .rtf file to your computer.

  3. The predefined data model displays the account combination, which is based on segment values, on the journal approval notification. To display a combination of segment values and descriptions on the notification, identify the segment codes for all of the chart of account segments. The segment codes are used in the task Copying and Modifying the Data Model.

    1. In the Setup and Maintenance work area, go to the following:

      • Offering: Financials

      • Functional Area: Financial Reporting Structures

      • Task: Manage Chart of Accounts Structure

    2. Search for the Accounting Flexfield and click Manage Structures to open the Manage Key Flexfield Structures page.

    3. Search for your chart of accounts and click Edit in the Search Results section.

    4. Find the segment code values for all of the segments in the Segment Code column. In this example, the segment codes are VF_Company, VF_Cost_Center, VF_Account, and VF_Product.

  4. Find an existing journal approval notification and note the values for the following attributes: accounting period, journal batch name, and ledger name. This information is used to produce sample report data for the task Exporting the Data Model.

    Note: The exact steps can vary depending on your version of Microsoft Word.

Downloading the Report Layout Template

The report layout template contains the structure of the notification. To download a copy of the journal approval report layout template to your local drive for modification:
  1. Sign in to the BI server (for example, http://hostname.com:7001/xmlpserver) with the application consultant job role.

  2. Click the Catalog link to open the Catalog page.

  3. In the Folders pane, expand the Shared Folders > Financials > Workflow Notifications > General Ledger folder.

  4. Click the Journals folder to display the Data Models subfolder and the Journal Approval Report.

  5. Click the More link for the Journal Approval Report, and then select Customize from the menu. The Journal Approval Report folder, containing the predefined report layout template, is automatically copied to the Custom folder and the Journal Approval Report page opens from within that folder.

    Note: If the Customize option isn't available from the menu, check that you signed in to the BI server as mentioned in step 1.
  6. Click the Edit link on the copy of the Journal Approval Notification report layout template.

  7. Save the copy of the .rtf file to your local drive and change the file name to distinguish it from the predefined report layout template. For example, save the file as UpdatedJournalApprovalNotificationReport.rtf.

    Caution: Be sure to change the name of the .rtf file, otherwise you could overwrite the predefined report layout template.

Copying and Modifying the Data Model

Always make a copy of the data model to preserve the predefined data model from errors and to have a data model to which you can revert. Modify the copy to add or remove attributes from the data model. In this example, you modify the data model to include either a segment value or a segment description for each segment in the chart of accounts.
  1. To copy the data model:

    1. Click the Catalog link on the Oracle Business Intelligence home page to open the Catalog page.

    2. In the Folders pane, expand the Shared Folders > Financials > Workflow Notifications > General Ledger folder.

    3. Click the Journals folder to display the Data Models subfolder and the Journal Approval Report.

    4. In the Folders pane, click the Data Models subfolder to select it.

    5. In the toolbar, click the Copy Resource button.

    6. In the Folders pane, expand the Shared Folders > Custom > Financials > Workflow Notifications > General Ledger folder.

    7. Click the Journals folder to select it.

    8. In the toolbar click the Paste Resource button to create a copy of the Data Models folder.

      Note: The Journal Approval Report is automatically redirected to use the copy of the data model in the Custom folder.
  2. Use a text editor to construct the SQL statement for each segment in the chart of accounts to display either a value or a description.

    1. Use this statement as a template for displaying a segment value: FUN_BIP_UTIL_PKG.get_seg_value_from_code(lines.CODE_COMBINATION_ID,'Segment_code') as Segment_Val.

      Use this statement as a template for displaying a segment description: FUN_BIP_UTIL_PKG.get_seg_description_from_code(lines.CODE_COMBINATION_ID,'Segment_Code') as Segment_Desc

    2. Replace the Segment_code value in each statement with the segment codes from your chart of accounts.

    3. Replace the Segment_Val or Segment_Desc values at the end of each statement with a user-defined term for that segment.

      Note: The user-defined terms are added to the report layout template as part of the task Editing the Report Layout Template.

    The following table shows the segment names, segment codes, and prepared SQL statements for each segment in the chart of accounts. Each SQL statement includes the segment code and ends with the user-defined term representing the segment and indicating whether it's a value or a description. For example, the SQL statement for the cost center ends with CostC_Desc. Each statement ends with a comma.

    Segment Name

    Segment Code

    SQL Statement

    Company

    VF_Company

    FUN_BIP_UTIL_PKG.get_seg_value_from_code(lines.CODE_COMBINATION_ID,'VF_Company') as Company_Value,

    Cost Center

    VF_Cost_Center

    FUN_BIP_UTIL_PKG.get_seg_description_from_code(lines.CODE_COMBINATION_ID,'VF_Cost_Center') as CostC_Desc,

    Account

    VF_Account

    FUN_BIP_UTIL_PKG.get_seg_description_from_code(lines.CODE_COMBINATION_ID,'VF_Account') as Account_Desc,

    Product

    VF_Product

    FUN_BIP_UTIL_PKG.get_seg_value_from_code(lines.CODE_COMBINATION_ID,'VF_Product') as Product_Value,

  3. To edit the copy of the data model:

    1. Find your copy of the data model by expanding the Shared Folders > Custom > Financials > Workflow Notifications > General Ledger > Journals > Data Models folder.

    2. Click the Edit button for the Journal Approval Data Model copy. The Journal Approval Data Model page opens.

    3. In the Data Model pane, in the Data Sets folder, click the Journal Lines data set.

    4. On the Diagram tab, click the Edit Selected Data Set button. The Edit Data Set - Journal Lines dialog box opens with the SQL query for the Journal Lines data set.

      The following figure shows the Edit Data Set - Journal Lines dialog box with the predefined SQL query.

      This figure shows the Edit Data Set - Journal Lines dialog box with fields for Name, Data Source, Type of SQL, and SQL Query.
    5. In the SQL Query field, place your cursor after SELECT and insert rows for the new SQL statements.

    6. Copy the SQL statements that you prepared in step 2 into the SQL query field after the word SELECT and before the lines.JE_HEADER_ID HDR_ID.

      The following figure shows the Edit Data Set - Journal Lines dialog box with the new SQL statements.

      This figure shows the Edit Data Set - Journal Lines dialog box with fields for the Name, Data Source, Type of SQL, and SQL Query. The SQL Query field includes the statements constructed in step 2 of this task.
    7. Click OK to close the Edit Data Set - Journal Lines dialog box.

    8. Click the Save button to save the modified copy of the data model.

Exporting the Data Model

To add fields from the data model to your copy of the report layout template, you must first export the modified data model .xml file.
  1. Click the Catalog link on the Oracle Business Intelligence page to open the Catalog page.

  2. In the Folders pane, expand the Shared Folders > Custom > Financials > Workflow Notifications > General Ledger > Journals folder.

  3. Click the Data Models folder to display the modified Journal Approval Data Model.

  4. Click the Edit link for the data model. The data model page opens on the Diagram tab.

  5. Click the Data tab.

  6. To export the full data model .xml file, click in each of these fields and enter values from an existing journal approval notification: Accounting Period, Journal Batch Name and Ledger Name.

  7. To include empty fields in the data model export, click the Properties link in the Data Model pane.

  8. On the Properties page, select the Include Empty Tags for Null Elements option.

  9. Click Save.

  10. In the Data Model pane, click the Data Sets link to return to the Data tab.

  11. Click the View button to view the sample data.

  12. Click the Export button and save the Journal Approval Data Model .xml file to a local drive.

  13. Repeat step 7 to return to the Properties page and deselect the Include Empty Tags for Null Elements option.

    Note: If you leave this option selected, performance issues could result.
  14. Click Save.

Editing the Report Layout Template

Edit the copy of the report layout that you downloaded earlier in the task Downloading the Report Layout Template.
  1. To append the fiscal year to the notification header:

    1. Open your local copy of the report layout template using Microsoft Word.

    2. Place your cursor at the end of the default header text, which is Journal Batch Approval.

    3. Add a space and enter the text Fiscal Year 2017 - 2018. The header now says Journal Batch Approval Fiscal Year 2017 - 2018.

      The following figure shows the modified notification header.

      This figure shows the header portion of the report layout template with the text Fiscal Year 2017 - 2018 appended after the Batch Approval text.
  2. To add the name of the user who created the journal batch to the notification:

    1. Select the Publisher tab to open the Publisher ribbon.

    2. In the Load Data group on the ribbon, click Sample XML.

    3. On the XML data selection dialog box, select the .xml file that you saved in step 11 of the task Exporting the Data Model. Click Open.

    4. Click OK on the message that appears indicating that the data was successfully loaded.

    5. In the header section of the report layout template, place your cursor at the end of the BATCH_SOURCE field, and insert a new line.

    6. Enter the text label for the new field, such as Batch Created By, and then add a space.

    7. In the Insert group on the Publisher ribbon, click the Field button. The Field dialog box opens with a list of the data model fields.

    8. In the JOURNAL_BATCH folder, select the BATCH_CREATOR field and click Insert. The field is automatically added to the header section after the new text label.

    9. On the Field dialog box, click Close.

      The following figure shows the modified notification header.

      This figure shows the header portion of the report layout template with the Batch Created By text followed by the BATCH_CREATOR field. The BATCH_CREATOR field was inserted from the data model.
  3. To replace the account combination ID fields on the report layout template with the segment values and descriptions that were added to the data model:

    1. Place your cursor after the label called StrtLineLINE_ACCOUNTEC and insert a new line.

    2. In the Insert group on the Publisher ribbon, click the Field button. The Field dialog box opens with a list of the data model fields.

    3. In the Journal Lines folder, select the COMPANY_VALUE field. The name for this field is the user-defined name for the company segment from the task Copying and Modifying Data Model.

    4. Click Insert to add the field to the report layout template.

    5. In the report layout template, add a character such as a hyphen, to separate the segments.

    6. Select the rest of the segments from the Field dialog box and insert them into the report layout template with a separator between each segment.

      The following figure shows the modified notification with the account segments.

      This figure shows the modified report layout template with all of the segments separated by a hyphen: COMPANY_VALUE-COSTC_DESC-ACCOUNT_DESC-PRODUCT_VALUE.
    7. Format the segments that were added by copying the format from the CLINE_ACCOUNTEC field in the report layout template. Click the CLINE_ACCOUNTEC field.

    8. Click the Home ribbon, select the Format Painter button, and select the segments that were added. For example, select COMPANY_VALUE-COSTC_DESC-ACCOUNT_DESC-PRODUCT_VALUE.

    9. Place your cursor after the CLINE_ACCOUNTEC field and insert a new line.

    10. Copy the account line that you created in the previous steps of this section and paste it into the new line.

      The following figure shows the modified notification with the account segments appearing after both the StrtLineLINE_ACCOUNTEC and the CLINE_ACCOUNTEC fields.

      This figure shows the modified report layout template with all of the segments separated by a hyphen: COMPANY_VALUE-COSTC_DESC-ACCOUNT_DESC-PRODUCT_VALUE after the CLINE_ACCOUNTEC field.
    11. Delete the fields StrtLineLINE_ACCOUNTEC and CLINE_ACCOUNTEC from the report layout template.

    12. Click Close on the Field dialog box.

  4. Save your local copy of the report layout template.

Previewing the Modified Notification

Before uploading your modified report layout template to the BI catalog, you should preview the output with the changes that you made. You can avoid uploading a broken report that displays an error to users.
  1. Replace the path at the beginning of the modified .rtf template with the location of the subtemplate that you downloaded as a prerequisite. For example, change <?import:xdoxsl:///Common Content/Templates/Workflow Notification Subtemplate.xsb?> to <?import:file:///C:/Template_Directory/FinFunWorkflowNotificationSub.rtf?>.

    Note: Save the original path information so you can copy it back after previewing.
  2. In the Preview group on the Publisher ribbon, click HTML.

    The following figure shows an example of how the account combination appears in the preview. The value for the company segment is 31111. The segment description for cost center is R&D US. The description for the account segment is White Wine Revenue, and the value for the product segment is 0000.

    This figure shows an example of the notification with the account number.
  3. If the preview reflects your changes as expected, then change the subtemplate path in the .rtf file back to the original location.

  4. In the Tools group on the Publisher ribbon, click Validate Template.

  5. Save the modified report layout template.

Uploading the Modified Report Layout Template

To use the modified report layout template for future journal approval notifications:
  1. Click the Catalog link on the Oracle Business Intelligence home page to open the Catalog page.

  2. In the Folders pane, expand the Shared Folders > Custom > Financials > Workflow Notifications > General Ledger folder.

  3. Select the Journals folder to display the Data Models folder and the Journal Approval Report.

  4. Click the Edit link for the Journal Approval Report to open the Journal Approval Report page.

  5. Click the View a list link to open the Layout page.

    Tip: The Layout page displays the copy of the predefined report layout template that was automatically created in step 5 of the task Downloading the Report Layout Template. If you're not satisfied with your changes, you can revert back to this copy by making it the default layout. (Refer to step 11.) Alternatively, you can revert back to the predefined report layout template by deleting the Journal Approval Report folder from the directory Shared Folders > Custom > Financials Workflow Notifications > General Ledger.
  6. Click the Create button. A page opens with a Create Layout section and an Upload or Generate Layout section.

  7. In the Upload or Generate Layout section, click the Upload button. The Upload Template File dialog box opens.

  8. Complete the fields, as shown in this table.

    Field

    Value

    Layout Name

    Enter a name for the modified report layout template. For example, enter Modified Journal Approval Template.

    Template File

    Click Browse. Locate and select the modified report layout template that's on your local drive. Click Open to return to the Upload Template File dialog box.

    Type

    RTF Template

    Locale

    English

  9. Click Upload. The Journal Approval Report page returns to the thumbnail view and displays the report layout template that you just uploaded, along with the original copy.

    Note: Configurable workflow notifications are refreshed every 24 hours so that they perform better for your users. But when you're making changes to reports, subtemplates, or data models, you can apply your changes immediately so they're available for testing. For more information, see the Apply Changes to Workflow Notifications Immediately After Upload topic.
  10. Click the View a list link to return to the Layout page with the list of the report layout templates.

  11. In the row for the report layout template that you just uploaded, click the Default Layout option. This step enables the modified report layout template for future journal approval notifications.

  12. Click the Save button to save the change to the default layout.