You are on page 1of 10

Steps to Create Dependent Values sets using only value sets

An Example,
The Location segments in Oracle Assets should have the following
Country

> India, USA, Canada

State

> dependent on country

City

> dependent on State

Area

> dependent on City

Solution
1. Country

Create a value set which is table dependent on PA_COUNTRY_V

2. State

Create a value set (XX_STATE_VL) with validation type as Independent.


This value set will be used to populate the values. After creating the
values, note the FLEX_VALUE_SET_ID from FND_FLEX_VALUES_VL.
Create a value set which is table dependent on FND_FLEX_VALUES_VL
with the following code in the where clause
flex_value_set_id=<flex_value_set_id> and substr(flex_value,1,2)=
$flex$.<value set name of country> and enabled_flag=Y

3. City

Create a value set (XX_CITY_VL) with validation type as Independent.


This value set will be used to populate the values. After creating the
values, note the FLEX_VALUE_SET_ID from FND_FLEX_VALUES_VL.
Create a value set which is table dependent on FND_FLEX_VALUES_VL
with the following code in the where clause
flex_value_set_id=<flex_value_set_id> and substr(flex_value,1,5)=
$flex$.<value set name of State> and enabled_flag=Y

Similarly, create the balance value sets for area using the same concept. However, the value in
the value sets should be with the logic of prefixing the previous segment value codes for each of
its dependent values as follows
Country
Country_Code (ISO Codes)
IN
US

Description
India
United States of America

State
State_Code (ISO Codes)
IN-KL
IN-MH
US-NY
US-NJ

Description
Kerala
Maharashtra
New York
New Jersey

City
City_Code
IN-MH-BOM
IN-KL-COK
US-NY-NYK
US-NJ-NWK

Description
Bombay
Cochin
New York
Newark

Screenshots of sample where asset key flexfield is used with the combination of Country-CityArea

Country Value Set

City Value Set

Create another value set for City with validation type as Independent and create values as per
sample shown below

Area Value Set

Create another value set for Area with validation type as Independent and create values as
sample shown below

Process screenshots

You might also like