SQL dependent Value Set

hi experts
I want to make value set ( single value column) dependent upon select statement. How can i do that . i know how to make table dependent value set but i dont know how to make value set dependent upon select .
Please help me out of this ..
regards
Anwer

Hi Anwar
Go to Value Set creation screen.
Go to Value Validation Region
Select validation type as Table
Click Edit information and enter your table details as follows
Name of the table
ID and name combination ( Like if you want to create a value set in person table in LOV you would like to show Full Name but while passing parameter or storing value you will store person_id)
Add your where clause and order by clause in the where/order by clause.
See a seeded value set of this type (BEN_ACTN_TYP) for reference.
For more details go through flexfield guide at following location
http://download.oracle.com/docs/cd/B34956_01/current/acrobat/120flexug.pdf
Regards
Gaurav

Similar Messages

  • Can 2 Dependent Value sets share 1 independent Value set?

    We have shifted to 14 segment value set.
    In the 14 segments we have the below 3 segments
    (PC Business Unit -> Project ID -> Activity)
    It is not necessary that these will contain value for each accounting entry.
    But whenever Project ID is there, It is mandatory that Activity will have a value. There are number of values in Activity. And also PC Business Unit should have a value. PC Business have only 1 value.
    We have created valueset_ProjectID (as independent) and Valueset_Activity dependent upon Valueset_ProjectID.
    Is that possible I can create Valueset_PCBusinessUnit dependent upon Valueset_ProjectID?
    Can 2 dependent Valuesets (Valueset_PCBusinessUnit, Valueset_activity) share 1 independent Valueset (Valueset_ProjectID)?

    Yes they can share. But there is a trick for that the Oracle told me after 2 months.
    Define the accounting flexfield structure in two steps.
    1. On the Key Flexfields Segments form, you have to Save the flexfield structure after you define the segment with the independent segment (for example account).
    2. Then close the form and come back.
    3. Now add your dependent segment (for example subaccount).
    4. You should see the dependent value set in the list of values.
    Thanks Charan

  • Creating 2 custome dependent value sets for party_number and customer_numbe

    Hi,
    I want to create 2 custom value sets XX_PARTY_NUMBER and XX_CUSTOMER_NUMBER
    When i select the value for Party_number from XX_PARTY_NUMBER,
    the corresponding customer_number should populate from XX_CUSTOMER_NUMBER
    This is what i tried
    1ST VALUE SET
    VALUE_SET_NAME -- XX_PARTY_NUMBER
    APPLICATION ---RECEIVABLES
    TABLE HZ_PARTIES
    VALUE-- PARTY_NUMBER
    MEANING PARTY_NAME
    ID-- PARTY_ID
    WHERE_CLAUSE -- ORDER BY PARTY_ID ASC
    2ND VALUE SET
    VALUE_SET_NAME
    XX_CUSTOMER_NUMBER
    APPLICATION -- RECEIVABLES
    TABLE --- RA_CUSTOMERS
    VALUE -- CUSTOMER_NAME
    MEANING -- CUSTOMER_NUMBER
    ID ---
    WHERE_CLAUSE-- PARTY_ID IN :$FLEX$.XX_PARTY_NUMBER
    I'm not getting it correctly.
    Can you help me?

    Hello Friends,
    I am new to Oracle Apps,i am finding difficult in writing the query to get the following details -
    Customer Name,
    Customer Number,
    Bill_to_address,
    Ship_to_address
    Kindly share if you have any query related to this.
    Thanks In Advance!
    Ramya Nomula

  • Automatic number sequence Value set

    hello,
    Can I create a value set for a descriptive flexfield segment that generates numbers sequentially and automatically for each record entered by the user.
    If the above is possible what is the action plan?

    Sujoy,
    Instead of creating a dependent value set for your 2nd segment, why don't you just assign it a seeded valueset like '8 Characters Numeric' and then use a default type of 'SQL statement' against the segment definition with a default value of:
    select max(attributexx)+1 from your_table
    where attributexx is the column you're using to store the sequential value and your_table is the table against which the DFF is defined.
    This should work fine as long as you ensure in your flexfield design that attributexx is never shared with another context using non-numeric values in that column.
    You'll also need to manually seed the first record with the starting number of your sequence. Thereafter, it should populate automatically.
    Regards,
    Jon

  • Multiple Levels Hierarchy - Value Sets

    Hello all,
    I have a request from our client to create a four level hierarchy in E-Business Suite. I have tried creating dependent value sets but with this way I can create only two levels hierarchy since I can not make the dependent value set parent of another value set.
    Does anybody have any idea?
    Thank you in advance,
    Christina

    Hi Hiren,
    According to your description, you will not select Country, State & City at the same time, right?
    So as per my understanding, you needn't to create the hierarchy, just create three attributes Country, State and City. Then when you select one of the attributes in the PowerPivot table, the attribute can be the filter which you can see on the screenshot
    below.
    Regards,
    Charlie Liao
    TechNet Community Support

  • A generic requirement on Value Sets

    Suppose there are 3 parameters in a request:
    1. Gender
    2. Age (Male)
    3. Age (Female)
    The Gender parameter wil surely be having an independent value set, with already defined values (MALE, FEMALE).
    Now when the Gender parameter is MALE, then the 3rd parameter wil get disabled, and the 2nd parameter, namely Age (Male) wil get enabled, where I wil be entering the age if the male person.
    If Gender parameter is FEMALE, then the 2nd parameter wil get disabled, and the 3rd parameter, namely Age (Female) wil get enabled, where I wil be entering the age if the female person.
    (I created one FLAG table value set, which wil actually be acting as a flag depending on the values entered in the 1st parameter, by way of which the reqd AGE parameter gets enabled, but still its not working)
    How to achieve such a thing?

    Is this a real requirement?
    Can you not have 2 parameters - gender and age? And then have the logic in the program to decipher if the age is for a male or female?
    And if this is indeed a requirement, use Srini's link or search the forum for dependent parameters or dependent value sets to see examples of how this is achieved.

  • Value Set help

    Hi,
    We have the below requirement.
    Concurrent program has below parameters.
    1. EMPNO
    2. ENAME
    If we enter the employee number value in the first parameter, second parameter has to show the employee names related to that employee number.
    If we dont enter any value in the first parameter, second parameter shuold show all the employee names in the employee table.
    Could you please help me how to achieve this?
    Thanks
    Kumar.

    Please refer to the link:
    http://www.applikast.net/technical/concurrent-programs/enabling-disabling-concurrent-program-parameters
    if you are on Release 12 please refer to the concurrent program PO: Generate%ASL%Sourcing%Rules%
    There is a good implementation of dependent value sets over there.
    Edited by: Pathfinder on Oct 7, 2011 1:23 AM
    Edited by: Pathfinder on Oct 7, 2011 1:24 AM
    Edited by: Pathfinder on Oct 7, 2011 1:24 AM

  • Validate a value against table validation value set within PL/SQL

    Hi,
    I am trying to import price list lines along with Pricing attribute values.
    I have to validate the uploaded values against the pricing attribute value set, before I import them into base tables.
    Value set defined is of type table validation.
    I wanted to know if there are any public APIs that can be used to validate the value against the Value set values within my PL/SQL procedure
    Also please point me to documentation that lists various public PL/SQL APIs
    Regards,
    Mrutyunjay

    You can find functions and procedure for Value sets in packages FND_FLEX_VAL_API or FND_FLEX_VAL_UTIL.
    Example : get_table_vset_select gives you the select statement of your value set. Executing this statement will allow you to validate your values.

  • Dependancy between 2 value sets

    Hi,
    I have 2 segments in People Group based on 2 value sets and dependent from each other:
    Segment 1- Employee Type: Back Office or Shop
    Segment 2- Commission %: (fnd_number value set)
    My question is: how to set segment 2 mandotry in case employee type is Shop and optional in case we chose Back office
    Thank you
    Elie

    check this out
    http://docs.oracle.com/cd/E18727_01/doc.121/e12892/T354897T361282.htm#I_ex2Dspvalst

  • Creating value set one dependent n another

    Hi,
    I want to create 2 custom value sets XX_PARTY_NUMBER and XX_CUSTOMER_NUMBER
    When i select the value for Party_number from XX_PARTY_NUMBER,
    the corresponding customer_number should populate from XX_CUSTOMER_NUMBER
    This is what i tried
    1ST VALUE SET
    VALUE_SET_NAME -- XX_PARTY_NUMBER
    APPLICATION ---RECEIVABLES
    TABLE HZ_PARTIES
    VALUE-- PARTY_NUMBER
    MEANING PARTY_NAME
    ID-- PARTY_ID
    WHERE_CLAUSE -- ORDER BY PARTY_ID ASC
    2ND VALUE SET
    VALUE_SET_NAME
    XX_CUSTOMER_NUMBER
    APPLICATION -- RECEIVABLES
    TABLE --- RA_CUSTOMERS
    VALUE -- CUSTOMER_NAME
    MEANING -- CUSTOMER_NUMBER
    ID ---
    WHERE_CLAUSE-- PARTY_ID IN :$FLEX$.XX_PARTY_NUMBER
    I'm not getting it correctly.
    Can you help me?

    Try changing the where clause in the second value set:
    WHERE_CLAUSE-- PARTY_ID = :$FLEX$.XX_PARTY_NUMBER
    other than that i dont see any issues.
    Thanks,
    raj

  • How to Change Value set Dynamically for a Parameter in Apps?

    Hi All,
    I have a requirement where i need to change the value set dynamically for a given Parameter. This goes as, I have a Concurrent Program with 4 parameters. First Parameter is mandatory Business group.Second Parameter is Warehouse. Based up on the First parameter the second parameters LoV's are displayed, the third and fourth parameters value sets are dependent up on the Second parameter value. Parameter 2,3,4 Value sets are Table type. So i Used .$FLEX$.Value_setname to retrive the LOV's
    The Requirment now is that if the User doesn't enter the Parameter 2 than the Third Parameter field must be Open and he must be able to enter the Free text. In my case it is an Order Number. If the User enters the paramter 2 value than LOV's for ORder number pertaining to that Warehouse must get displayed. I've figured that this can be possible only if i change the Valuesets Dyanamically. I'm not sure if that is possible or not.
    I have tried :
    Using a Dummy Parameter with a new valueset(Transactable Independent) and giving Y and N based up on Warehouse parameter input.
    SELECT (DECODE ( :$FLEX$.WAREHOUSE_NAMES,NULL,'Y','N')) from dual;
    The default type was SQL.
    Then in the 3rd Parameter i have used Case function to differentiate Y or N. The third parameter being ORder number, is a table type and derived from Oe_order_headers_all.
    In the Query section i tried using dummy parameter value set to retreive the values. I was terribly Unsuccessful in doing so.
    Does the above Case exists or is Doable? Please, Help me out if somone had worked on Similar thing or have any idea of standard report/program using it in Oracle.
    Thanks alot for the Help!

    You will probably have better luck on the eBusinesSuite forum. This is more of a setup issue when defining your LOV and program parameters than it is a SQL or PL/SQL issue.
    http://forums.oracle.com/forums/category.jspa?categoryID=3
    Good luck - this is an aggravating issue to work with and I wish I did have the answer for you!

  • Verify a value against value set

    Hi,
    I am trying to import price list lines along with Pricing attribute values.
    I have to validate the uploaded values against the pricing attribute value set, before I import them into base tables.
    Value set defined is of type table validation.
    I wanted to know if there are any public APIs that can be used to validate the value against the Value set values within my PL/SQL procedure
    Also please point me to documentation that lists various public PL/SQL APIs
    Regards,
    Mrutyunjay

    Hi,
    You can query the fnd_flex_values or fnd_flex_value_segments_vl to find the name of the value set defined.
    Another point is that the Value Set is defined of validation type Table so the values are dependent on the base tables.
    There are no such API's to cater the need for Verfying a Value against a Value Set.
    If u want to search for public API's go to the metalink.
    Regards

  • How to use the :$PROFILE$ token in a table validation value set

    Hi Community,
    Let me explain the scenario.
    We have a Flex Value Set (CLIENTES SERVICIO DIRECTO) with a table validation, included in the PO Headers DFF, which shows a LOV with the Ship-to addressfrom the customer which we want to serve the goods; i.e. we are acting as a commisionists and the supplier puts the goods in the Ship-to address of the customer.
    This Flex Value Set, as I mentioned, have a table validation, with the following validation table information:
    Table Application: Oracle Receivables
    Table Name: RA_ADDRESSES_ALL a, RA_CUSTOMERS b
    Table Columnns: b.CUSTOMER_NAME Varchar2(20), a.PARTY_LOCATION_ID Varchar2(20)
    Where/Order By: a.CUSTOMER_ID = b.CUSTOMER_ID
    Additional Columns: a.ADDRESS1 "Dirección"(20), a.CITY "Ciudad"(10)
    If we translate this to a SQL code:
    select a.address1,
    a.city,
    a.party_location_id,
    b.customer_name
    from ra_addresses_all a,
    ra_customers b
    where a.customer_id = b.customer_id
    and b.customer_id = 6283 <--- This last condition clause is for narrowing the result to the interested customer.
    This select retrive us two records; for the same customer, one of them for one organization_id (let's say 85) and one of them for the other organization_id (84).
    What we are looking for and want is that the LOV, which actually display the two records, shows only the ship-to site of the customer that belongs to the organization_id which belongs the user who queries or creates the Purchase Order.
    I.e. Suppose that we enter to Purchasing using the responsibility assigned to the Operating Unit or Organization_id 84. We want that theLOV only shows the Ship-to Site from the customer that belongs to the Operating Unit or Organization_id 84.
    I believe that we can achieve this using the :$PROFILE$ token, but we do not know how.
    Any ideas?
    Thanks a lot for your answer.

    Hi Rcana,
    We have just test your suggestion and it works. We believe that the correc sentence was fnd_profile.get('profile_name'), but the value feature solve the problem. Thanks for your help.
    Regards.

  • How to add a value set in a custom form in query_find screen in R12 please

    Hello,I need to add a value set fileld found in the fnd_flex_value_set table in a query find screen . How do I proceed please ?
    Do I create a record group followed by a 'LOV' ?
    Thanks.

    Hi;
    For your issue i suggest close your thread here as changing thread status to answered and move it to Forum Home » Application Development in PL/SQL » Forms which you can get more quick response
    Regard
    Helios

  • Problem with Table Value Set

    Hi,
    i have created a Table value Set for showing Vendor_site_code in DFF
    XXXX_VENDOR_NAME
    Table Application :Purchasing
    Table Name:PO_VENDORS
    Value:VENDOR_NAME
    ID:VENDOR_ID
    XXXX_VENDOR_SITECODE
    Table Application :Purchasing
    Table Name:PO_VENDORS PV, PO_VENDOR_SITES_ALL PVS
    Value:PVS.VENDOR_SITE_CODE
    ID:PVS.VENDOR_SITE_ID
    where/order by: where PV.VENDOR_ID=PVS.VENDOR_ID
    XXX_ITEM
    Table Application :IVENTORY
    Table Name:MTL_SYSTEM_ITEMS_B
    Value:PVSSEGMENT1||'-'||SEGMENT2||SEGMENT3
    ID:PVS.INVENTORY_ITEM_ID
    where/order by:WHERE ORGANIZATION_ID = cs_std.get_item_valdn_orgzn_id
    i am facing the below error when opening the Form related to that DFF
    APP-FND-01564: ORACLE error 1722 in FDFGVD
    Cause: FDFGVD failed due to ORA-01722: invalid number.
    The SQL statement being executed at the time of the error was: SELECT PVS.VENDOR_SITE_ID,PVS.VENDOR_SITE_CODE VALUE, PVS.VENDOR_SITE_CODE DESCRIPTION, NVL('N', 'N'), NVL(TO_NUMBER(NULL), -1), NULL, NVL('Y', 'Y'), NVL(TO_CHAR(TO_DATE(NULL), 'J'), 0), NVL(TO_CHAR(TO_DATE(NULL), 'J'), 0) FROM PO_VENDORS PV, PO_VENDOR_SITES_ALL PVS WHERE ( PV.VENDOR_ID=PVS.VENDOR_ID) AND PVS.VENDOR_SITE_ID = :X and was executed from the file &ERRFILE.

    Can you say where have you placed this valueset - which DFF, in which form?

Maybe you are looking for

  • Material BOMs with document items using RCSBI010

    Has anyone uploaded material BOMs with document items using RCSBI010?  I set the item category to D, but receive an error in LSMW when I attempt to convert the data.  The error specifies that the document items are not valid material numbers.  They a

  • Possible to use formulas in chart series data?

    Hello, I need to build chart series from manual values. This is possible but Excel accepts only raw values. When I try to use a calculated value, excel rejects the series format. =SERIES("Supply";(Sheet1!$A$97;Sheet1!$H$47);(Sheet3!$B$10;Sheet3!$B$10

  • Bridge to InDesign Contact Sheet - Define Caption Code for name?

    Hello, Another beginners question, but I promise after this I'm done: I'm using a script written for Bridge CS4 to create contact sheets in InDesign v 5.03. When the dialog window opens in Bridge to set the parameters for outputting the contact sheet

  • Camera RAW for Canon G12?

    Is there currently no support for RAW images from Canon G12 cameras?  I'm not able to view the RAW images from my new G12 camera in Photoshop or Bridge CS5.

  • To trigger  congen_obj_wrt   when any changes  are done in Capgen_obj_wrt

    Hi ,   I would like to know if there is any mechanism to trigger an congen_obj_wrt when changes are made to the organization(capgen) even for change in fields like name1 or address . There is "is contact person of " relationship maintained for the cp