Search This Blog

Friday, May 10, 2013

Advanced Global Intercompany Setup – Part 3


Advanced Global Intercompany Setup – Part 3



Login to Intercompany Super user responsibility assigned to our user. The First step is defining organizations. These are the organizations which will be used by AGIS
Navigation: Intercompany Super user>>Setup>> Organization
15
Define Organization as shown below.16
Similarly create organization for Japan legal entity also. And Query the same in organization form for confirming your creation. Note that in the above Screen while creating organization select ‘Yes’ for enabled column. This flag indicates that this organization is enabled for intercompany transactions. Without this processing of transactions in those organizations, through AGIS is not possible
17 
Next Step is to security definition. Security is defined as, which user/person will have access to which and how many intercompany organizations
Navigation: Intercompany Super User>>Setup>>security

Query the Person name and the Respective organization on which the person should be given access. And enable “Yes” for the options as shown below
18
In the same way shown above give access for BCR_S to Singapore Org. and BCR_J to Japan Org.
Next set is to define Transaction types in AGIS.
Your transaction type will decide whether invoicing is required for the transaction and manual approval is required.

19
Our next step inthe process is to define AGIS system options
20
Next we will define invoicing options21
Under invoicing option Define Receivable Assignment and Customer/Supplier association as shown in the below screen shots
22
Example setup of one of the operating unit is shown in figure.
Note that Receivables Transaction Type and Receivables Memo lines can be linked only id Receivable setups are complete.If those setups are not complete then trhe LOV will not appear.The values like “Intercompany” , “Global Intercompany” respectively are seeded values in Receivables. These have been specifically seeded in Receivables for AGIS

23
In the above step definition of Customer/ Supplier Association is done.There are two tabs in the setup.
1.Customer/Supplier association tab to define the Association
2.Trading partner tab to reviewthe earlier Created association.

24
25
The second step in the creation of customer supplier association is selection of customer and entering a “Bill To Site” for the customer
Note that both are mandatory.

26
27
28
29
30
31
With this we have completed AGIS setup required for processing AGIS transactions We will discuss on AGIS Transaction process in the next part.

Advanced Global Intercompany Setup – Part 2


Advanced Global Intercompany Setup – Part 2



In this part we will see about GL ,AR, AP, setups
Now our next step is to create Legal entities namely BCR Singapore legal entity and BCR Japan legal entity of which one will be Our Initiator and other will be Recipient for our Intercompany transactions.
In BCR General Ledger Super User Responsibility
*Note: When you create our business group HRMS security profile gets automatically created with the same name of our Business Group.
Navigation: Setup>>Financials>>Accounting Setup Manager>>Accounting Setup
Click on Legal Entity tab in Accounting Setup Manager page to create new legal entity. Fill in all the mandatory columns like Territory, Legal Entity Name, Organization name, RCB Number and Legal Address. The screen shot below shows the sample of legal entity creation. Values such as Place of Registration, Inspection date, Primary Activity, Secondary Activity, Type of Company, and Fiscal year end are optional fields.
5
Similarly Create BCR Japan Legal Entity. And query the names in Legal entity form for confirming the creation of legal entities.
6
Our next step in the process is to create a valid ledger. Here I have a valid ledger called Blink Ledger highlighted on the screen shot below. Now attach the legal entities we have created in the previous step to this valid ledger. 
7
In the screen shot below you can see the legal entities attached to the Ledger. Then define the operating unit by clicking the Operating unit update icon as shown below.
8
Create Operating units Namely ‘Blink AGIS Singapore OU’ and ’Blink AGIS Japan OU’. While creating attach the business group we created in the initial steps. (Blink AGIS)
9
Query the operating Units as show below for confirming the creation. Here you can see your operating units, Short code, Business group to which they are attached and the corresponding legal entities they are assigned to
10
So far what is covered is assignment of Legal entities and Operating units to Ledger.
Next step would be to define Inter-company Balancing Rules. Options to define inter- company rules would be visible, If and only if the inter company option is enabled.
111
Clink on Update icon to define Intercompany balancing rule
12
Under Intercompany company accounts link, there is a link called ‘Define Relationships’ where one can create relationship between various legal entities. This is the place where GL is noticed of ‘from where’ and’ to where’ the transactions are going to flow.In case, define the relationships for the BCR Singapore Legal Entity to BCR Japan Legal entity. As of now reverse way transactions is not happening so only one way relationship (Singapore LE to Japan LE) would suffice.
13
Define the relationship here. There are two parties in a relationship. First one is the Transacting Entity and the second is Trading Partner Entity.
Note: The relationship can be defined individual / multiple Balancing segment values of the transacting and trading entity.
Now we have just finished the required setups in GL for AGIS. Before entering AR setup the prerequisite is to have a Inventory organization. 
Below screen shots will tell you the creation of INV organization:
14
Complete the Accounting Information, Receiving Information, Inventory Information to complete the INV. Organization creation.
Now set the following system profile option at this responsibility level
Profile options where set for
1. HR: Business Group,
2. HR: Security,
3. MO: operating Unit,
4. MO: security profile,
5. MO: Default Operating Unit Profile,
6. GL Ledger name
*Note: When you create our business group HRMS security profile gets automatically created with the same name of our Business Group.
Now we will move on to Payables setups.
In AP Define Financial Options,Payable Option, and System profile Option.setting up of Financial & payables options are more are less similar to 11i. We will see obout AGIS

Advanced Global Intercompany System (AGIS) Functional Setup – Part 1



OVERVIEW .....

Part one on setup offers a broad view on how AGIS is Setup in R12
The setups are divided into four parts
1. Environmental setups
2. General Ledger (GL) setups
3. Receivable (AR) setups
4. Payables(AP) setups
5. Advanced Global Intercompany System (AGIS)

Part two on transaction processing discusses the setups those are required for processing the transaction in AGIS
Transaction Processing in AGIS
The summaries of steps those are used for AGIS transaction processing are As follows.
1. Initiation of a transaction by an intercompany organization
2. Completion of accounting from the initiator side
3. Completion of accounting from recipient side
4. Approval of the transaction by the recipient

If the invoicing is opted for, in transaction type setups then,
1. Processing of Invoice from Receivables
(For the initiator subsidiary side)
2. Processing of invoice in Payables
(For the Recipient subsidiary side)
Part three discusses the reports in AGIS and reconciliation features in AGIS
1. Standard reports Available in AGIS
2. econciliation features in AGIS
The setup steps are explained in the subsequent sections, from start to finish
The details of the examples used in this document is as follows,
-Initiator Subsidiary-‘Blink AGIS INV ORG’. This organization is a part of BCR Singapore Legal Entity. This Legal Entity uses 001 balancing segment value. The user that is having access to initiator subsidiary is called BCR_S
-Recipient Subsidiary–‘Blink AGIS INVJ ORG’. This organization is a part of BCR Japan Legal Entity. This Legal Entity uses 002 balancing segment values. The user having access to initiator subsidiary is called BCR_J

PART ONE- AGIS SETUP
Welcome to the Advanced Global Intercompany System (AGIS) setup
Description of the setup that is used in this viewlet is as follows
One ledger called Blink ledger.
Two legal entities under that ledger called BCR Singapore legal entity and BCR Japan legal entity. Two operating units Blink AGIS Singapore OU, Blink AGIS Japan OU respectively.
*Note: Setting up of receivable setup is mandatory, for using invoicing functionality. And for setting up of receivables mandatory that inventory Organization are created as well.
The transactions in this example are assumed to be happening from BCR Singapore to BCR Japan. For theses two create
Two employees: BCR Singapore and BCR Japan
Two Users : BCR_S and BCR_J
Create receivables and GL Responsibilities.
As the first step we should define employees in HRMS. These employees are used later on in the AGIS security setups.
Navigation: HRMS, Progress Admin S&L>>People>>Enter and Maintain
emp-creation1
Define an employee ‘BCR, Singapore’ .This person will be attached to the user initiating the transaction in AGIS. In our example transaction gets initiated by BCR Singapore
employee-creation
Similarly create another employee (Recipient) BCR Japan and Save your new creations.
3
Create a users like BCR_S & BCR_J. Note the Person attached to this User is (BCR, Singapore) he is now the contact Person
Next step is to define Custom responsibilities like GL Super User, AP Super User, AP Super User, HRMS Management, OM, & AGIS Super user Resposibilities and attach it to our users.
Our next setup in AGIS set id to define a business group
Login to HRMS Responsibility and create Business group called Blink AGIS, Which you will later require to attach with the operating Units.
Navigation:
HRMS Management>>HRMS Manager>>Work Structures>>Organization>>Description
11
Click on Other button at line Level and set the Business Group settings:
4
Next step is to set some of the system profile options.
Navigation: System Administrator>>Profile>>System
Profile options where set for
1. HR: Business Group,
2. HR: Security,
3. MO: operating Unit,
4. MO: security profile,
5. MO: Default Operating Unit Profile,
6. GL Ledger name
One might already know, If MO: Security profile is defined the MO: Operating unit profile becomes redundant.

Release AP Hold API: ap_holds_pkg.quick_release


Release AP Hold API: ap_holds_pkg.quick_release

DECLARE
  p_invoice_id ap_invoices_all.invoice_id      % TYPE := 63010; /* Change invoice id to correct value */
  p_inv_batch  ap_batches_all.batch_name       % TYPE := NULL;
  p_hold_code  ap_holds_all.hold_lookup_code   % TYPE ;

  v_hold_cnt NUMBER;
  v_apprvl_sts     ap_invoices.wfapproval_status   % TYPE;
  v_release_reason ap_lookup_codes.description     % TYPE ;
  v_release_code   ap_lookup_codes.lookup_code     % TYPE := 'VALIDATED';

  CURSOR c_inv_on_hold IS
    SELECT hld.hold_lookup_code
         , hld.invoice_id
      FROM ap_holds_all hld
         , ap_invoices_all inv
     WHERE hld.invoice_id = inv.invoice_id
       AND INV.INVOICE_ID = 63010
    ;
BEGIN

   mo_global.set_policy_context('S',9003);
   SELECT description
     INTO v_release_reason
     FROM ap_lookup_codes
    WHERE lookup_type = 'HOLD CODE'
      AND lookup_code =  'VALIDATED'
      AND enabled_flag = 'Y'
      AND TRUNC (SYSDATE) BETWEEN TRUNC (NVL (start_date_active, SYSDATE - 1))
                              AND TRUNC (NVL (inactive_date    , SYSDATE + 1))
    ;


   FOR l_rec in c_inv_on_hold
   LOOP
       dbms_output.put_line('Inside Loop : ' || l_rec.invoice_id);
       ap_holds_pkg.quick_release
       ( x_invoice_id                  => l_rec.invoice_id
       , x_hold_lookup_code            => l_rec.hold_lookup_code
       , x_release_lookup_code         => v_release_code
       , x_release_reason              => v_release_reason
       , x_responsibility_id           => fnd_global.resp_id
       , x_last_updated_by             => fnd_global.user_id
       , x_last_update_date            => SYSDATE
       , x_holds_count                 => v_hold_cnt
       , x_approval_status_lookup_code => v_apprvl_sts
       , x_calling_sequence            => 'xxap_invoice_util_pkg.release_holds'
       ) ;
     
       dbms_output.put_line('Hold count = ' || v_hold_cnt ||
                            ', Approval Status:' || v_apprvl_sts);
   END LOOP;

EXCEPTION
  WHEN OTHERS THEN
    dbms_output.put_line('Exception:' || sqlerrm);
END;

Wednesday, May 8, 2013

Implement LOV in OAF


Implement LOV in OA Framework

1. Create a New Workspace and Project
Right click Workspaces and click create new OAworkspace and name it as PRajkumarLovDemo. Automatically a new OA Project is also created. Name the project as LovDemo and package as prajkumar.oracle.apps.fnd.lovdemo

2. Create a New Application Module (AM)
Right Click on LovDemo > New > ADF Business Components > Application Module
Name -- LovAM
Package -- prajkumar.oracle.apps.fnd.lovdemo.server

3. Create a New View Object (VO)
Right click on LovDemo > New > ADF Business Components > View Object
Name -- LovVO
Package -- prajkumar.oracle.apps.fnd.lovdemo.server

Note - The VO is not based on any EO so click next and go to the query section and paste the query
SELECT          employee_number, full_name
FROM             per_all_people_f
WHERE           SYSDATE BETWEEN effective_start_date AND effective_end_date

4. Add View Object to Root UI Application Module

5. Create a New Page
Right click on LovDemo > New > Web Tier > OA Components > Page
Name -- LovPG
Package -- prajkumar.oracle.apps.fnd.lovdemo.webui

6. Select the LovPG and go to the strcuture pane where a default region has been created

7. Select region1 and set the following properties:  
ID -- PageLayoutRN
AM Definition -- prajkumar.oracle.apps.fnd.lovdemo.server.LovAM
Window Title -- List of values Demo Window
Title – List of values Demo

8. Right click PageLayoutRN and  click new Region
ID -- MainRN
Region Style – messageComponentLayout
Note - Style is given as messageComponentlayout because we are going to create only message components that is messageLovInput item in that region

9. Create a New Region
Right click on LovDemo > New > Web Tier > OA Components > Region
Name -- EmployeeLovRN
Package -- prajkumar.oracle.apps.fnd.lovdemo.webui
Region Style -- listOfValues
Scope -- Public

Note - The property Scope is the key property which makes the LOV region public and makes it usable in multiple pages

10. Select EmployeeLovRN. Right click on EmployeeLovRN in Structure pane and click table using wizard. In the wizard choose the prajkumar.oracle.apps.fnd.lovdemo.server.LovAM and select the LovVO1. Click Next
Region Id -- LovRN
Region style -- table

11. Shuttle the two attributes to the right side.That is EmployeeNumber and FullName

12. Click next, check the mapping and then finish

13. Select the field FullName and set the following properties:
Search Allowed -- True
Selective Search Criteria – True

Note - The first property lets users search on these values in the LOV, and the second property ensures that the users specify search criteria for at least one of these values to avoid a blind query

Attaching External LOV to Page:

14. Click on LovPG and right click the MainRN and click new messageLovInput
External Lov -- /prajkumar/oracle/apps/fnd/lovdemo/webui/EmployeeLovRN
Lov Region Item -- FullName
Return Item -- item1
Criteria Item -- item1
Prompt -- Employee Name

15. Congratulation you have successfully finished. Run Your page and Test Your Work 


Tuesday, May 7, 2013

Clear/ Reset Result Table of Search page in OAF


Clear/ Reset Result Table of Search page in OAF

Normally problem faced by developers after creating Search Page is how to Clear/ Reset Result Table when developer open search page first time or after search when developer redirecting back to same search page from any other page (say delete page or update page)

Add following Code in your Search page Controller where you have constructed your Query Region

import oracle.apps.fnd.framework.webui.beans.layout.OAQueryBean;
...
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
{
 super.processRequest(pageContext, webBean);
 OAQueryBean queryBean = (OAQueryBean)webBean.findChildRecursive("QueryRN"); 
 // Here QueryRN is your Query Region Name as shown in following snap shot
 queryBean.clearSearchPersistenceCache(pageContext);
}


 
Note –
After add this code, no need to worry about state of Application Module (AM). This code will clean up result table automatically every time when you will open Search page first time and when you are redirecting back to search page. But still as per good coding standard while redirecting back to search page always keep AM state to FALSE

Monday, May 6, 2013

AP Trial balance not matching with Invoice Ageing report


AP Trial balance not matching with Invoice Ageing report

Issue: Oracle AP trial balance not matching with standard "Invoice Ageing" report

First the definition-

1. Accounts Payable Trial Balance

The Accounts Payable Trial Balance shows you a complete list of all unpaid invoices on the system that has been transferred to the General Ledger, irrespective of whether they are due for payment or not. This report will assist with the month end reconciliation process.
This is a period end report. This represents your opening and closing AP Trial Balance.
The closing value per AP control account in this trial Balance should match with the corresponding Account in the General Ledger Trial Balance.

If it does not, then there is an issue.

Following reports can be run in the accounting period that is being in question to find the potential problem.

Posted Invoices Register
Posted Payments Register

The Opening Account Payable Trail Balance (AP TB)

+ The Posted Invoice
- The Posted payments
= The Closing AP TB

This is a key formula to identify the source of potential problems.

Note that in above:

The Aging Invoice Report Total should = The AP Trial Balance Total (from above for posted transactions) + The Total of Swept (Unposted Transactions)

You may wish to perform this reconciliation as a further month end reconciliation check.

2.Invoice Aging Report
This is yet another important report which shows you a complete list of all unpaid invoices on the system irrespective of whether they are due for payment or not, whether they are on hold or not. As soon as you save the Invoice even if you have not validated yet, this report picks up the invoice. Ageing goes by Invoice date. This report groups invoices by how many days they are over due. The grouping of invoices by age past due is dependent on the Aging bucket selected for the report.

Running the Invoice Aging report is like running any other report. The key points to note are that
1. The report name to choose is "Invoice Aging Report"
2. It is recommended that you use the Standard Aging bucket.
3. You can also select invoice level detail to find out the exact issue.


Resolution:
If you see there is any reconciliation issue between AP Trial balance and Invoice Ageing report, then check the following,

1. By running above reports and calculation find out which invoice is causing the problem.
2. If an invoice is in Trial balance but not in AP Ageing report then check the Payment schedule for the invoice. Due to Oracle AP known issues, sometimes the payment schedule could not get created for an invoice and due to that the invoice does not show up in the standard "Invoice Ageing" report. So, if that is the case then manually enter a payment schedule for the invoice as per the invoice payment terms and that should fix the issue.

It may also happen that users might have run the trial balance with a "as of date" which is earlier than the payment accounting date and in which case invoices which were paid and accounted after the "as of date" would appear in the Trial Balance but not in the ageing report. So, it is always a good practice to generate Trial balance after the all the invoices and payment subledger accounting details are sent successfully to GL with "as of date" as the last day of the current period.
3. Run the Invoice Ageing report and now it should show the invoice in the report.