Select the Allow Administration check box as required.

17-16 Oracle Fusion Middleware Administrators Guide for Oracle Business Intelligence Discoverer Note: When completing the following task there is a notable difference between what Oracle database users and Oracle Applications users will see in the dialog: ■ Oracle database users will see the words Users and Roles ■ Oracle Applications database users will see the words Users and Responsibilities For information about this task see How to specify the tasks a user or role responsibility can perform . How to specify the Oracle Applications usersresponsibilities who can perform a specific task This section describes how to specify the users or responsibilities that can perform a specific task. For information about Oracle Applications responsibilities, see What are Oracle Applications responsibilities? . Note: When completing the following task there is a notable difference between what Oracle database users and Oracle Applications users will see in the dialog: ■ Oracle database users will see the words Users and Roles ■ Oracle Applications database users will see the words Users and Responsibilities For information about this task see How to specify a user or role responsibility to perform a specific task . How to display your Oracle Applications database user name and responsibility in a workbook You can use a custom folder to display the name of your Oracle Applications database user and responsibility in a Discoverer workbook. You might want to do this because Discoverer workbooks can display different results depending on the Oracle Applications database user and responsibility that runs the workbook. This task enables you to identify which Oracle Applications database user and responsibility has run a particular Discoverer workbook. To display your Oracle Applications database user name and responsibility in a Discoverer workbook using a custom folder:

1.

Start Discoverer Administrator and display the Connect dialog . 2. Enter your Oracle Applications database user name, password and TNS alias. For example, apps1apps1passwordoracleappsdb: 3. If the Oracle Applications database user has more than one responsibility, choose a responsibility from the Responsibility list displayed in the Responsibilities dialog . 4. Choose Tools |Register PLSQL Functions to display the PLSQL Functions dialog: Arguments tab . Note: The PLSQL functions FND_GLOBAL.USER_NAME and FND_ GLOBAL.RESP_NAME must be available in the PLSQL Functions dialog: Arguments tab before you can subsequently use them in a custom folder. 5. If either of the functions FND_GLOBAL.USER_NAME and FND_GLOBAL.RESP_ NAME do not appear in the functions list you can import them. Using Discoverer with Oracle Applications 17-17 To import the PLSQL functions: a. Click Import to display the Import PLSQL Functions dialog . b. Choose both PLSQL functions from the list and click OK to close the import PLSQL Functions dialog. Note: Each PLSQL function is prefixed with the default Oracle Applications user, Apps for example, Apps.FND_GLOBAL.USER_NAME. c. Click OK to close the PLSQL Functions dialog: Functions tab and apply the changes. 6. optional If you do not want to import the PLSQL functions FND_ GLOBAL.USER_NAME and FND_GLOBAL.RESP_NAME, you can create them. Note: You might choose to create these two PLSQL functions instead of importing them, if the database takes a long time to display information. To create the PLSQL functions: a. Click New to create a new PLSQL function, and populate the fields with default data.

b. Enter FND_GLOBAL.USER_NAME into the Function Name field.

c. Enter FND_GLOBAL.USER_NAME into the Display Name field.

d. Enter APPS into the Owner field.

e. Choose Varchar in the Return Type field.

f. Enter some meaningful text into the Identifier field.

g. Click Apply to save the changes. h. Repeat the above steps to create another PLSQL function for FND_ GLOBAL.RESP_NAME that is, replace FND_GLOBAL.USER_NAME with FND_GLOBAL.RESP_NAME in step b. i. Click OK to close the dialog and save the changes. 7. Create a new business area or open an existing business area. For more information, see Chapter 5, Creating and Maintaining Business Areas . Note: In the following steps you will create a custom folder that contains the items User Name and Resp Name, and then you will include these items in a workbook. To make the custom folder readily available to other Oracle Applications business areas, you can create a new business area to contain just the custom folder. 8. Choose Insert | Folder | Custom to display the Custom Folder dialog . 9. Enter a meaningful name for the custom folder for example, UserResp_Name.

10. Enter the following SQL statement into the Enter the SQL to define the custom

folder field: Select fnd_global.user_name, fnd_global.resp_name from dual; The SQL statement above creates a custom folder containing the two items, User Name and Resp Name. Discoverer will use the PLSQL functions that you previously imported or created to display the Oracle Applications database user name and responsibility represented by User Name and Resp Name. For more information, see How to create custom folders .