Quantcast
Channel: Oracle Maniacs' Notes » Abhijit Ray
Viewing all 128 articles
Browse latest View live

Audit trail reporting

$
0
0

This article talks about the process of getting audit reports from Oracle. We have used the same setup that we have discussed in this article.

Setup Audit Trail Reports

Responsibility: System Administrator

Step 1: Create a new Audit Industry Template

Navigation: Security > AuditTrail > Audit Trail Reporting > Audit Industry Template

Query the form to check if any existing Industry template exists or not.

We find an already existing template and therefore we shall not create another industry template. Add the Group as the Functional Group in this template.

Select AP Audit group.

Save and close the form.


Step 2: Set the audit report

Navigation: Security > AuditTrail > Audit Trail Reporting > Audit Report

Enter the details

Click on Select Columns button.

Select the columns for which you want to run the report. We have selected 1 column, BANK_ACCOUNT_NUM, from the table, AP_BANK_ACCOUNTS_ALL.

Click on Print Options button.

It opens the printing options window and you can enter the printer details if you want to. We do not want the report to be printed to a printer and so we shall click on Cancel button to come back to the Select Reporting Columns form.

On the Select Reporting Columns form click on Run Report button.

The report is submitted and the request id is displayed. Now go to View > Requests > Find to check the concurrent requests.

Click on View Output button.

The output will display all changes made by SA1 user on the BANK_ACCOUNT_NUM column of this table.

The report in text format,

Page : 1
         Functional Group : AP Audit group
               Table Name : AP_BANK_ACCOUNTS_ALL
         Transaction Type :                                         User Name : SA1
               Date Range :              -

               Table Name : AP_BANK_ACCOUNTS_ALL
                Record ID : 22401
      Audit           Audit         Audit User   BANK_ACCOUNT_
      Timestamp       Transaction   Name         NUM
                      Type
      --------------------------------------------------------------------------------------------------------------
      07-JUN-12 11:22 Update        SA1          088104294001
                Record ID : 38381
      Audit           Audit         Audit User   BANK_ACCOUNT_
      Timestamp       Transaction   Name         NUM
                      Type
      --------------------------------------------------------------------------------------------------------------
      12-JUN-12 12:18 Update        SA1          200001788164
      12-JUN-12 12:17 Update        SA1          200001788164
      12-JUN-12 12:01 Update        SA1          200001788164
      12-JUN-12 12:01 Update        SA1          200001788164
      12-JUN-12 12:00 Update        SA1          200001788163
                Record ID : 38546
      Audit           Audit         Audit User   BANK_ACCOUNT_
      Timestamp       Transaction   Name         NUM
                      Type
      --------------------------------------------------------------------------------------------------------------
      12-JUN-12 18:32 Update        SA1          00001230001
      12-JUN-12 18:32 Update        SA1          00001230001
      12-JUN-12 18:32 Insert        SA1          00001230001

Check changes on all the columns on this table, AP_BANK_ACCOUNTS_ALL.

Navigation: View > Requests > Single Request

Run the program named, Audit Report.

Enter the parameters as,

Table Name: AP_BANK_ACCOUNTS_ALL

Initialization: Yes

Click on OK and submit the request.

Once the request completes, click on View Output button. The report looks like the following,

In text the report is like this,

                                  Audit Report

                                                Report Date: 11-09-2012  14:43

  Report Parameters

             Table Name:  AP_BANK_ACCOUNTS_ALL

             Table Type:  Non-datetracked

                   User:  SA1

             Start Date:  (s7B01-JAN-01(s0B

               End Date:  (s7B31-DEC-12(s0B

                                  Audit Report

    Table Name: AP_BANK_ACCOUNTS_ALL            Report Date: 11-09-2012  14:43

   Primary Key: BANK_ACCOUNT_ID                        Page: 1

  ----------------------------------------------------------------------------

   Audit Timestamp: 07-06-2012  11:22    Primary Key Value: 22401

  Audit Session Id: 60917890              Transaction Type: Normal Update

         User Name: SA1

   Column Name      Old Value                New Value

   -----------      ---------                ---------

   Last Update Date 16-02-2011               07-06-2012

   Last Updated By  1176                     12691

   Last Update      13824409                 20301599

   Login

  ----------------------------------------------------------------------------

   Audit Timestamp: 12-06-2012  12:00    Primary Key Value: 38381

  Audit Session Id: 61030554              Transaction Type: Normal Update

         User Name: SA1

   Column Name      Old Value                New Value

   -----------      ---------                ---------

   Last Update Date 14-02-2012               12-06-2012

   Inactive Date    14-02-2012

   Last Updated By  1962                     12691

   Last Update      19099472                 20365176

   Login

  ----------------------------------------------------------------------------

   Audit Timestamp: 12-06-2012  12:01    Primary Key Value: 38381

  Audit Session Id: 61030573              Transaction Type: Normal Update

         User Name: SA1

   Column Name      Old Value                New Value

   -----------      ---------                ---------

   Bank Account Num 200001788163             200001788164

   Last Update Date 12-06-2012               12-06-2012

  ----------------------------------------------------------------------------

   Audit Timestamp: 12-06-2012  12:01    Primary Key Value: 38381

  Audit Session Id: 61030573              Transaction Type: Normal Update

         User Name: SA1

   Column Name      Old Value                New Value

   -----------      ---------                ---------

   Last Update Date 12-06-2012               12-06-2012

   Inactive Date    12-06-2012

  ----------------------------------------------------------------------------

   Audit Timestamp: 12-06-2012  12:17    Primary Key Value: 38381

  Audit Session Id: 61030873              Transaction Type: Normal Update

         User Name: SA1

   Column Name      Old Value                New Value

   -----------      ---------                ---------

   Last Update Date 12-06-2012               12-06-2012

   Inactive Date    12-06-2012

                                  Audit Report

    Table Name: AP_BANK_ACCOUNTS_ALL            Report Date: 11-09-2012  14:43

   Primary Key: BANK_ACCOUNT_ID                        Page: 2

  ----------------------------------------------------------------------------

   Audit Timestamp: 12-06-2012  12:18    Primary Key Value: 38381

  Audit Session Id: 61008913              Transaction Type: Normal Update

         User Name: SA1

   Column Name      Old Value                New Value

   -----------      ---------                ---------

   Last Update Date 12-06-2012               12-06-2012

   Inactive Date    12-06-2012

  ----------------------------------------------------------------------------

   Audit Timestamp: 12-06-2012  18:32    Primary Key Value: 38546

  Audit Session Id: 61037197              Transaction Type: Normal Insert

         User Name: SA1

   Column Name                               New Value

   -----------                               ---------

   Created By                                12691

   Bank Account                              Test

   Name

   Bank Account Num                          00001230001

   Currency Code                             INR

   Multi Currency                            Y

   Flag

   Last Update Date                          12-06-2012

   Creation Date                             12-06-2012

   Last Updated By                           12691

   Last Update                               20366178

   Login

   Bank Branch Id                            762018

   Set Of Books Id                           1004

   Zero Amounts                              N

   Allowed

   Account Type                              INTERNAL

   Org Id                                    360

  ----------------------------------------------------------------------------

   Audit Timestamp: 12-06-2012  18:32    Primary Key Value: 38546

  Audit Session Id: 61037197              Transaction Type: Normal Update

         User Name: SA1

   Column Name      Old Value                New Value

   -----------      ---------                ---------

   Last Update Date 12-06-2012               12-06-2012

   Inactive Date    12-06-2012

  ----------------------------------------------------------------------------

   Audit Timestamp: 12-06-2012  18:32    Primary Key Value: 38546

  Audit Session Id: 61035117              Transaction Type: Normal Update

         User Name: SA1

   Column Name      Old Value                New Value

   -----------      ---------                ---------

   Last Update Date 12-06-2012               12-06-2012

   Inactive Date    12-06-2012

                                  Audit Report

    Table Name: AP_BANK_ACCOUNTS_ALL            Report Date: 11-09-2012  14:43

   Primary Key: BANK_ACCOUNT_ID                        Page: 3

                           ***** End Of Report *****

This report also gives us the audit data in a different format. Using these seeded audit reports all changes can be tracked and monitored by administrators. For specific requirements alerts for alerting administrators for certain changes or custom reports (AP_BANK_ACCOUNTS_ALL_A table) can be built to analyze the data.

Cheers!



Accounting Flexfield setup

$
0
0

In this article we shall discuss how the accounting flexfield is setup

Responsibility: General Ledger

Navigation: Setup > Financials > Flexfields > Key > Segments

Query for,

Application: General Ledger

Flexfield Title: Accounting Flexfield

Code: HTM_ACC_FLEX (This is an accounting flexfield structure that has already been defined in the system)

Click on Segments

All the segments for the Accounting Flexfield is shown. We shall now check the Flexfield Qualifiers.

While Company segment is selected click on the Flexfield Qualifiers button

As you can see, Balancing Segment, qualifier has been checked for segment, Company.

Now let us check Cost Center segment

We see that the segment Cost Center has the qualifier, Cost Center Segment.

Now we shall check the segment named, Account.

We find that the segment Account is set as the Natural Account Segment.

To setup the Accounting Flexfield we must have these 3 qualifiers set.

The list of qualifiers is given below

Name Description
Cost Center Segment This attribute is used to identify the cost center segment.
Natural Account Segment This attribute is used to identify the natural account segment.
Balancing Segment This attribute is used to identify the balancing segment. This is typically the company segment.
Intercompany Segment This attribute is used to identify the intercompany segment
Secondary Tracking Segment This attribute is used to identify the secondary tracking segment to process income statement closing, translation and revaluation

Cheers!


Execute a SQL script from a HOST concurrent program

$
0
0

The following script portion is an example of calling a SQL script from a shell script.

...
...
...
BANK_ACCOUNT=`echo $DATAFILE_NAME|cut -c 3-30 | cut -d "_" -f1`
echo "Bank account: $BANK_ACCOUNT"

# Execute the SQL
BANK_ACCOUNT_ID=`sqlplus -s $ORA_USER_PSSWD <<ENDOFSQL
					set heading off
					set feedback off
					select aba.bank_account_id
					from ap_bank_accounts_all aba
					where aba.bank_account_num = '$BANK_ACCOUNT'
					and (inactive_date IS NULL or inactive_date > SYSDATE)
					and rownum =1;
EXIT
ENDOFSQL`
...
...
...

Cheers!


Cross Validation Rule (CVR) setup

$
0
0

In this article I shall discuss how Cross Validation Rules are setup. These rules prevent end users from using certain accounting flexfield combinations that have been restricted by the administrators.

Responsibility: General Ledger SuperUser

Navigation: Setup > Financials > Flexfields > Key > Rules

Query the form

The cross validation rules are set here for the accounting flexfield structure, EY_ACC_FLEX. Therefore the rules regarding which combinations can be used or not will affect all set of books and the responsibilities attached to this set of books.

Cheers!


Open or Close Periods in Oracle Apps

$
0
0

In this article I have talked about opening and closing periods in various modules .

General Ledger module

Responsibility: General Ledger

Navigation: Setup > Open/Close

Payables module

Responsibility: Payables SuperUser

Navigation: Accounting > Control Payables Periods


Receivables module

Responsibility: Receiving SuperUser

Navigation: Control > Accounting > Open/Close Periods


Assets module

Responsibility: Asset SuperUser

Navigation: Asset System > Book Controls

On this form the current FA period is shown. In FA the period cannot be opened from a form as in the other modules. The assets have to be depreciated and the period has to be closed from the Depreciation form so that Oracle automatically opens the next period.

Depreciation form

Navigation: Depreciation > Run Depreciation

You can find out about Depreciation in detail in this article.


Inventory module

Responsibility: Inventory SuperUser

Navigation: Accounting Close Cycle > Inventory Accounting Periods

You need to select the Inventory Organization and open the periods individually for each org.


Purchasing module

Responsibility: Purchasing SuperUser

Navigation: Setup > Financials > Accounting > Control Purchasing Periods

Cheers!


Invoke the calendar for entering dates on a custom form

$
0
0

For data block items which have a data type as DATE it is better to restrict the user’s entry so that there is no chance of wrong data type entry and hence no chance of an error. If we connect the Oracle provided CALENDAR block to the item the users will find this to be very user friendly as well.

To add the Calendar, identify the DATE item on the datablock.

We have identified the field, DATE_BLKLIST, to invoke the calendar. Let us check the properties of the item. Double click on the item to show the properties.

Check the data properties. Notice that there is no Format Mask set. I prefer to set this format mask so that the date format appears as per my choice. I will set it to DD-MON-YYYY.

Close the properties screen.

We want the Calendar to be displayed to the user when the user clicks on this field, i.e. DATE_BLKLIST. Now add a trigger, WHEN-MOUSE-CLICK, on this item.

Add the following code in the trigger,

Calendar.show

The item will look like this,

Make other changes on the form as per your requirement. Save the form and compile it on the server.


Test the changes

Open the form in Oracle Apps.

Create a new record

Click on the field, Date Blklist.

The calendar is now displayed. Select a date on the calendar and press OK button.

Notice that the date format is set to DD-MON-YYYY, i.e. as per the format mask set. Now save the record.

Check the record in the database with the following query

SELECT *
  FROM xx_supplier_blacklist
 WHERE blacklist_id = 100

 

The date in the database is as per the database format defined in init.ora.

Cheers!


Oracle iExpenses flow

$
0
0

In this article we shall discuss the flow of an Oracle expense report. The flow comprises of the following parts.

  1. End user creates an expense report and submits it for approval.
  2. The expense report is approved by a manager
  3. Once the expense report is approved the report is imported into Payables as an invoice

I have turned off personalization from my Oracle instance so that the standard features of Oracle iExpenses are available. Because of this reason a warning message is shown on all the screens saying that Personalization is disabled.

Step 1: Login to Oracle

Go to iExpenses responsibility

Click on Expenses Home to the Expense Home page.

You will see the iExpense home page. This page contains the list of

  • The submitted expense reports on the top section of the page
  • The saved and withdrawn home page in the middle section
  • The notifications at the bottom section

From the home page it is possible to withdraw and delete expense reports as well.

  
Step 2a: Create Expense Report manually

Click on the Create Expense Report button on iExpense home page

Select the appropriate Approver who has to approve the expense report.. Click on Next button.

Important:
The approver needs to have Signing Limit (approval limit) for expense reports, for the

Cost center

Operating Unit

You can check the signing limit by logging into Payables SuperUser responsibility.

Navigation: Employee > Signing Limits

Query for the Approver name and the cost center


You can check the table AP_WEB_SIGNING_LIMITS_ALL table for the signing limits as well.

If the manager does not have appropriate signing limit for the cost center and the operating unit, the expense report will go to his manager for approval. The expense report will keep on going up the supervisor hierarchy until the expense report is approved by someone who has appropriate signing limits or until it has reached the top of the hierarchy. When it reaches the top of the hierarchy without an approval the expense report is automatically returned to the employee who has raised the expense report with a message “No Approver Found”.

   
Step 2b: Import the Expense Report

Oracle iExpense home page

Click on Export Spreadsheet button on the top right region.

On clicking the button Oracle will ask whether you want to save or open the spreadsheet like the following

Click on Save. Once the file is saved, open the file.

Enter the expense report details into the spreadsheet.

Note:
The key fields like Expense Cost Center, Expense Template, etc. should match the values as set up in Oracle.

Once the values are filled in the spreadsheet, it will look like this

After you have filled out the expenses in the spreadsheet go back to the Oracle iExpense home page.

Click on Import Spreadsheet button.

The Import Spreadsheet page opens. Now follow the steps

  1. Clicking on Ctrl+A to select all the contents
  2. Clicking on Ctrl+C to copy the selected contents
  3. Click Ctrl+V to paste the spreadsheet contents into the field, Spreadsheet Import Area, on the OAF form.

Click on Continue

You are now taken to the Create Expense report page. As you can see the Purpose field is already populated with the value from the spreadsheet. Click on Next.

On the Expense report lines page the line has also been populated through the spreadsheet.

Important:
This method is useful when the user wants to enter an expense report that has a lot of lines, e.g. more than 20 lines. Then it saves a lot of time for the user as entering more than 20 lines in Oracle takes more time than entering the lines in a spreadsheet and importing those into Oracle.

   
Step 3a: Enter expense lines for Cash expenses

You will be taken to the expense line entry page

Enter an expense line as shown below

Click on the Details () button for this line.

Now the expense line details page opens. Enter an Expense Location.

We entered a location named, Abu Dhabi. This field is mandatory. The reason for this field being mandatory is because Policy has been defined for Expense Type: Dinner. Click on return to come back to the Expense lines page.

Note:
You can find out about setting up policy in this article.

You can now see that the column Reimbursable Amount has been populated. Click on Next to go to the Expense Allocations page..

   
Step 3b: Enter expense lines for Corporate Credit Card expenses

For corporate credit card transactions you cannot manually enter the transactions. Instead, these lines are automatically entered via the Credit Card interface. The user has to select the transactions and submit the lines as part of the expense report.

The Credit card expense lines will look like the following,

Select the link and click on Next

Enter a justification as shown

Click on Details to review the expense line details

Click on Return and you will go back to the Credit Card expenses page. Click on Next to go to the Expense Allocations page.

   
Step 4: Allocate and submit the expense report

After the cash and credit card expense lines are filled out, you will be taken to the Expense Allocations page. We shall continue with the example of the Cash expense as we filled out in Step 3a.

The charge account can be set over here. The default values of the charge account can be modified on this page. Click on Next once you are done.

This is the last page of creating the expense report. Review the entire expense report finally before submitting it. You can attach any document you want to by clicking on Add button.

We can attach text, URL or files. We shall attach a piece of text.

Once we are done click on Apply.

You are now taken back to the Review page.Once you are done reviewing the expense report, click on Submit button to submit the expense report.

Once the expense report is submitted a message is displayed on the top of the page with the expense report number. The expense report number generated is EY48653.

   
Step 5: Approve the expense report

Now the expense report has been submitted we have to wait for the report to be approved. On submission the expense report goes to the Approver selected on the first page of Create Expense Report. In our case the expense report will be waiting on Praveen Talekana Seetharama Rai for approval.

Let us now check the workflow. Login to Workflow Administrator and go to Status Monitor.

Search for Workflow Type: Expenses and User Key: EY48653 (the expense report number)

Press Go

You will find the workflow. Click on Activity History to check the activity list. Scroll down on the Activity History page.

You can see that the workflow is pending on the same approver. Open the notification by clicking on button.

Click on Approve to approve the report. Refresh and check the Activity History again.

The workflow shows that it has gone to the auditor now.

  
Step 6: Audit the expense report

Login to Oracle as the iExpense auditor and go to the iExpense auditor responsibility.

Note:
During the audit process we shall complete the audit assuming the auditor does not have any queries and the auditor completes the audit without any questions.

Search by the expense report number (EY48653).

Click on Go

Enter a date for Receipt Page Received Date. This is the date on which the iExpense auditor received the receipts for the expenses.

Scroll down on the page

Check the box called Receipt Verified.

Set the value of Expense Report Action to Complete Audit.

Click on Apply.

Once audit is complete the completion message is displayed on the auditor page.

    
Step 7: Import the expense report into Payables

Once the auditor completes audit the expense report approval is completed. If you check the expenses workflow you will find that the workflow has completed.

Now log in to Payables SuperUser or its equivalent responsibility.

On the menu click on View > Requests and select the option to execute a concurrent program.

Execute the seeded program named, Expense Report Import.

Enter the parameters. You can give any value in Batch Name as long as this value has not been used as Batch Name in a previous run of this program.

Once the parameters are entered press OK.

Press Submit to execute the concurrent program.

When the program completes check the output.

Note that the expense report has been imported into Payables. The report in text format,

ETIHAD SET OF BOOKS                                Expense Report Import Report             18-SEP-12 15:30           Page:    1
Source: Self-Service Applications

                                                Audit Report

                               Supplier             Supplier     Invoice        Invoice   Invoice         Invoice
Name                 Number    Name                 Number       Number         Date      Currency         Amount Description    Hold
-------------------- --------- -------------------- ------------ -------------- --------- -------- -------------- -------------- -------
Gunatilake, Herath M 11854     Herath Mudiyanselage 2548         EY48653        01-SEP-12 AED              120.00

Total Invoices Created: 1

Total Functional Currency Invoice Amount:              120.00

ETIHAD SET OF BOOKS                                Expense Report Import Report             18-SEP-12 15:30           Page:    2
Source: Self-Service Applications

                                              Exceptions Report

                               Supplier             Supplier     Invoice        Invoice   Invoice         Invoice
Name                 Number    Name                 Number       Number         Date      Currency         Amount Rejection Reason
-------------------- --------- -------------------- ------------ -------------- --------- -------- -------------- ------------------------
Aston, Joseph Matthe 21096     Joseph Matthew Aston 24838        EY34221        12-APR-11 USD               22.48 Inactive Supplier
Aston, Joseph Matthe 21096     Joseph Matthew Aston 24838        EY34814        23-MAY-11 USD            2,464.59 Inactive Supplier
Aston, Joseph Matthe 21096     Joseph Matthew Aston 24838        EY37705        24-JUN-11 USD            1,788.54 Inactive Supplier
Aston, Joseph Matthe 21096     Joseph Matthew Aston 24838        EY37828        15-JUL-11 USD               70.87 Inactive Supplier
Rajan, Thara         11221     Thara Rajan          2283         11221DT0403126 01-MAR-12 AED            3,040.00 Inactive Supplier

Total Expense Reports Rejected: 5

Total Functional Currency Invoice Amount:           19,004.63

   
Step 8: Check the Payables Invoice

In a Payables responsibility in which you can view invoices navigate to the following,

Navigation: Invoices > Entry > Invoices

Query for the invoice numbered, EY48653.

You can now view the expense report which has been imported into Payables as an Invoice.

Points to note:

  1. The Payables invoice number and the expense report numbers are the same
  2. Supplier Name is the name of the employee as the employee is set up as a supplier in Payables.
  3. Description of the Payables invoice that has been imported from iExpenses is Expense Report.
  4. Document Category Name for this invoice is Expense Report Invoices.
  5. Invoice distribution account will be the same as the expense report distribution account
  6. Invoice line Description will be the same as the expense report Expense Type.

Now the invoice will be paid off in the regular payment process. To understand the payment process you can this article.

Cheers!


Setting up Realms for iProcurement

$
0
0

Realms allows us to restrict access to iProcurement categories we have set up before by responsibility or user.

Responsibility: Purchasing SuperUser

Navigation: Setup > E-catalog Admin > Realms

Enter Realms on the form as shown below.

The iProcurement categories are attached to the Realm as components. We have a choice of attaching Item Sources or Categories as Component Type. The Component Type LOV is given below.

Now the realms are all setup. We shall now assign the realm to the responsibility and/or user. First let us assign the realm to a responsibility. Open the responsibility form.

Responsibility: System Administrator

Navigation: Security > Responsibility > Define

Query for the responsibility named, EY i-Procurement Business Systems Support and Enhancements – 716. We shall set the realm for the responsibility.

Click on Securring Attributes tab.

Enter the Securring Attribute name, ICX_POR_REALM_ID.

Click on Values button.

The Attribute Values window opens. Now click on the Values LOV and search for the realm you have created earlier, i.e. Special Event – Sales.

Select the realm.

Note that the realm id is shown on the form. This ID was generated on the Realm definition form before. Save the form to set the realm for this responsibility.

Realm can be set on the user level as well. Open the Users form.

Responsibility: System Administrator

Navigation: Security > User > Define

Query for user SA1.

Click on Securring Attributes tab.

Enter a new securing attribute, ICX_POR_REALM_ID.

Enter the realm value 247 (the realm id of the realm we have created earlier)

Save the form. Now the realm is set on the user level as well.

Now if you login to any iProcurement responsibility using this user you will be restricted to the iProcurement categories under the realm, Special Event – Sales, even though you might not be using the previously defined responsibility, EY i-Procurement Business Systems Support and Enhancements – 716. If you go to this responsibility you will again be restricted to the realm, Special Event – Sales, even though you may be logged into Oracle with a different user.

You can check this article for more information on realms.

Cheers!



Transaction to Receipt flow in Oracle Receivables

$
0
0

The Transaction to Receipt flow in Receivables is as follows

  1. Import/Create/Credit transactions in Receivables
  2. Correct transactions if required
  3. Print Transaction OR Create/Print Consolidated Bill
  4. Research Customer account
  5. Call customer to collect the amount
  6. Import/Create receipts
  7. Apply receipts
  8. Transfer to General Ledger

Step 1: Create/Import/Credit transactions in Receivables

Responsibility: Receivables SuperUser

Import Transactions:

AutoInvoice reduces cycle time by automating the transaction creation process. Using the AutoInvoice program, Oracle Receivables lets you import and validate transaction data from other financial systems from which you can create invoices, debit memos, credit memos, and on-account credits.  It allows you to define how you want to group imported transactions into invoices and how to order the invoice lines.

To import transactions into Receivables we need to execute the AutoInvoice Master Program

Go to View > Requests and submit a new request

We have discussed on this interface in detail in following articles, AutoInvoice setup and Invoice interface (Coming later).

Create transactions:

Use the Transaction window to enter your invoices, debit memos, credit memos, and commitments. You can also query and update your transactions in this window and review your transactions and chargebacks in the Transactions Summary window.

We shall create a manual transaction, i.e. Invoice, for a customer.

Navigation: Transactions > Transactions

Enter the invoice details.

Click on Line Items button

Enter the line item(s) for the invoice

Click on Distributions button if you want to set different account other than the receivable and revenue accounts set for the Transaction Source, GSACGOINV, i.e. the source of this invoice displayed on the invoice.

You can see that the Revenue account is taken from the setup by default. You can change this if you want. Close this window to go back to the Invoice Lines form.

Note:
The Revenue and Receivables accounts are set on the Invoice transaction type. The invoice transaction type for this invoice is GSACGOINV.

Navigate: Setup > Transactions > Transaction Types

Query for Name = GSACGOINV


You can see that the Receivable and Revenue accounts are set here.

Click on Sales Credits button on the Invoice Lines window.

In this window we can enter the Salesperson who had made the sale and enter his/her commission that he/she is supposed to get. We do not have any Salesperson setup. We shall close this window and Invoice Lines window to go back to the Invoice window. Save the form.

Once the invoice is saved, the invoice number is generated (1110508057) and the button named, Complete, on the right hand bottom corner is enabled. Press this button to complete the invoice. This will mean that we cannot make changes to the invoice.

On pressing the Complete button the following take place,

  1. All fields are disabled
  2. Details and Refresh buttons are enabled.

  3. Complete checkbox is automatically checked

  4. The invoice preview button becomes visible.

Note the Invoice number, 1110508057.

Click on the Invoice preview button () on the Transaction form

You will get to the see a preview of the invoice in OAF page format. You can close this page after reviewing the details.

Credit Transactions:

Use the Credit Transactions window to enter, update, and review credit memos against specific invoices, debit memos, or commitments. You create credit memos to reduce the balance due for a transaction. When you credit a transaction, Receivables creates the appropriate accounting entries and reverses any sales credit assigned to your salespeople. Receivables lets you credit an entire invoice or specific invoice lines. You can also credit freight for an entire invoice or only for specific invoice lines.


Step 2: Correct transactions (If transactions are imported)

To simplify the AutoInvoice process, Oracle Receivables provides two windows you can use to view and update records in the AutoInvoice interface tables. The Interface Lines window displays all records in the interface tables that failed validation after AutoInvoice submission. The AutoInvoice Errors window displays any errors associated with each record. These windows help you to quickly review and correct invalid records in the interface tables, without programming.

Navigation: Control > AutoInvoice > Interface Lines

Query this form

You can view the records in the interface table and the errors, if any, for these lines.

Check the exceptions on the interface lines

Navigation: Control > AutoInvoice > Interface Exceptions

Query this record

You can view all the interface records that have met with an exception and are lying in the interface table. Click on Details button.

The Interface Lines form opens and the interface line for that exception is displayed. You can correct the interface line data on this form. Once the interface lines are corrected you can again run AutoInvoice Master Program to import the interface lines.


Step 3: Print Transaction OR Create/Print Consolidated Bill

Print Transaction

Use the Print Invoices window to submit your invoices, debit memos, chargebacks, deposits, guarantees, invoices against deposits, invoices against guarantees, credit memos, on-account credits, and adjustments for printing. You can print a batch of invoices, new invoices, selected invoices, and adjustments.
You also have the option of previewing your transactions prior to printing with the Invoice Print Preview Report.

Now we shall print the invoice to send the document to the customer.

Navigation: Print Documents > Invoices

Click OK

Check the list of values for Request Name field

Out of all the invoice reports we shall select Invoice Print Preview Report report. This report will show us the output so that we can review the invoices before we send the actual invoice to the customer.

Press OK

Submit this request. Two requests are executed,

  1. Invoice Print Preview Report (Multiple Languages)
  2. Invoice Print Preview Report

After the requests complete check the output of the 2nd request, i.e. Invoice Print Preview Report.

After previewing the invoice you can run the actual invoice report to send to the customer.

Navigation: Print Documents > Invoices

As we had executed the Preview report before we shall execute the report, Invoice Print New Invoices.

Press OK and submit the request. This request also executes 2 concurrent programs,

  1. Invoice Print New Invoices (Multiple Languages)
  2. Invoice Print New Invoices

Once both the requests complete, check the output of the 2nd request, i.e. Invoice Print New Invoices.

Now the invoice has been printed in Oracle. Here we have used the standard Oracle report for printing the invoice. Normally each organization has its own invoice format and hence almost all organizations have their own custom invoice report. Instead of executing the standard report the organizations execute their own custom invoice report.

Create/Print Consolidated Bill

For customers that prefer a monthly billing, Oracle Receivables enables you to issue Consolidated Bills rather than individual invoices for each transaction. When printing consolidated bills, Oracle Receivables gives you the option of printing new (final) consolidated bills, printing drafts which can be accepted or rejected, or reprinting draft or final consolidated bills.

Navigation: Print Documents > Consolidated Billing Invoices

Click OK

Check the available reports in the Name field.

The customer for which we have created the invoice does not ask for Consolidated Billing and hence this report will not be executed.


Step 5: Research Customer account

Receivables lets you view customer account information in a variety of ways. You can view the total amount overdue for a customer or customers in the Account Summary window. You can view all transactions that are past due for a specific customer in the Account Details window.

Navigation: Collections > Customer Accounts

Enter the customer name for whom we have raised the invoice. The customer name is Abu Dhabi Cargo Company.

Press Find button

The Customer Accounts form opens and the customer is displayed. We can get details about the customer, the open invoices, when the last statement was generated, when dunning letters have been generated, etc.

From the Customer Accounts form:

  1. Click on Customer button to view the customer details

  1. Click on Correspondence button to view the recorded correspondence between the customer and this organization.

This form displays information on when the customer was called, the customer response (shown above), details of Statements as shown below.

Dunning Letter details

  1. Click on Call button to record any call made to the customer

From this form Actions to be taken are recorded. Click on Actions button.

Close this window and click on Topics button.

The call topics are displayed. All details about the customer and transactions, disputes, actions can be viewed from this form.

  1. Click on Aging button to view the invoice aging for this customer

Click on Account details button will bring up the invoices for each aging bucket.

  1. Click on Credit Hold button to put a hold on this customer

You can also release hold on this customer by pressing the button once again

  1. Click on Account Overview button gives the overview of the customer transactions over all the periods

  1. Click on Account Details button gives us the details of all the outstanding transactions for this customer.

Once you are done with researching on the customer account you can save and close the Customer Accounts form.


Step 6: Call customer to collect the amount

When a customer’s account or payment for a specific transaction is past due, you can contact the customer by phone and use the Customer Calls window to record the results of your conversation. By speaking with a customer you may learn that they were incorrectly billed, never received the goods or services that were ordered, or have already sent payment for the invoice in question. By entering details about your conversation, you create a record of the contact and can recommend any further collection action.

Navigation: Collections > Customer Calls

If the organization thinks that this customer has to be contact for making the payment then the customer is contacted and all details of this communication is recorded on this form.

We have entered the call details as shown below

We shall enter the customer response as well in the Response tab.

Save the form. Once the details are saved the buttons are enabled on the form.

You can use these buttons to review the customer and transaction details as you have seen in the previous step.


Step 7: Import/Create receipts

Use the Receipts window to enter new or query existing receipts. For each receipt, you can see whether the receipt is identified and what portion of the receipt has been applied, placed on-account, and left unapplied. You can enter Cash receipts that you receive from your customers for goods or services, and Miscellaneous transactions involving revenue earned from investments, interest, refunds, and stock sales.
With Cross Currency Receipts, you can apply cash in one currency against invoices in a different currency. The foreign exchange gain or loss is calculated for you automatically.
You can apply receipts to invoices, debit memos, deposits, guarantees, on-account credits, and chargebacks. You can partially or fully apply a receipt to a single debit item or to several debit items. You can enter receipts and apply them to transactions in either Open or Future accounting periods. You can also create chargebacks or adjustments against these transactions.

When the customer makes a payment a receipt is created. Navigation: Receipts > Receipts

Enter the receipt details.

In the previous step, the caller had noted in the Response section that the customer had agreed to pay AED 5000 on 02-Oct-2012. We shall enter the receipt with these details as the customer has made the payment.

Save the form. On saving the Reverse button gets enabled. This button will be used for reversing the receipt if the receipt had been created by mistake.


Step 8: Apply receipts

Now the receipt has been created for the customer we need to apply this receipt on the invoices and debit memos for this customer.

On the Receipt form note the Balances section.

The receipt has been created but not applied and therefore the unapplied amount for this receipt is 5000.

Click on Apply button on the bottom right of the form.

The Applications form opens. Click on Apply To field and check the list of open invoices and debit memos.

We can select any invoice in this list to apply this receipt amount.

Save the form and close this window. Note the Balances section on the Receipts form.

Now the entire receipt amount has been applied on the invoices. Click on Receipt History button.

The receipt history details are displayed.


Step 8: Transfer to General Ledger

At the end of a period the organization normally transfers the subledger transaction details to General Ledger.

Navigation: View > Requests

Submit a new request. Execute the General Ledger Transfer Program as shown below.

Submit this request. The following programs are executed,

  1. General Ledger Transfer Program
  2. Revenue Recognition
  3. Revenue Contingency Analyzer
  4. Journal Import
  5. Update Posting Control

We shall now check the journal that has been created for the receivables transactions. Check the output of the Journal Import program.

The Journal batch created is, AR 1021642 Receivables 19004736: A 1021642.

Go to General Ledger responsibility to view this journal.

Navigation: Journals > Enter

Enter the Batch as AR 1021642 Receivables 19004736: A 1021642.

Click on Find button.

We see that 3 journals have been created in this journal batch. We can review the journals.

Journal: Trade Receipts AED 20-Sep-12

Journal: Trade Receipts AED 27-Sep-12

Journal: Sales Invoices AED 26-Sep-12

We can post the journals after review is complete. You can check the following article on Journal posting to check that process.

Cheers!


Collections process in Oracle Receivables

$
0
0

Regular correspondence is an effective way to create and maintain good relationships with your customers. Receivables provides three ways to correspond with your customers: printing account statements, printing dunning letters, and making customer calls.

Receivables lets you view all previous customer correspondence in the Correspondence window. You can view all previous contact with your customers, including dunning letters, customer calls, and account statements in this window

The process

  1. View Scheduler
    1. Followup and Mark actions
  2. View Customer Account
    1. View Aging
    2. View Activity/Transactions
    3. View Correspondence
    4. View Account Overview
  3. Actions
    1. Send Dunning Letters
    2. Enter Credit Memo
    3. Record Call to Customer
    4. Place Amounts on Dispute

     

Step 1: View scheduler

When you contact a customer to discuss an overdue account or payment for a specific transaction, you enter a specific call action. Call actions indicate whether an issue has been resolved or requires further follow-up activity. You can view items that require further collection activity in the Scheduler window.

Navigation: Collection > Scheduler

Enter Customer name as Abu Dhabi Cargo Company.

Click on Find

The customer calls are displayed.


Step 1a: Followup and mark actions

You can use the Scheduler to review a list of items that require follow-up actions. As you perform required actions, you can mark actions as “complete” to ensure your Scheduler is up-to-date.

On the previous form we need to follow up and mark the follow up actions as complete, once follow up is done.

Save the form


Step 2: View Customer Account

The Customer Account Window provides a summary view of the customer’s account including information such as the customer’s account status, balance, average days late, and DSO. From this starting point you can then drill down to view the account in more detail.

Navigation: Collections > Customer Accounts

Enter Customer name as Abu Dhabi Cargo Company.

Click on Find button

The customer account is displayed. You can drill down on this account as shown in the previous article.


Step 2a: View Aging

Receivables lets you view your customer’s outstanding account balances by aging bucket. Aging buckets are time periods in which you age and can review your debit items. For example, you can define an aging bucket that includes all debit items that are 1 to 30 days past due. You can define your own aging buckets or customize the aging buckets that Receivables provides.

Navigation: Collections > Aging

Enter customer name as Abu Dhabi Cargo Company. The customer number is populated automatically.

Click on Aging field. The list of values open.

We selected the bucket name, Collections.

Click on Find button.

Invoice aging for this customer is displayed.


Step 2b: View Activity/Transactions

In the Account Details window, you can view the transactions that make up a customer’s account. For each transaction you can see details such as the transaction class, due date, original amount, and balance due.

Navigation: Collections > Account Overview

Enter the customer name as Abu Dhabi Cargo Company.

Click on Find button.

The account overview for this customer is displayed

Navigation: Collections > Transaction Overview

Enter Bill To name as Abu Dhabi Cargo Company.

Click on Find button.

You will get to view the open transactions for this customer site.


Step 2c: View correspondence

Regular correspondence is an effective way to create and maintain good relationships with your customers. Receivables provides three ways to correspond with your customers: printing account statements, printing dunning letters, and making customer calls.

Receivables lets you view all previous customer correspondence in the Correspondence window. You can view all previous contact with your customers, including dunning letters, customer calls, and account statements in this window

Navigation: Collections > Correspondence

Enter Customer Name as Abu Dhabi Cargo Company.

Click on Find button.

The customer correspondences are displayed.


Step 2d: View Account Overview

In the Account Overview window, Receivables lets you see an overview of the customer account during a specific period of time. For a particular period you can view the total number and amount of transactions entered, on time and late payments, accrued finance charges, and discounts earned.

Navigation: Collections > Account Overview

Enter Customer Name as Abu Dhabi Cargo Company.

Click on Find button.

The account overview is shown.

This activity enables the user either to end the process or to take an action like send dunning letters, request credit memo, record call to customer, or place amounts on dispute.


Step 3a: Send Dunning Letter

The Dunning Letter Generate program lets you create and send customized letters to your customers with past due transactions. You can control the severity and content of each dunning letter and exclude individual customers from dunning. Oracle Receivables provides ten dunning letter templates that can be easily modified to create your letters. However, you also have the option of defining and creating an unlimited number of your own, custom letters.

Navigation: Print Documents > Dunning Letters


Click on OK button.

Click on the Name list of values.

2 reports can be run from here.

  1. Dunning Letter Generate
  2. Sample Dunning Letter Print

We shall run the Dunning Letter Generate program. Select this program and the parameter form opens.

We shall enter the parameters as shown below

Click OK

Submit this request.

4 requests are executed,

  1. Dunning Letter Print from Dunning Letter Generate
  2. Dunning Letter Generate
  3. Dunning Letter Print from Dunning Letter Generate
  4. Invoice Print Selected Invoices from Dunning


Step 3b: Enter Credit Memo

Use the Credit Transactions window to enter, update, and review credit memos against specific invoices, debit memos, or commitments. You create credit memos to reduce the balance due for a transaction. When you credit a transaction, Receivables creates the appropriate accounting entries and reverses any sales credit assigned to your salespeople. Receivables lets you credit an entire invoice or specific invoice lines. You can also credit freight for an entire invoice or only for specific invoice lines.

Navigation: Transactions > Credit Transactions

Enter the search criteria for the transactions to be credited.

Click on Find button.

The transaction is displayed. We shall apply a 5% credit on this transaction to give the customer a 5% discount.

Enter the % in the Credit Memo section.

The amount is calculated automatically. You will notice that the Balance Due field also gets reduced.

Now click on Credit Balance button. A popup message is shown.

Click on OK.

Click on Complete. The complete box will be checked automatically. Close the form.


Step 3c: Record Call to Customer

When a customer’s account or payment for a specific transaction is past due, you can contact the customer by phone and use the Customer Calls window to record the results of your conversation. By speaking with a customer you may learn that they were incorrectly billed, never received the goods or services that were ordered, or have already sent payment for the invoice in question.

Navigation: Collections > Customer Calls

Enter the name of the customer as Abu Dhabi Cargo Company.

Enter the customer contact name and save the form.

Now we have logged the call made to the customer.


Step 3d: Place amounts on dispute

If your customer disagrees about the outstanding balance for an item, you can mark that item or a specific amount due in ‘dispute’. This can also be done as part of recording a customer call. Note that you have the option of whether or not to include these disputed amounts when calculating finance charges for statements.

In addition, Internet Receivables enables employees and customers to dispute an item using a standard Web browser. Submitting a request initiates the Credit Memo Workflow to route it to the appropriate personnel in your company for approval. If the request is approved, the workflow automatically creates a credit memo for the disputed amount and notifies the customer via email. The workflow also notifies the customer if their request is rejected.

Navigation: Collections > AR Online

This form is an OAF page and opens in the web browser. Enter the customer name, Abu Dhabi Cargo Company.

Click on Search Now button

Click on Review Account.

Click on Review Account

The page does not bring up any data as Bills Receivable is not enabled. If it was enabled all the transactions would have been visible.

Cheers!


Personalize OAF Pages: Add an OAF Page as a new section into an existing OAF Page

$
0
0

We have a requirement to add a region on a seeded OAF page. Within this region we would like to display certain projects data for the logged in user.

The requirement:

Log into Oracle

We would like to add a region under the Favourites section. This region will be generated from another OAF page XML.

We shall personalize the web page to include this OA page. The steps are given below

Step 1: Develop the OA page XML and deploy it

The OA page we have developed for this requirement is named, XxchProjectsDBRN.xml. This file has to be deployed under $JAVA_TOP directory, in its own directory structure. We have created a directory structure, $JAVA_TOP/oracle/apps/fnd/framework/navigate/webui/.

Check the file on the server

$ cd $JAVA_TOP

$ ls –ltr ./xxch/oracle/apps/xxcust/projects/webui/XxchProjectsDBRN.xml

Now we are sure that the XML file exists at this location.

   
Step 2: Go to the Oracle home page

Log in to Oracle and go to the home page

Click on Personalize Page link on the top right hand corner.

  
Step 3: Personalize the page

After clicking on the link Personalize Page opens

Click on Complete View radio button and the page changes

Scroll down

   
Step 4: Add an Item on the OA page

Identify the row named as, Cell Format: (favoritesRightCell).

Click on the Create Item ()button for this row. The Create Item page opens.

Now select the following,

Level: Site

Item Style: Stack Layout

Now enter the following fields,

ID: DBRN

Extends: /xxch/oracle/apps/xxcust/projects/webui/XxchProjectsDBRN

Note:
We are giving the location and the name of the XML file of the OA page as we have seen in Step 1.

Click on Apply and you will come back to the Personalize Page. Scroll down the page. Look at the Personalization Structure section.

Expand the row for favouritesRightCell

Now a new section has been added into this cell, named DBRN. Now scroll down to the bottom of the page.

Click on Return to Application link and you will be taken back to the Oracle home page.

  
Step 5: Review the personalization

Once you are back to the home page, i.e. the page which you have personalized, the personalization will kick into effect. Therefore we can view the personalization we have done.

Once we come back to the home page we see the following

We do not see the new section underneath the Favourites links. This is because the new OA page is user specific and it will only be visible if it has any records to display for this user.

Since the OA page that we included on the Oracle home page is user dependent, let us login to Oracle as a different user.

After logging in as a different user we get to see the OA page we have included.

Using this method we can add an XML file pertaining to an OA page.

Cheers!


Mass Additions process in Fixed Assets

$
0
0

Assets can be created automatically Mass Additions in Oracle Assets from either external sources, Project Accounting (PA), Accounts Payable (AP) i.e. indirectly from Purchasing (PO). Oracle has provided a program named Mass Additions to add assets. The entire process is demonstrated below.

Step 1: Create a Purchase Order

Responsibility: Purchasing responsibility

Navigation: Purchase Orders > Purchase Orders

Create a new PO

Check Org value in PO Shipments

The Organization where we shall receive the goods is NSS.

Check PO Charge Account in PO Distributions

The account, 1737, in the code combination of 11.100.716.1737.0000.000 is set up as an asset account in Oracle.

Note:
You can go the following article to check the type of account. You will find that the account type is Asset.

On the Purchase Order form click on Approve button.

Press OK to send the PO for approval.


Step 2: Receive the goods

Once the PO has been approved we need to receive the goods, i.e. create a Goods Received Note
(GRN).

Responsibility: Purchasing responsibility with receiving functionality

Navigation: Receiving > Receipts

Change organization to NSS and click on OK. The Receipts form opens. Enter the PO value as 412001481.

Click on Find and go to the Receipt lines. Receive all the goods.

Save and close the form.


Step 3: Raise the payables invoice

Now we shall raise a Payables Invoice to pay for the goods we have received.

Responsibility: Payables responsibility

Navigation: Invoices > Entry > Invoices

Enter a new invoice header for the PO.

Click on Match button to match the invoice to the goods received for the PO. Enter the PO number on the form.

Click on Find button and check the box named Match

Click on Match button. Now the PO lines will come into the Invoice distributions. You will be taken back to the Invoice form.

On the invoice form click on Distributions button

Click on Folder > Show Field on the menu

The list of fields will open. Search for the field named, Track as Asset.

Select this field

You will see the field added and you will also see that this field is checked. This is because the account combination has account 1737, which is set up as an asset account in this Oracle instance.

Close Distributions screen and go back to the Invoice form. Click on “Actions… 1” button. You need to select Validate and Force Approval boxes.

Click OK button.

Once the Invoice Status shows Validated and Approval Status shows Manually Approved click on the “Actions… 1” button again.

Click on Create Accounting and click OK. Close the Invoice form.


Step 4: Transfer the accounting details to General Ledger

You need to transfer the accounting to General Ledger.

Responsibility: Payables responsibility

Navigation: View > Requests

Submit a new request, Payables Transfer to General Ledger. Enter the parameters as shown below.

Click on OK button.

Click on Submit button.

Once the program completes check the output

The output mentions that 1 accounting entry for the period Oct-12 has been transferred to General Ledger.


Step 5: Run Mass Additions Create program

We shall now create the entry for the asset. The program named, Mass Additions Create, will be executed. This program will create entries for Asset based invoices in FA.

Responsibility: Assets responsibility

Navigation: View > Requests

Execute a new request

Enter the GL Date and Book

Submit the request. Check the request in the Requests form.

Check the log of the request once it completes

+---------------------------------------------------------------------------+
Start of log messages from FND_FILE
+---------------------------------------------------------------------------+
Parameters:
Book Type Code: EY_CORP
Acctg_date: 2012/10/04 00:00:00
Discount to Expense: N
Primary Accounting Method Accrual
AX is NOT used
Request id: 19097366
User id: 12691
Login id: 21922246
Sob id: 1001
COA id: 50268
GL Acc Seg: 4

Default DPIS enabled: 1
Default DPIS Date:
Include Non Rec Tax in Dist:
Inventory Org Id: 104
Updating AID records to N which EIB sends to FA
No of Records Updated : 0

Processing INSERT_FAMA....
Asset Type : 1=CIP
: 2=ASSET
Account: 1707
Asset Type: 2
No of Records Inserted: 0
Account: 1712
Asset Type: 2
No of Records Inserted: 0
Account: 1717
Asset Type: 2
No of Records Inserted: 0
Account: 1722
Asset Type: 2
No of Records Inserted: 0
Account: 1727
Asset Type: 2
No of Records Inserted: 0
Account: 1732
Asset Type: 2
No of Records Inserted: 0
Account: 1737
Asset Type: 2
No of Records Inserted: 1
Account: 1742
Asset Type: 2
No of Records Inserted: 0
Account: 1747
Asset Type: 2
No of Records Inserted: 0
Account: 1752
Asset Type: 2
No of Records Inserted: 0
Account: 1757
Asset Type: 2
No of Records Inserted: 0
Account: 1762
Asset Type: 2
No of Records Inserted: 0
Account: 1767
Asset Type: 2
No of Records Inserted: 0
Account: 1772
Asset Type: 2
No of Records Inserted: 0
Account: 1861
Asset Type: 1
No of Records Inserted: 0
Account: 1862
Asset Type: 1
No of Records Inserted: 0

Total Capitalised Records Inserted: 1
Updating AP Lines brought over to FA to Y
No of Records Updated : 1
Processing INS_EXPENSE....
Total Expensed Records Inserted: 0
Updating AP Lines brought over to FA to Y
No of Records Updated : 0
Updating Posted AP Asset Lines to N
AX not used CIP exist
No of Records Updated : 0
Updating Posted Non-asset AP Lines to N
No of Records Updated : 0
Grand Total of Records Inserted: 1

+---------------------------------------------------------------------------+
End of log messages from FND_FILE
+---------------------------------------------------------------------------+

The log file mentions that 1 record has been inserted into FA. Also if you check the section for Account 1737 you will find that 1 record has been selected. If you remember, the PO and Invoice distributions have account 1737.


Step 6: Review the data created by Mass Additions

We shall check the Mass Addition Lines that have come through Mass Additions Create program. In this step we shall identify whether some lines should be created as assets or whether certain lines should be split into multiple assets or some lines will be merged into a single asset, etc.

Responsibility: Assets responsibility

Navigation: Mass Additions > Prepare Mass Additions

Enter the PO number, 412001481, that we had created in Step 1.

Click on Find button. The Mass Additions Summary form opens.

Click on Open button

Note that value of Queue. It is set to NEW by the Mass Additions Create program by default. Let us add an employee to this line. Click on Assignments button.

Enter an employee name and expense account

Enter a location. Click on Location list of values.

Enter a location

Click on OK and enter the flexfield information as shown below

Click on OK

Now the Mass Addition Line has been assigned to an employee. Close this screen to go back to the Mass Additions form.

Enter a comment

Save the form. The form will close automatically and you will be taken automatically to the Mass Additions Summary form.

Click on Open again.

Note that the Queue has automatically changed to ON HOLD. This value is set automatically by Oracle when a change has been made to a Mass Addition Line that has a Queue value NEW. Change the Queue to POST. This queue is being set so that this line is picked by Mass Additions Post program to create an asset from the line.

Once the queue is changed to POST the field, Category, becomes mandatory. Click on the Category field.

The Category flexfield opens. Fill up the flexfield.

Click on OK and save the form. The form will close automatically.


Step 7: Create the asset

Responsibility: Assets responsibility

Navigation: Mass Additions > Post Mass Additions

Click on the parameters for Mass Additions Post program.

Enter the book name

Click on OK and submit this request set. We do not need to set the parameters for the 2nd program in the request set, Mass Additions Posting Report, as it will be set automatically by Oracle. Once the request set is submitted the form closes automatically.

Go to View > Requests to find the requests

We see that all the requests have completed,

  1. Mass Additions Post
  2. Mass Additions Posting Report

Check the output of Mass Additions Posting Report.

The report shows that the line has been added as an asset. The asset number as per the report is 37566.


Step 8: Review the Mass Addition Line

Check the Mass Addition Line after Mass Addition Post program has completed

Navigation: Mass Additions > Prepare Mass Additions

Search for the PO: 412001481

Note that the Queue has been changed from POST to POSTED. The buttons, Split, Add to Asset and Merge are disabled. Click on Open button.

The Mass Addition Line has now become read only and cannot be altered as the line has been converted to an asset.

Click on Asset Details tab

You can see the asset number (37566) for this line.


Step 9: Review the created asset

Responsibility: Asset responsibility

Navigation: Assets > Asset Workbench

Enter the asset number as per the previous report, 37566.

Click on Find button

You get to see the asset header. Click on Open.

Asset details are displayed. Close this screen to back to the Assets form.

Click on Financial Inquiry button

Now the financial information for this asset is displayed.


Interface

Assets can also be imported from an external system into Oracle Assets. The asset data needs to be loaded into FA_MASS_ADDITIONS table. This is the interface table for Mass additions. Once the data is loaded into this interface table we can execute the Post Mass Additions request set and follow the process as shown above. If you want to get details about the interface table you can check the following URL.

Cheers!


How to run depreciation in Fixed Assets

$
0
0

As a rule asset price decreases as time goes by. The rate of price decrease depends on the type of asset. For instance machinery price decreases at a faster rate because of wear and tear whereas furniture price decreases at a slower rate. The process of price decrease is called depreciation.

At the end of every period the depreciated asset prices need to be entered into Oracle GL. Therefore the depreciation process has to be executed. This process is given below.

Step 1: Check the current period in FA

Navigation:

Query for the corporate book

Note the value of Current Period. It is May-12.


Step 2: Run depreciation

Navigation: Depreciation > Run Depreciation

Click on Book field

The current field is populated automatically.

Note: If you want to run depreciation and review the entries do not check the box named “Close Period”. If this box is checked the existing assets will be depreciated and the period will be closed.

Click on Run

You will get a popup message


Step 3: Check the requests

Navigation: View > Requests

First 2 requests are executed

  1. Generate Accounts
  2. Depreciation Run Request Set (Corporate Book – Open Period) (Report Set)

The 2nd request, Depreciation Run Request Set executes the following requests

  1. Calculate Gains and Losses
  2. Depreciation Run
  3. Journal Entry Reserve Ledger Report

Requests run,

  1. Calculate Gains and Losses
  2. Generate Accounts
  3. Depreciation Run Request Set (Corporate Book – Open Period) (Report Set)
  4. Calculate Gains and Losses
  5. Depreciation Run
  6. Journal Entry Reserve Ledger Report

At the end of the depreciation run the requests will look like the following,

Check the output of the report, Journal Entry Reserve Ledger Report.

The sample output in text format

ETIHAD AIRWAYS Journal Entry Reserve Ledger Report Report Date: 04-OCT-2012 10:09

Currency: AED Period: May-12 Page: 1 of 333

Book: EY_CORP

Company: 11

Expense Account: 5461

Reserve Account: 1881

Cost Asset- Date Placed Deprn Life Depreciation Year-To-Date Depreciation

Centre Description In Service Method Yr.Mo Cost Amount Depreciation Reserve Percent

------ ----------------- ----------- ------- ------- ----------------- ---------------- ---------------- ----------------- -------

711 13778-AIRFRAME OF 09-JUN-2006 STL 20.00 230,731,688.49 524,822.04 2,624,110.20 39,659,208.51 100.00

13779-AIRFRAME OF 15-SEP-2006 STL 20.00 233,745,804.66 511,777.35 2,558,886.75 36,220,168.04 100.00

13780-AIRFRAME OF 27-FEB-2006 STL 20.00 263,788,076.07 934,249.44 4,671,247.20 70,186,448.79 100.00

13781-AIRFRAME OF 29-MAR-2006 STL 20.00 264,598,300.17 937,118.98 4,685,594.90 69,477,744.42 100.00

13782-AIFRAME OF 13-JUL-2006 STL 20.00 231,362,493.47 521,045.09 2,605,225.45 38,511,031.53 100.00

13783-AIRFRAME OF 20-JUN-2006 STL 20.00 265,510,259.85 940,348.59 4,701,742.95 67,151,253.50 100.00

13784-AIRFRAME OF 24-APR-2006 STL 20.00 264,176,145.58 935,623.58 4,678,117.90 68,567,174.62 100.00

13785-AIRFRAME OF 29-JUN-2006 STL 20.00 265,059,625.28 938,752.84 4,693,764.20 66,759,472.49 100.00

13786-MSN 34597 A 29-JAN-2006 STL 20.00 262,242,673.49 928,776.14 4,643,880.70 70,660,779.46 100.00

13787-AIRFRAME OF 24-NOV-2006 STL 20.00 283,723,695.38 1,004,854.68 5,024,273.40 66,570,952.08 100.00

13788-AIRFRAME OF 21-DEC-2006 STL 20.00 236,026,671.60 499,908.42 2,499,542.10 32,805,989.05 100.00

13789-MSN 34598 A 27-FEB-2006 STL 20.00 263,177,066.24 932,085.44 4,660,427.20 70,023,876.42 100.00

13790-MSN 34599- 29-MAR-2006 STL 20.00 263,557,189.42 933,431.71 4,667,158.55 69,204,371.37 100.00

13791-MSN-34600- 20-APR-2006 STL 20.00 264,065,489.31 935,231.94 4,676,159.70 68,661,398.11 100.00

13792-MSN-34601- 16-MAY-2006 STL 20.00 264,483,835.12 936,713.58 4,683,567.90 67,969,477.29 100.00

13793-AIRCRAFT EN 29-JAN-2006 STL 20.00 174,706,826.89 618,753.35 3,093,766.75 47,074,415.53 100.00

13794-AIRCRAFT EN 27-FEB-2006 STL 20.00 175,153,181.15 620,334.18 3,101,670.90 46,603,242.75 100.00

13795-AIRCRAFT EN 29-MAR-2006 STL 20.00 175,153,181.15 620,334.18 3,101,670.90 45,991,406.29 100.00

13796-AIRCRAFT EN 20-APR-2006 STL 20.00 175,930,173.36 623,086.03 3,115,430.15 45,744,757.11 100.00

13797-AIRCRAFT EN 16-MAY-2006 STL 20.00 175,930,173.36 623,086.03 3,115,430.15 45,212,146.59 100.00

13798-AIRCRAFT EN 27-FEB-2006 STL 20.00 33,696,767.75 119,342.72 596,713.60 8,965,744.37 100.00

13799-AIRCRAFT EN 29-MAR-2006 STL 20.00 34,345,194.95 121,639.23 608,196.15 9,018,299.28 100.00

13800-AIRCRAFT EN 24-APR-2006 STL 20.00 34,675,043.00 122,807.44 614,037.20 8,999,935.02 100.00

13801-AIRCRAFT EN 20-JUN-2006 STL 20.00 34,801,164.07 123,254.12 616,270.60 8,801,695.03 100.00

13802-AIRCRAFT EN 29-JUN-2006 STL 20.00 34,801,164.06 123,254.12 616,270.60 8,765,225.32 100.00

13803-AIRCRAFT EN 24-NOV-2006 STL 20.00 40,282,474.48 142,667.10 713,335.50 9,451,597.49 100.00

13804-AIRCRAFT EN 09-JUN-2006 STL 20.00 206,892,455.66 469,959.09 2,349,795.45 35,509,925.58 100.00

13805-AIRCRAFT EN 13-JUL-2006 STL 20.00 207,516,936.46 466,693.79 2,333,468.95 34,491,120.53 100.00

13806-AIRCRAFT EN 15-SEP-2006 STL 20.00 209,541,769.71 458,170.11 2,290,850.55 32,416,116.78 100.00

13807-AIRCRAFT EN 21-DEC-2006 STL 20.00 211,471,982.77 447,235.68 2,236,178.40 29,341,177.15 100.00

…

…

…

…
Currency:  AED                                            Period:  May-12                                   Page:    332  of     333
Book:  EY_CORP
Company:  31
Expense Account:  5676
Reserve Account:  1888

Cost   Asset-            Date Placed Deprn     Life                        Depreciation     Year-To-Date      Depreciation
Centre Description       In Service  Method   Yr.Mo               Cost           Amount     Depreciation           Reserve Percent
------ ----------------- ----------- ------- ------- ----------------- ---------------- ---------------- ----------------- -------
622    23567-Black Berry 26-OCT-2009 TRACK_S     .01          2,395.00             0.00             0.00          2,395.00  100.00
                                                     ----------------- ---------------- ---------------- -----------------
       Cost Centre 622 Totals:                                2,395.00             0.00             0.00          2,395.00

                                                     ----------------- ---------------- ---------------- -----------------
Account 5676/1888 Totals:                                     2,395.00             0.00             0.00          2,395.00

                                                     ----------------- ---------------- ---------------- -----------------
Company 31 Totals:                                        1,704,616.48        26,287.07       135,385.35        966,831.69

Report Totals:                                       22,801,479,171.36   111,318,002.83   557,492,688.66  4,774,929,001.79

                                                                                                            Page:    333  of     333

P = Partial unit retirement
F = Full retirement
T = Transfer out
N = Non-depreciating asset
R = Reclass
B = Bonus Depreciation Amount

+---------------------------------------------------------------------------+
End of log messages from FND_FILE
+---------------------------------------------------------------------------+


Step 4: Check depreciation of assets

Let us take 1 asset from the previous report. Say asset 13778, i.e. the first asset on the report.

Navigation: Assets > Asset Workbench

Enter the asset number and the book name.

Click on Find button

The asset header details are shown. Click on Financial Inquiry button.

You can see the depreciation history of the asset. In this way you can review individual assets.


Step 5: Transfer the depreciation entries to GL

We need to execute the program, “Create Journal Entries

Navigation: Journal Entries > Standard

The SRS form opens and the program name is populated automatically. Enter the book name and the period.

Submit this request

We set that the Journal Import is also executed as we had set the value of parameter, Run Journal Import, to Yes.

Check the output of Create Journal Entries program

Standard Journals Execution Report

Book: EY_CORP

Period: May-12

GL Period: 

Level: N

Import to GL: Y

CJE ID: 231341

 Group ID: 55933

At end of posting routine ---- Depreciation

Group ID: 55934

At end of posting routine ---- Addition

Group ID: 55935

At end of posting routine ---- Adjustment

Group ID: 55936

At end of posting routine ---- Transfer

Group ID: 55937

At end of posting routine ---- Reclass

Group ID: 55938

At end of posting routine ---- Retirement

Group ID: 55939

At end of posting routine ---- CIP Addition

Group ID: 55940

At end of posting routine ---- CIP Adjustment

Group ID: 55941

At end of posting routine ---- CIP Transfer

Group ID: 55942

At end of posting routine ---- CIP Reclassification

Group ID: 55943

At end of posting routine ---- CIP Retirement

Group ID: 55944

At end of posting routine ---- Revaluation

Group ID: 55945

At end of posting routine ---- Depreciation Adjustment

Concurrent Request 19094825 submitted.

Number of successes: 13

Number of failures: 0

Program FAPOST completed successfully

Check the output of Journal Import

In text format

ETIHAD SET OF BOOKS                               Journal Import Execution Report                              Date: 04-OCT-12 10:53

Concurrent Request ID: 19094825                                                                                Page:               1

                                                   Total   Total   Total Total Unbalanced Total Unbalanced Total Flex Total Non-Flex

Journal Entry Source Name       Group Id Status    Lines Batches Headers          Batches          Headers     Errors         Errors

---------------------------- ----------- ------- ------- ------- ------- ---------------- ---------------- ---------- --------------

Assets                             55933 Success     708       1       1                0                0          0              0

                                                 ------- ------- ------- ---------------- ---------------- ---------- --------------

*** TOTALS ***                                       708       1       1                0                0          0              0

=======================================================   Batches Created   ========================================================

                                                                               Total   Total               Total               Total

Warning Batch Name                                               Period Name   Lines Headers    Accounted Debits   Accounted Credits

------- -------------------------------------------------------- ----------- ------- ------- ------------------- -------------------

        Depreciation EY_CORP/231341 Assets 19094825: A 55933     May-12          708       1        111318002.83        111318002.83

=================================================   Unbalanced Journal Entries**   =================================================

Error                                                                            Total

Code  Journal Entry Name                    Batch Name                           Lines Period Name     Total Debits    Total Credits

----- ------------------------------------- ------------------------------------ ----- ----------- ---------------- ----------------

=========================================================   Error Lines   ==========================================================

We see that 1 journal has been created in GL with batch name as “Depreciation EY_CORP/231341 Assets 19094825: A 55933

Step 6: Review the journal in GL

Responsibility: GL responsibility

Navigation: Journals > Enter

Enter the batch name, Depreciation EY_CORP/231341 Assets 19094825: A 55933. (This is the batch name that has been generated by Journal Import program in the previous step)

Click on Find

You can view the journal by clicking on Review Journal

You can review the journal created for depreciation.


Step 5: Rollback depreciation

If you want to make adjustments on the assets then you need to roll back the entries that have been generated for the depreciation run.

Navigation: Journal Entries > Rolback Journal Entries

Clicking on the function automatically brings up the SRS window with the program, “Rollback Journal Entries“.

On the parameter window, enter the book name and the period will be populated automatically. The period will be automatically selected and it will be the last period for which depreciation was run.

Submit the request

When the program ends the depreciation journal has been reversed. Check the log file.

+---------------------------------------------------------------------------+

Assets: Version : 11.5.0

Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.

FAJERB module: Rollback Journal Entries

+---------------------------------------------------------------------------+

Current system time is 04-OCT-2012 11:18:54

+---------------------------------------------------------------------------+

**Starts**04-OCT-2012 11:18:55

**Ends**04-OCT-2012 11:18:55

+---------------------------------------------------------------------------+

Start of log messages from FND_FILE

+---------------------------------------------------------------------------+

Processing existing batch to be deleted: Depreciation EY_CORP/231341 Assets 19094825: A 55933

Batch deletion successful: Depreciation EY_CORP/231341 Assets 19094825: A 55933

Program FAJERB completed successfully

+---------------------------------------------------------------------------+

End of log messages from FND_FILE

+---------------------------------------------------------------------------+

You can see in the log file that the batch has been deleted. If you check in General Ledger for this journal you will not find it.


Step 8: Close the Asset period

After making all the adjustments on the assets we shall run depreciation once again and close the period as well.

Navigation: Depreciation > Run Depreciation

Select the book and the latest period. Check the box, Close Period.

Click on Run

A popup warning message is displayed. Click on OK

The same programs will be executed as discussed in step 2. 1 additional program is executed as we checked “Close Period“. This program name is, Process Pending Transactions.


Step 9: Check Book Controls

Navigation: Asset System > Book Controls

Query for the corporate book

Note that the current period has been changed to Jun-12 now as the previous period, May-12, has been depreciated and closed.

Cheers!


Position Hierarchy Diagrammer

$
0
0

In a previous article I had discussed on how the position hierarchy is set up for Purchase Orders and Requisition workflow approval. In this article I shall discuss how the hierarchy can be viewed diagrammatically.

You can view the hierarchy through the Hierarchy Diagrammer form.

Navigation: Hierarchy Diagrammer

Query for the hierarchy, e.g. EY PO Hierarchy.

Change the number to the correct version, if required.

Click on Open Editor button.

The top level of the hierarchy is displayed. You can drill down to the entire hierarchy as shown below.

Select a position on the left say, 5457. VP Operations Logistics…..

The property of this position is given in the Properties window on the right hand side.

Click on Position button.

A window opens that displays all the positions in the same organization. Close this window to come back to the hierarchy window.

Click on Assignment button

The employee with this position is displayed. Close this window.

On the Position Hierarchy Diagrammer window, click on Position Holders button.

All the employees holding this position is displayed.

Notice the top level menu while the Hierarchy Diagrammer form is open.

Four new icons are visible.

Icon  
Refreshes the hierarchy.

Displays the hierarchy in Vertical Style

Displays the hierarchy in Interleaved Style

Displays the hierarchy in Org-Chart Style

The advantages of viewing the hierarchies in the diagrammer are

  1. The position hierarchy is viewed easily
  2. Drilling down is very easy
  3. The positions can be changed by dragging and dropping
    1. If positions are changed by dragging and dropping the changes need to be saved and refreshed.

Cheers!


Security Rule setup

$
0
0

Security Rules control user access to values in the Chart of Accounts for data entry users in GL or Subledgers. The accounting Flexfield should be structured so that security rules can be defined and maintained simply and easily. These rules are assigned to responsibilities, which are then assigned to individuals.

Responsibility: General Ledger SuperUser

Navigation: Setup > Financials > Flexfields > Key > Security > Define

Search for

Application: General Ledger

Title: Accounting Flexfield

Structure: EY_ACC_FLEX

Segment: Account

Click on Find

The Security Rules form opens with all the security rules defined for the accounting flexfield for the Account segment. Let us add our own security rule.

Click on the Security Rules section and add a new row

Add a new row with the details,

Name: Test

Description: Test

Message: This is a test Security Rule

Now we shall add the Account element values associated to the new Security Rule

We have added the elements. The logic is the following,

  1. This rule allows all accounts (the Include line)
  2. The rule does not allow accounts 1000 to 1101 (the exclude line)

Save the form. Now we shall assign this rule to the responsibilities. Click on Assign button on the form.

On clicking the Assign button you will find all the responsibilities already assigned to the Security Rule for the Account.

We shall assign a responsibility to the rule we have created. Add a new row

Enter the application, responsibility and the name as per the rule we created earlier, i.e. Test.

Save the form and the Security Rule will take effect.

Cheers!



How to relax Security Rules

$
0
0

We tried to do an Inventory Miscellanous Transaction in a responsibility,EY Direct Sales – Shop User, but we were getting the following error.

This error message is coming from a Security Rule attached to this responsibility. To continue with this transaction we need to modify or remove the security rule.

Security rules

Responsibility: General Ledger

Navigation: Setup > Financials > Flexfields > Key > Security > Define

Enter

Structure: EY_ACC_FLEX (This is accounting flexfield structure)

Segment: Account

Click on Find.

Now as per the Security rule error above, we know that the account in question is 7113. Go into query mode by click on a field in Security Rules section and hitting F11. Enter the message that you had received earlier. We shall enter %7113% as we know this will return the Security Rule in the form.

Click on Ctrl+F11.

The rules elements include all accounts from 0000 to ZZZZ and excludes any account between 0000 to 7112 and 7114 to 9999. This in turn means that the included account values can be 7113 and anything greater than 9999 to less that ZZZZ.

The problem here is that the account 0000 is excluded whereas in that responsibility Oracle is internally picking up account 0000. So we need to include 0000. Change the first exclude section to 0001 to 7112.

Save the form.

You can directly remove the rule from the responsibility as well. Note the name of the Security Rule, Restrict_Drct Sales_Store_Shop. Click on Assign button.

You will get the list of responsibilities. Query for the Security Rule.

Hit Ctrl+F11

Now you can see the responsibility attached to the security rule. Delete this line and save the form.


Test the Miscellaneous Transaction again

Go to “EY Direct Sales – Shop User” and try to conduct the transaction again.

Now the Security Rule error message does not come up. The rule has been relaxed and removed.

Cheers!


Document Sequence Numbering

$
0
0

A document sequence uniquely numbers documents generated by an Oracle Applications product. Using Oracle Applications, you initiate a transaction by entering data through a form and generating a document, for example, an invoice. A document sequence generates an audit trail that identifies the application that created the transaction, for example, Oracle Receivables, and the original document that was generated, for example, invoice number 1234.
Document sequences can provide proof of completeness. For example, document sequences can be used to account for every transaction, even transactions that fail.

Document sequences can also provide an audit trail. For example, a document sequence can provide an audit trail from the general ledger into the subsidiary ledger, and to the document that originally affected the account balance.
Document sequences generate audit data, so even if documents are deleted, their audit records remain.

To define a sequence, you select a sequence name and an application to “own” the sequence.

A sequence can number documents stored in database tables belonging to its owning application.
Audit records for a sequence are stored in the application’s audit table, titled Application Short Name_DOC_SEQUENCE_AUDIT. For example, the audit table for a sequence owned by Oracle Payables is AP_DOC_SEQUENCE_AUDIT.

Example of document sequence on some Oracle Apps forms:

Payables Invoice:

Voucher Number is generated by Oracle automatically using document sequence.

Payment:

Document Num is generated by Oracle using another sequence.


Configuration steps

 

Oracle Apps 11i

Step 1: Create a new sequence

Responsibility: General Ledger SuperUser

Navigation: Setup > Financials > Sequences > Define

Create a new record for a new sequence.


Step 2: Assign the new sequence to a document type

Navigation: Setup > Financials > Sequences > Assign

Document tab

Select the Application,Category and Set of Books to which the new sequence will be attached.

Assignment tab

Now add the sequence to this document type. If a sequence is already added to this application, category and set of books and it is not end dated, then the previous sequence needs to be end dated before the new sequence can be added.

Oracle Apps r12

Document Sequences

Responsibility: System Administrator

Navigation: Application > Sequential Numbering > Define

Query for Name = Journal Sequence

You can see the sequence name Journal sequence is created.

Check Categories

Navigation: Application > Sequential Numbering > Categories

Query for application = General Ledger

The categories defined under this application are displayed.

Now we shall check the categories to which the sequence, Journal sequence, is added.

Sequence Assignments

Navigation: Application > Sequential Numbering > Assign

Query for Sequence = Journal sequence (This field is in the Assignment tab)

Document tab

Assignment tab

As you can see the sequence, Journal sequence, is added only to Adjustment category.

Cheers!


Oracle iExpense tables

$
0
0

I have listed the main tables used in Oracle iExpenses below.

Table Name Description
AP_EXPENSE_REPORT_HEADERS_ALL Expense report header information
AP_EXPENSE_REPORT_LINES_ALL Expense report lines information
AP_EXP_REPORT_DISTS_ALL Expense report distribution information. It contains the accounts against each expense report line.
AP_CREDIT_CARD_TRXNS_ALL Table to store the corporate credit card transactions that are sent by the banks. These lines are saved as expense lines when the user creates the expense lines for credit cards
AP_NOTES Table to store the comments entered by approvers and auditors
   
Setup tables  
AP_EXPENSE_REPORTS_ALL This table contains the header level information about the expense templates
AP_EXPENSE_REPORT_PARAMS_ALL This table contains the detail level information about the expense templates
AP_POL_CAT_OPTIONS_ALL Table to store the policy options
AP_POL_CONTEXT Table to store the policy context
   
AP_POL_LOCATIONS_TL Table to store the locations for which policies have been defined.
AP_POL_VIOLATIONS_ALL Table to store the lines for which the defined policies have been violated
AP_POL_ITEMIZATIONS  
AP_POL_SCHEDULE_PERIODS  
AP_POL_EXRATE_OPTIONS_ALL Table to store the exchange rate tolerance
AP_POL_HEADERS Table to store all the policy headers
AP_POL_LINES Table to store all the policy details
AP_CARDS_ALL Table to store the corporate credit card details for the employees
AP_EXPENSE_REPORTS_ALL Table to store the expense report templates that can be used by employees from different operating units
AP_WEB_DISC_HEADERS_GT  
AP_POL_SCHEDULE_OPTIONS Table to store the basis of the policy created, E.g. location, currency, etc.
AP_EXPENSE_REPORT_PARAMS_ALL Table to store the expense template detailed information
   
Audit tables  
AP_AUD_AUDITORS Table to store auditor id and security_profile_id
AP_AUD_AUDIT_REASONS Table containing the expense report header id and audit reason id and code
AP_AUD_AUTO_AUDITS Table to store the employees who are auditors. This table is updated through the seeded package,AP_WEB_AUDIT_PROCESS.add_to_audit_list
AP_AUD_QUEUES  
AP_AUD_RULE_ASSIGNMENTS_ALL Table containing audit rule assignments
AP_AUD_RULE_SETS Table containing audit rules

Cheers!


SQL to get the request sets that can execute the required concurrent program

$
0
0

The following SQL will give the request sets to which a particular concurrent program is attached to.

SELECT frs.user_request_set_name "Request Set Name", frs.start_date_active "Request set Start Date",
       frs.end_date_active "Request set End Date", frsf.stage_name, frsf.user_stage_name, frsp.SEQUENCE "Stage Request Sequence",
       fcp.user_concurrent_program_name "Concurrent Program"
  FROM fnd_request_sets_vl frs, fnd_req_set_stages_form_v frsf, fnd_request_set_programs frsp, fnd_concurrent_programs_tl fcp
 WHERE frs.request_set_id = frsf.request_set_id
   AND frsf.request_set_stage_id = frsp.request_set_stage_id
   AND frsp.concurrent_program_id = fcp.concurrent_program_id
   AND fcp.user_concurrent_program_name = 'EY Purchase Order Print'   -- This is the concurrent program namex

On execution of the query the output will look like the following:

Cheers!


Download BLOB attachments from the Oracle Apps database

$
0
0

In a previous article I have written how to attach a BLOB file to an Oracle transaction. In this article I shall do the opposite. I shall download the attachments into a file so that I can view the documents from my local computer.

Step 1: Write a procedure to download the attachment

CREATE OR REPLACE PROCEDURE xx_get_blob (p_file_id NUMBER)
IS
   vblob           BLOB;
   vstart          NUMBER             := 1;
   bytelen         NUMBER             := 32000;
   len             NUMBER;
   my_vr           RAW (32000);
   x               NUMBER;
   l_output        UTL_FILE.file_type;

   -- Ensure that the directory has got write privileges
   v_file_dir      VARCHAR2 (240)     := 'EXT_DIR';-- select * from dba_directories
   v_file_name     VARCHAR2 (240);
   v_file_format   VARCHAR2 (40);
BEGIN
   SELECT fdl.file_name, fl.file_format
     INTO v_file_name, v_file_format
     FROM fnd_lobs fl, fnd_documents_tl fdl, fnd_user fu
    WHERE 1 = 1 AND fdl.media_id = fl.file_id AND fu.user_id = fdl.created_by AND fl.file_id = p_file_id;

   -- define output directory
   IF v_file_format = 'BINARY'
   THEN
      l_output := UTL_FILE.fopen (LOCATION                      => v_file_dir,
                                  filename                      => v_file_name,
                                  open_mode                     => 'WB',
                                  max_linesize                  => 32760
                                 );
   ELSE
      l_output := UTL_FILE.fopen (LOCATION                      => v_file_dir,
                                  filename                      => v_file_name,
                                  open_mode                     => 'W'
                                 );
   END IF;

   -- get length of blob
   SELECT DBMS_LOB.getlength (file_data)
     INTO len
     FROM fnd_lobs
    WHERE file_id = p_file_id;

   -- save blob length
   x := len;

   -- select blob into variable
   SELECT file_data
     INTO vblob
     FROM fnd_lobs
    WHERE file_id = p_file_id;

   -- if small enough for a single write
   IF len < 32760
   THEN
      UTL_FILE.put_raw (l_output, vblob);
      UTL_FILE.fflush (l_output);
   ELSE   -- write in pieces
      vstart := 1;

      WHILE vstart < len
      LOOP
         DBMS_LOB.READ (vblob,
                        bytelen,
                        vstart,
                        my_vr
                       );
         UTL_FILE.put_raw (l_output, my_vr);
         UTL_FILE.fflush (l_output);
         -- set the start position for the next cut
         vstart := vstart + bytelen;
         -- set the end position if less than 32000 bytes
         x := x - bytelen;

         IF x < 32000
         THEN
            bytelen := x;
         END IF;
      END LOOP;
   END IF;

   UTL_FILE.fclose (l_output);
END xx_get_blob;


Step 2: Find the list of attachments

Execute the following script to get the list of documents attached to the transactions.

SELECT fdl.description, fdl.LANGUAGE, fl.file_id, fdl.file_name, fad.pk1_value "Header ID", fad.entity_name, fl.upload_date "File added on",
       fl.file_format, fu.description created_by
  FROM fnd_lobs fl, fnd_attached_documents fad, fnd_documents_tl fdl, fnd_user fu
 WHERE 1 = 1 AND fdl.document_id = fad.document_id AND fdl.media_id = fl.file_id AND fu.user_id = fdl.created_by

Select the document you want to download and note it’s file_id. We selected file_id, 721179.


Step 3: Execute the procedure

We shall execute the procedure to get the attached file with file_id

exec xx_get_blob (721179);


Step 4: View the file

Login to Unix and go to the directory where the procedure had dropped the file

Our directory is /d04/NBADdir/input

The file is ABOME Feb 08-11.pdf


Step 5: FTP the file to your local directory and open it

Once the file is transferred to your local computer you can open it.


FNDGFU utility

As an alternate process you can use the FNDGFU utility. Log into Unix and execute the following command

$ FNDGFU apps/apps01 0 Y DOWNLOAD=721179 ABOME.pdf

This command is downloading the same file we had downloaded earlier using PL/SQL, i.e. file_id 721179

FNDGFU utility can be used for uploading files as well. It can be used like the following,

FNDGFU <apps/pwd> 0 Y PROGRAM_NAME=FND_HELP PROGRAM_TAG=<application>:<custom_level> CONTENT_TYPE=<mime_type> LANGUAGE=<language_code> <filenames>

You can refer the following URL to read more about this utility.

You can use either process to download any file from the database.

Cheers!


Viewing all 128 articles
Browse latest View live