Table Value Set.

Hi All,
1)
I created a Table type value set for concurrent program.
and i want a add one more value to value set, for that im using union clause in Where/order by Field..
ex code:
Where/order by:
where 1=1
union
select 'ALL' name from per_all_positions;
here name is alias. In lov it is not showing any value.
2) For this i created a custom view .
ex code:
create or replace view XXCS_POPUP_VAL_V as
(select 'ALL' fsm from per_all_positions
union
select name fsm from per_all_positions)
order by fsm
I created value set based on custom view , but it is not showing 'ALL' in LOV.
I want include 'ALL' value in LOV.
How can i achieve this..
Thanx in advance..

I'm not sure how come first one with union in where clause is working for you.
Check the link ORA-00907 Missing Right Parenthesis in Value Set
Also I'm not sure why you want to select entire table just to add 'ALL'.
Try the followingCREATE OR REPLACE VIEW xxcs_popup_val_v AS
SELECT 'ALL' fsm FROM dual
UNION
SELECT name fsm FROM per_all_positions;No need of order by when you are using union, as you want to order on first column.
What is the ID and value column you have selected in the Value Set?
By
Vamsi

Similar Messages

  • 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?

  • How to change table value set using FND_LOAD

    Hi ,
    I need to change my existing " table valueset " tablename .
    As i know we cont change it from front end if it is created once. but i am trying to create same value set in other instance and uploading it using FND_LOAD .
    Is it Possible ?
    IF yes please guide ?
    I feel greate if any one helps me.
    Regards ,
    Azam.

    Hi,
    You could use FNDLOAD to download the values, and edit the ldt file before uploading it back using FNDLOAD.
    Search My Oracle Support for "FNDLOAD afffload.lct", you should get couple of hits which should be helpful.
    Note: 252853.1 - 11i AOL : How to Load Value Set Values When Using Fndload To Load A Concurrent Program
    Note: 274528.1 - How To Download Single Context Using FNDLOAD For Descriptive Flexfield
    Regards,
    Hussein

  • Table Value Set Definition - Fetch Error

    I am trying to use a TABLE Validated Value Set based on the value set used in the Accounting Key Flexfield using the following query. When you run the test button in the DFF Table definition, it says that it is succesfully tested.
    SELECT FLEX_VALUE, DESCRIPTION
    FROM FND_FLEX_VALUES_VL
    WHERE FLEX_VALUE_SET_ID=1010305
    order by flex_value
    But when I go to the Oracle form to the respective DFF, it throws the below long error.
    APP-FND-01564: ORACLE error 24345 in fdlget
    Cause: fdlget failed due to ORA-24345: A Truncation or null fetch error occurred.
    The SQL statement being executed at the time of the error was: SELECT FLEX_VALUE, FLEX_VALUE VALUE, DESCRIPTION DESCRIPTION, NVL('N','N'), NVL(TO_NUMBER(NULL),-1), NULL, NVL('Y','Y')
    Can anybody help me, how to get this resolved.
    Regards,

    R12 problem - check the definition of your value set being used. If it is defined as List type "List of Values", then try changing to "Long List of Values". Save and try again. If you don't get the error again, then you probably have a column in the value set that is shorter than the defined table size. For example, description is 50 characters long in the value set, but the table column is 240 characters. If you have data that is longer than 50 characters, you will get this error. But if you change the List type to "Long List of Values", it won't throw the error. I've been trying to get Oracle to figure out the problem, but they just want us to increase the size of the value sets.
    Good luck and let me know if this works for you.

  • Cost Allocation Flexfield with Table Value Sets

    Hi
    I am setting up Costing for Payroll. I have a requirement where I want to use Table Validated value sets for Cost Allocation Flexfield. In the Administrator Guide it is written that we should not use Table validated value sets for any KFFs.
    I still tried the same (defining Table validated value sets) and my process errored out. It was giving following error
    Value 381 for the flexfield segment Cost Center does not exist in the value set
    SJR_COST_CENTER_LIST.
    invalid code combination:
    381SJR_COST_CENTER_LIST is name of the value set.
    Then I changed the value set and keep the code and meaning in the value set table as same and my process worked fine.
    Now I want to know that should I use Table validated value set or not. As Oracle does not support these in KFFs

    Hi Thierry
    Thanks for the reply
    have you used cross validation rules?I am not sure about cross validation rules and how we can use in my case.
    An other thought: there is an action parameter available parameter_name=COST_API_IMODE
    Set the parameter_value = 'Y'In my case my costing process is working fine, even when I define my table validated value sets. My question is should we define table validated values sets or not as Oracle does not support it now? Oracle use to support this for KFFs some time back but now they are saying they does not support.
    Are there any known issues if we use Table validated value sets? Why Oracle does not support it for KFFs?

  • Creation of a Table Type value set with 'ALL' as one of the  value

    Gurus,
    My requirement is to create [table type]value set which would show the [LOV]values in parameter of Conc Progr .
    So far we have three such values to chose from ,they are, 'Frozen', 'Pending' and 'Testing'. I achieved it.
    My question is ,
    if user wants to choose 'ALL' three values , how shall I accommodate it in this table type value set?
    Giving fourth option as ALL, which would eventually select 'ALL' three values 'Frozen', 'Pending' and 'Testing'.
    thanks in advance.
    -sDJ

    You can't have UNION in the value set.
    Try creating a view, which is having UNION with ALL.
    Check the following links.
    Table Value Set.
    ORA-00907 Missing Right Parenthesis in Value Set
    By
    Vamsi

  • How to add one default value in table type value set?

    Hi All
    I have the below requirement:
    Need to display all the organization ids in the parameter for one concurrent program along with one default value of 'ALL'.
    I have created a table value set which picks up the organization name from hr_all_organization_units. But while submitting the program I should also be able to give 'ALL'.
    Any pointer/idea how to achieve this will be highly appreciated!!
    Thanks in Advance!!
    Regards,
    Shashank Mishra

    HI
    i get below error when i change the script 
    PS C:\scripts> C:\Scripts\updatedefaultvalue.ps1
    Cannot index into a null array.
    At C:\Scripts\updatedefaultvalue.ps1:8 char:7
    + IF($i[ <<<< "Title"] -eq $null)
        + CategoryInfo          : InvalidOperation: (Title:String) [], RuntimeExce
       ption
        + FullyQualifiedErrorId : NullArray
    $web = Get-SPWeb http://tspmcwfe:89/
    $list = $web.Lists["test"]
    $item = $list.Items | Where { $_["Name"] -eq "Emc" }
    foreach($i in $items)
    IF($i["Title"] -eq $null)
             $i["Title"] = "test"
           $i.Update()
    adil
    Why are you piping a where in the items? Do you only want to add the "test" to ones matching
    a name?
    If you have ISE installed on your server I recommend you put your code in there and debug it. 
    If this is helpful please mark it so. Also if this solved your problem mark as answer.

  • Value Set Use More Than One table

    folks, is there a way to use more than one table in the value set of type table?

    ok if i want to create a view and then when i'm trying to create a table value set. what application should i be selecting? i have created my view in apps schema. if i look in application object library then i do not see it in the list. So i need to register this view? and i think we could not register the views. We could only register tables in apps.Yes you can -- In the Value Sets form (Edit Information button), you can set the view name in the "Table Name" field, and write a (Where/Order by) condition in the same window.
    Oracle Applications Flexfields Guide -- R12
    http://download.oracle.com/docs/cd/B53825_03/current/acrobat/121flexug.pdf
    Oracle Applications Flexfields Guide -- 11i
    http://download.oracle.com/docs/cd/B25516_18/current/acrobat/115flexug.pdf
    Thanks,
    Hussein

  • Oracle apps value sets

    can any body tell me how to get the distinct values for a table valueset
    from GL_CODE_COMBINATIONS table i want to get the distinct values of SEGMENT2 so any body tell me how to create a table value set for this its very very urgent.
    Regards,
    Azeez
    [email protected]

    Hi
    When u create table value sets
    Table columns-----------
    Value-
    Meaning
    -ID------------distinct(id) from that table
    it will work fine let me know if u ned anything.
    Rakesh

  • API to validate a value against a value set

    I have a 'Table' Value Set based on the MTL_CATEGORIES_V view, and need to validate some loaded data against it to check the loaded values are are valid. Rather than use a cursor to perform a lookup of the value in MTL_CATEGORIES_V, is there an API that can be used instead?
    I thought I'd found something when I discovered "FND_FLEX_VAL_UTIL.is_value_valid", but this seems to just check that a value meets the criteria of the valueset based on the datatype. size, hi-lo range etc, it doesn't check if the value is actually permitted within the set.
    Andy

    Hi,
    you can use fm FM_DOMAINVALUE_CHECK. Pass parameter values for I_DOMNAME and I_DOMVALUE.
    If the value is invalid, exception VALUE_NOT_ALLOWED will occur.
    Regards,
    Klaus

  • 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.

  • 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.

  • Get Row reference in advanced table to set the value of custom column

    Hi,
    I have a requirement to add a new column PHP Amount in Manage Charge page which is a entry page where all the charges are entered for a PO. This region is based on Advanced table.
    As per requirement, Newly created column should populate the value of the existing column (Amount) or vice verse i.e. value entered in amount column should be set to PHP Amount column for a particular row. and the value entered in PHP amount should be stored in the custom table.
    I have added the column via personalization and setting the view attribute in extended controller as this column is not the part of the database table on which the VO is based upon. Also added a  PPR event in process request function in controller. And getting the reference of the row in processForm Request's PPR event and invoking the method defined in my custom AM for getting and setting the columns values . Here i can't extend the root AM as the Page have LOV columns so i have created my custom AM and adding it dynamically in controller.
    Here is the complete code
    Controller Code
    public void processRequest(OAPageContext oapagecontext, OAWebBean oawebbean)
               super.processRequest(oapagecontext, oawebbean);
               OAApplicationModule rootAm = oapagecontext.getApplicationModule(oawebbean);  
                OAApplicationModule nam = (OAApplicationModule)rootAm.findApplicationModule("XXIPCShipmentAMEx");
                 if (nam == null)
                     nam = (OAApplicationModule)rootAm.createApplicationModule("XXIPCShipmentAMEx", "xxipc.oracle.apps.inl.workbench.server.XXIPCShipmentAMEx");
               OAAdvancedTableBean tableBean =(OAAdvancedTableBean)oawebbean.findIndexedChildRecursive("ChargeLinesAdvTable");
               OAMessageTextInputBean phpAmt =(OAMessageTextInputBean)tableBean.findIndexedChildRecursive("XXIPC_PHP_AMOUNT");
               OAViewObject ChargeLinesVO1 = (OAViewObject)rootAm.findViewObject("ChargeLinesVO1");
                phpAmt.setViewUsageName("ChargeLinesVO1");
                if (ChargeLinesVO1 != null)
                    try
                      String l_att= ChargeLinesVO1.findAttributeDef("PHPAmt").toString();
                     catch(Exception exception)
                      ChargeLinesVO1.addDynamicAttribute("PHPAmt"); //Adding ViewAttribute to VO
                ChargeLinesVO1.reset();
                phpAmt.setViewAttributeName("PHPAmt");
               FirePartialAction FireActionA = new oracle.cabo.ui.action.FirePartialAction();
               FireActionA.setEvent("PPR");
               FireActionA.setUnvalidated(false);
               phpAmt.setPrimaryClientAction(FireActionA);
    public void processFormRequest(OAPageContext oapagecontext, OAWebBean oawebbean)
                super.processFormRequest(oapagecontext, oawebbean);
                OAApplicationModule rootAm = oapagecontext.getApplicationModule(oawebbean);
                OAApplicationModule nam = (OAApplicationModule)rootAm.findApplicationModule("XXIPCShipmentAMEx");
                OAAdvancedTableBean tableBean =(OAAdvancedTableBean)oawebbean.findIndexedChildRecursive("ChargeLinesAdvTable");
                OAMessageTextInputBean Amt =(OAMessageTextInputBean)tableBean.findIndexedChildRecursive("Amount");
                OAViewObject ChargeLinesVO1 = (OAViewObject)rootAm.findViewObject("ChargeLinesVO1");
                String rowRef = oapagecontext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
                Serializable[] param ={rowRef};
              // IF PPR event bind with PHPAmount column is triggered
                if("PPR".equals(oapagecontext.getParameter("event")))
                        nam.invokeMethod("PHPAmtPPRAction",param);
              // IF changeChargeAmt event(Standard Event ) bind with Amount column is triggered
               if("changeChargeAmt".equals(oapagecontext.getParameter("event")))
                  nam.invokeMethod("changeChargeAmtPPRAction",param);
    Custom AM Code
    public void PHPAmtPPRAction(String rowRef)
              OARow row = null;
              if (rowRef != null )
                   row=(OARow)findRowByRef(rowRef);
                   if(row != null)
                      Number phpAmt =(Number)row.getAttribute("PHPAmt");
                       if(phpAmt != null)
                              row.setAttribute("ChargeAmt", phpAmt);
      public void changeChargeAmtPPRAction(String rowRef)
            OARow row = null;          
              if (rowRef != null )      
                 row=(OARow)findRowByRef(rowRef);
                 if(row != null)
                     Number chargeAmt =(Number)row.getAttribute("ChargeAmt");                  
                     if(chargeAmt != null)                  
                             row.setAttribute("PHPAmt", chargeAmt );
    I m not able to set the PHP Amount column value entered in Amount column. But i am able to set the Amount column value to PHP amount column.
    I m not getting the Row Reference in case PPR event triggered in PHP Amount column . It is giving Null reference in case of PHP Amount.
    I don't know what i m missing ..Can anyone help me here..
    Thanks in advance
    Renu

    but using second way you will not be able to save those record in database, to save in database you have to override setter method also
    Code will be like this -
        public String getBillRemarks() {
           return getSuppNmTrans(); // This is first Column Value
           // return (String) getAttributeInternal(BILLREMARKS);    }
        public void setBillRemarks(String value) {
           //Setting First Column Value in Second
           setAttributeInternal(BILLREMARKS, getSuppNmTrans());  
    But i suggest you to use valueChangeListener on first field to set value in second one
    Ashish

  • 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.

  • Value set table name in fusion app

    Hi Team,
    Can any one please tell me the table name which is used in fusion app to store the value set name which we create.
    Thanks,Ajay

    Sorry for the confusion, the FND tables are indeed in the OER and the FND_VS_VALUE_SETS can be found there. There is a data issue where content (prior of R8) was in correctly categorized such that its not available under "technology" product family and my query failed since used combination of both criteria. In any case just use "All versions" for the version criteria and the data will be returned. They are internally working to fix the product family for previous releases..
    Jani Rautiainen
    Fusion Applications Developer Relations                              
    https://blogs.oracle.com/fadevrel/

Maybe you are looking for