Create Value Set of Table Type

Hi,
Could you provide me a sample program for creating a value Set of Table type.
Thanks
Tim.

Hi,
I was able to create value set (table type) from the System Administrator and attached the value set to the Inventory Kanban DFF Form.
I'm having issue here, value set is created on Custom Table which has data as below :
EX:- Custom table has Item_Num: 101 , Lot_Num: Lot_1 & Item_Num: 102 , Lot_Num: Lot_2
When I go into DFF form in Inventory for item_Num: 101 it should only allow to enter Lot_1 but it is accepting Lot_2 also.
I must be missing some where clause in the value set setup.
Any suggestions?
R12 Version.
Thanks
Tim.

Similar Messages

  • Need help in creating value set

    hi frs,
    i have created report with parameter status and registerd in apps.
    i need create valuet set like having values like below
    approve,
    cacel,
    pending,
    close,
    all
    all should contain values like approve,cacel,pending,close
    how to create value set of this type.
    help pls.
    regards
    rajesh

    Hi,
    For my Report i need to pass 2 parameters 1.From Period 2.To Period
    I created value set what ever u telling like and parameter window i given low high.
    This is because data is in varchar.
    I tryed in some other way using $flex$ am getting error while attaching.
    can you pls help me i need urgent.
    If u need any more information i will send u...
    Thanks in Advance.
    Regards,
    Leelakrishna.G

  • Syntax error when creating a user-defined table type in SQL Server 2012

    Why am I getting a syntax error when creating a user-defined table type in SQL Server 2014?
    CREATE TYPE ReportsTableType AS TABLE 
    ( reportId INT
    , questionId INT
    , questionOrder INT );
    Results:
    Msg 156, Level 15, State 1, Line 1
    Incorrect syntax near the keyword 'AS'.

    Hope these posts could help, 
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/37a45a9a-ed8c-4655-be93-f6e6d5ef44be/getting-incorrect-syntax-while-creating-a-table-type-in-sql-server-2008-r2?forum=transactsql
    Regards, Dineshkumar,
    Please Mark as Answer if my post answers your question and
    Vote as Helpful if it helps you

  • Create Structure with dynamical Table-Type

    Hi experts,
    is there a possibility, to create a structure via SE11 and including there a field which referes to a dynamic table-type.
    So that I can append to this structure-field all different table-types?
    for example: ones I append MARA[] and ones AFKO[]
    Thx for help

    Hi Christian,
    There's not predefined generic type to do that, but you could create your own field type (deep structure) which would be able to keep table lines after transposition (90 degree flip) where in example it would have four columns: Table type, row id(index) field name, value. That way you could store ANY table row you need... This will not come cheap and will involve some work of course.
    You may want have a look at standard ABAP services RRTS and RTTI (see classes and structures used in attributes an parameters) - these are two services for handling data types and metadata related operations during runtime. You may want to use them for flipping your table entries to the tabular form and so on. You may also find some ideas there on how to compose your own data type for your purposes.
    Good luck!
    Marcin

  • Creating value set and restricting values based on operaing unit retrieved

    I am creating a value set to retrieve inventory org's from org_organization_definitions table. I want to restrict the values based on the operating unit i retrieve from profile options.
    How do i write it as a syntax while creating the value set at front end?
    can you help me?

    Hi Ivruksha,
    Thank you for your reply! Here are more details:
    We display the accounting flex for each segment in an ADF application we create. We query Fnd_Flex_Values_Vl to find the possible segment values for each segment. The customer has a use case, in EBS, there are two operating units A and B. Both A and B use the same independent flex value set for a key flex field but they display different segment values based on the given operating unit. We need to replicate this behavior in our form to be able to filter the segment values based on the operating unit.
    We set the MOAC policy context to a single org so it will only show data from the specified org id. But for segment lookup, it still returns the same list of segment values for both operating units.
    - Beibei
    Edited by: user11179792 on Dec 4, 2012 7:32 AM
    Edited by: user11179792 on Dec 4, 2012 7:34 AM
    Edited by: user11179792 on Dec 4, 2012 7:36 AM

  • 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

  • API to create value set with attribute values ?

    Hi
    I was hoping someone might be able to help with this question.
    I am creating a series of value set values using fnd_flex_val_api.create_independent_vset_value and fnd_flex_val_api.create_dependent_vset_value as part of a migration.
    These APIs do not allow you to pass in attribute column values.
    How can you create a value set value which has attribute values populated ? Is there another API does anyone know ?
    Thanks a lot
    Scott

    All APIs are listed in Oracle Integration Repository
    http://irep.oracle.com/index.html
    API User Notes - HTML Format [ID 236937.1]
    R12.0.[3-4] : Oracle Install Base Api / Open Interface Setup Test [ID 427566.1]
    Oracle Trading Community Architecture API User Notes, June 2003 [ID 241320.1]
    Technical Uses of Customer Interface and TCA-API [ID 269121.1]
    Pelase also check below:
    Api's in EBS
    Re: Api's in EBS
    http://sairamgoudmalla.blogspot.com/2009/05/script-to-find-oracle-apis-for-any.html
    API
    Fixed Asset API
    List of API
    Re: List of APIs
    Oracle Common Application Components API Reference Guide
    download.oracle.com/docs/cd/B25284_01/current/acrobat/jta115api.pdf
    List of APIs and open interface R12
    Re: List of APIs and open interface R12
    Regard
    Helios

  • Creating Value set ..

    Hi,
    Am on Apps 12.1.3
    DB 11gR1
    Please any help me two create depndevcy value set.
    Suppoose in value set a - dispalys no of inventory Organization,
    in b it should display sub inventories under that Organization,
    in c - Items in that sub inventories
    in d-vendors for those items ..
    Org : i can get org_organization_definitions the same?
    any one please give me query to achieve the same.
    thanks

    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 assign values into nested table type in plsql

    hi all,
    I feel some what difficult to return user defined types from plsql function and procedures .
    Can any one help me to learn this .
    Version details are as follow
    BANNER
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product
    PL/SQL Release 10.2.0.1.0 - Production
    CORE    10.2.0.1.0      Production
    TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    SQL>
    create or replace type emp_names_nt is table of varchar2(100);
    /* Formatted on 2012/04/05 15:23 (Formatter Plus v4.8.8) */
    CREATE OR REPLACE FUNCTION get_emp_names
       RETURN emp_names_nt
    IS
       CURSOR ec
       IS
          SELECT ename
            FROM emp;
       v_emp_names   emp_names_nt := emp_names_nt ();
    BEGIN
       FOR i IN ec
       LOOP
          v_emp_names.EXTEND ();
          v_emp_names (i) := i.ename;
       END LOOP;
       RETURN v_emp_names;
    END;
    Error :
    PL/SQL: Statement ignored
    PLS-00382: expression is of wrong typeThanks in advance .............
    Thanks,
    P Prakash

    CREATE OR REPLACE FUNCTION get_emp_names
       RETURN emp_names_nt
    IS
       CURSOR ec
       IS
          SELECT ename
            FROM scott.emp;
       v_emp_names   emp_names_nt := emp_names_nt();
       cnt  number:=1;
    BEGIN
       FOR i IN ec
       LOOP
          v_emp_names.EXTEND;
          v_emp_names(cnt) := i.ename;
          cnt:=cnt+1;
       END LOOP;
       RETURN v_emp_names;
    END;
    show errors

  • Value Set Definition pay_us_states

    I need unique values for state_abbrev
    I created value set with validation type as table. I gave table name as pay_us_states meaning I gave as distinct state_abbrev. I got below error
    ORA-00936: missing expression
    select distinct state_abbrev VALUE from pay_us_states where rownum=1 and distinct state_abbrev is NULL
    how to get distinct rows from table?

    When defining a value set, you need to provide the table name and the column names in the drop down lists of the "define value set" form. The only free form entry is the WHERE clause. Take a look at the definition of seeded value set PAY_US_STATE_CODES. You will need to remove the ROWNUM qualifier.
    HTH
    Srini

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

  • How to use Oracle Table Type values in Select Statement.

    Hi,
    I am fetching initial set of values into Oracle Table of Records Type and want to use list of values in the Select statement.
    For example, try something like the following:
    TYPE t_record IS RECORD (
    ID TABLEA.ID%type,
    NO TABLEA.NO%type,
    v_record t_record;
    TYPE t_table IS TABLE OF v_record%TYPE;
    v_table t_table;
    -- Code to populate the values in v_table here.
    SELEC ID,NO, BULK COLLECT INTO <some other table variabes here> FROM TABLEA
    WHERE ID IN v_table(i).ID;
    I want to know how to use the values from Oracle Table Type in the Select Statement.

    Something like this:
    create or replace type t_record as  object (
    id number,
    no number
    CREATE or replace type t_table AS TABLE OF t_record;
    set serveroutput on
    declare
      v_table t_table := t_table();
      v_t1 t_table := t_table();
    begin
      v_table.extend(1);
      v_table(1).ID := 1;
      v_table(1).No := 10;
      v_table.extend(1);
      v_table(2).ID := 2;
      v_table(2).ID := 20;
      SELEC t_record (ID,NO) BULK COLLECT INTO v_t1
      from TableA
      FROM TABLEA
      WHERE ID IN (select t.ID from table(v_Table) t);
      for i in 1..v_t1.count loop
        dbms_output.put_line(v_t1(i).ID);
        dbms_output.put_line(v_t1(i).No);
      end loop;
    end;
    /Untested!
    P;
    Edited by: bluefrog on Mar 5, 2010 5:08 PM

  • 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

  • Value Set whose Data come from customize table with distinct record

    Dear All,
    I am new in Oracle EBS, currently i am creating value set whose data come from customize table which have 40 duplicate record in which distinct column return 27 record .
    Table XX_ROUND_SET
    Columns (Transactions_id,set_record)
    Total Record (40)
    Distinct Record (Set_Record --> 27)
    I just want to show only 27 record in it.
    Thanks
    Rehan

    Hi Rehan,
    PL.IGNORE MY EARLIER UPDATE AND TREAT THIS UPDATE AS YOUR SOLUTION.
    Method 1
    Create the VIEW based on DISTINCT values; use the VIEW for creates the VALUESET.
    Method 2
    Paste the QUERY in TABLE field with alias name, and give the column name (with alias name).
    (in your case )
    TABLE NAME : ( select distinct transactions_id, set_record from XX_ROUND_SET ) Y
    VALUE : Y.transactions_id
    HTH
    Sanjay

  • A way to set table type in MySQL?

    Is there a way to set the table type that Kodo uses in MySQL? I use MySQL 4.0
    and I want to use the Inno DB tables for my tables because they implement and
    enforce true foreign keys.
    TIA
    Robert

    Hopefully we'll get it into 2.5 final.
    Anyone else with some other options applicable?
    On Tue, 27 May 2003 09:08:57 +0200, Robert Simmons wrote:
    Hmm, would be nice to get on the features request list.
    -- Robert
    "Stephen kim" <[email protected]> wrote in message
    news:[email protected]..
    Unfortunately, that is not one of the exposed configuration options... One
    way to work around the problem is to stop Eclipse, edit the
    .metadata/.plugins/com.sol.../pref_store.ini and treat it as a .properties
    file.
    On Tue, 27 May 2003 07:13:33 +0200, Robert Simmons wrote:
    How would this work with the eclipse pluggin?
    -- Robert
    "Patrick Linskey" <[email protected]> wrote in message
    news:[email protected]..
    Yes; whitespace.
    -Patrick
    On Sun, 09 Feb 2003 20:10:02 -0500, Robert Simmons wrote:
    would I just put TableType=innodb in the dictionary properties of the
    Kodo NetBeans module? If so then what would I use for a separator If I
    wanted to describe other properties?
    -- Robert--
    Patrick Linskey
    SolarMetric Inc.
    Steve Kim
    [email protected]
    SolarMetric Inc.
    http://www.solarmetric.com
    Steve Kim
    [email protected]
    SolarMetric Inc.
    http://www.solarmetric.com

Maybe you are looking for