Professional Documents
Culture Documents
Creation Date: August 3, 2012 Last Updated: File URL: Version: Status: August 3, 2012 http://files.oraclecorp.com/ 1.1 FINAL
Approver Name
Role
Date
This document is not a promise to deliver and may not be included as part of any contract.
1. Contents
Version 1 1.1
Change Reference Created Moved it to Oracle template, added more navigation steps and added some additional content..
1.2 Contributors
Position
1.3 Reviewers
Name
Role
Position
Document Status
Date Reviewed
Comments Incorporated
Contents
Page ii of 13
Contents
1.
Contents ................................................................................................................. ii
1.1 1.2 1.3 Change Record ........................................................................................................................ ii Contributors ............................................................................................................................ ii Reviewers................................................................................................................................ ii
2. 3.
Introduction ............................................................................................................4
2.1 Scope of the Document ........................................................................................................... 4
4.
5.
6.
Contents
Page iii of 13
2. Introduction
Introduction
Page 4 of 13
select hr_legal.organization_id legal_entity_id, hr_legal.name, hrl.location_id, hrl.location_code, hrl.style, hrl.legal_address_flag, hrl.country country from ( SELECT O.ORGANIZATION_ID, otl.name FROM HR_ORG_UNITS_NO_JOIN O, HR_ALL_ORGANIZATION_UNITS_TL OTL, HR_ORGANIZATION_INFORMATION O2, HR_ORGANIZATION_INFORMATION O3 WHERE O.ORGANIZATION_ID = O2.ORGANIZATION_ID AND O.ORGANIZATION_ID = O3.ORGANIZATION_ID (+) AND O2.ORG_INFORMATION_CONTEXT||'' = 'CLASS' AND O3.ORG_INFORMATION_CONTEXT (+) || '' = 'Legal Entity Accounting' AND O2.ORG_INFORMATION1 = 'HR_LEGAL' AND O2.ORG_INFORMATION2 = 'Y' AND O.ORGANIZATION_ID = OTL.ORGANIZATION_ID
Page 5 of 13
AND OTL.LANGUAGE = USERENV('LANG')) hr_legal, hr_locations_all hrl, hr_all_organization_units hou where hr_legal.organization_id =hou.organization_id and hou.location_id = hrl.location_id(+) and hr_legal.organization_id not in ( SELECT legal_entity_id from xle_entity_profiles where created_by =-1);
This query lists all the HR organization of type GRE/LEs that have not been migrated to R12 as Legal Entities. Each row represents the missing Legal Entity and related HR location information.
If there is no location_id for the Legal Entity in the Missing Legal Entities query results above, the LE will not be migrated. A LE must have a location to be considered for migration.
Solution Associate a Location to the GRE/LE that was not migrated in upgraded R12 instance.
Navigation (a) Responsibility -> Human resources (b) Click on Workstructures--> Description (c) Query the organization (d) Attach a location from the LOV on the Location field
Example
Figure 1: Missing Location In the above example, a valid location must be attached to Vision Russia.
Page 6 of 13
If there is no country in the Missing Legal Entities query results above, the LE will not be migrated. A LE must have a country to be considered for migration.
Solution Associate a country to thelocation associated to the GRE/LE that was not migrated in upgraded R12 instance.
Navigation (a) Responsibility -> Human resources (b) Click on Workstructures--> Location (c) Query the Location with a Location Code value from the results set of Missing Legal Entities (d) Update the country for the location, based on the value returned from the query below. select hzg.country_code from hz_geographies hzg where hzg.geography_name = <country name for your location> and hzg.geography_type ='COUNTRY'; (e) Save the location (or) (f) If the legal_address_flag in the Missing Legal Entities query results is 'Y', the update cannot be done thru the UI (navigation steps provided above). The update statement below has to be run in the upgraded R12 instance. update hr_locations_all hrl set hrl.country =( select hzg.country_code from hz_geographies hzg where hzg.geography_name = <country name for your location> and hzg.geography_type ='COUNTRY') where location_id = < location_id from for missing legal entity>
COMMIT;
Example
In the above example, the HR location Johannesburg attached to Vision South Africa does not have Country information. Location Johannesburg should be updated with Country ZA for Vision South Africa.
Page 7 of 13
If the LE upgrade fails to migrate LEs, even if there is a valid location or country, the cause most likely is that the HR ccountry does not match up with the HZ country code. Solution Associate a valid country to the location associated to the GRE/LE that was not migrated in upgraded R12 instance.
Navigation (a) Responsibility -> Human resources (b) Click on Workstructures--> Location (c) Query the Location with a Location Code value from the results set of Missing Legal Entities (d) Execute the query: select hzg.country_code from hz_geographies hzg where hzg.geography_name = <country name for your location> and hzg.geography_type ='COUNTRY';
(e) Compare the country_code returned in step d, with the value found in step c, if they are different the LE would not be migrated.
(f) Update the country for the location, based on the value returned in step d. (g) Save the location (or) (h) If the legal_address_flag in the Missing Legal Entities query results is 'Y', the update cannot be done thru the UI (navigation steps provided above). The update statement below has to be run in the upgraded R12 instance. update hr_locations_all hrl set hrl.country =( select hzg.country_code from hz_geographies hzg where hzg.geography_name = <country name for your location> and hzg.geography_type ='COUNTRY') where location_id = < location_id from for missing legal entity>
COMMIT;
Example
Page 8 of 13
The HR country for Location attached to Vision Saudi Arabia is Saudi. The HZ country for Saudi Arabia is SA. Location HR-Riyadh has to be updated with SA as the country for Vision Saudi Arabia to be migrated.
Page 9 of 13
4. LE Upgrade Global
If there is invalid location data in the Brazil or Belgium tables, then the location and Legal Entity cannot be migrated.
Solution Correct the invalid location data in the Belgium reporting entities and the Brazilian company Information tables.
Navigation - Brazil (a) Responsibility -> Brazilain Localizations (b) Click on Localizations --> Company Information Define (c) Check the address fields for all companies. (d) Update with the correct information. Navigation - Belgium (a) Responsibility -> Belgian Localizations (b) Click on Belgian Localizations --> VAT Reporters (c) Check the address fields for all reporters. (d) Update with the correct information.
If there is a required segment on the location descriptive flexfield, then the location and Brazilain or Belgium Legal Entities or Establishments cannot be migrated.
Solution Correct the invalid location data in the Belgium reporting entities and the Brazilian company Information tables.
LE Upgrade Global
Page 10 of 13
Navigation (a) Responsibility -> System Administrator (b) Click on Application --> Flexfield Descriptive (c) Query for title Additional Location Details and applcation Human Resources (d) If the Descriptive flexfield is setup with any required segments, set it to Not required (e) Rerun the generic datafix or the upgrade (f) Afer upgrade, set the segment to required in your R12 instance.
LE Upgrade Global
Page 11 of 13
Page 12 of 13
Number
Description
Date Raised
Priority
Owner
Action
Target Date
1. 2. 3.
Number
Description
Date Raised
Priority
Owner
Resolution
Date Closed
Page 13 of 13