Maximun length of name

Hello Gurus,
        will you please telll the maximun length of name for following object in SAP BW?
Datasource ,  Extractor, Extract structure ,  Infoprovider /infoobject/OHS, process chain Technical name, process chain Description, View , process variant .
Many thanks.

Hi,
It is 60 chars. You may check the following by pressing F1 at the filed while entering name.
I hoe it will help.
Thanks,
S

Similar Messages

  • Help to modify length of an attribute

    Hi friends,
    AppsR12.
    I need to modify the lenght of an attribtue in a standard page.
    The attribute is a text column in a VO. As I can see there are two attributes that are in relation with that:
    - Maximun length (xml attribute=maximunLength). It's 30
    - length (xml attibute = columns). It's 25
    The idea is to modify length to increase it from 25 to 30
    I this I have to do it extending processRequest in the VO, but.... how? How can I set a property in the VO?
    Thanks,
    Jose L

    Hi Anoop,
    its an attribute of a VO.
    But it's possible to see it as I explained above in the xml....
    I'm having doubts now.. about AK attributes.. are they only for prompts?.. well, at least in this case...
    The page where is my item is : BasicInformationPG.xml (in /oracle/apps/pa/project/webui/)
    AK region is: PA_PROJ_BASIC_INFORMATION
    Attribute to modify length is Name (project Name)
    This field has a maximum length of 30, but display on screen has 25 as length...
    Thanks
    Jose.

  • HOW TO CHANGE LENGTH ATTRIBUTE OF AN STANDARD ITEM?

    we need to set appropiate "display" lenght to an item (VO attribute) in a standard OAF page.This item has maximum length=30 but length (to display)=25 . This is not acceptable for our customers because they can't see the complete value of the item
    To see the item (Project Name):
    Project Manager resp.--> Project List
    Choose a Project.
    CLick on Setup Page
    There, it appears project information. One of the items is Project Name (Name).
    As I said before, this item has maximun length =30 but displays only 25 characteres wide in the "box". Most of items have the same number in both of their properties, but not this.
    How could we change it?
    (of course respecting standards)
    Page is : BasicInformationPG.xml
    it is in /oracle/apps/pa/project/webui
    I'm trying to see where to modify the attribute length while I'm extending the VO.
    I mean:
    I create in JDeveloper a VO (ProjectBasicInfoVO) extending the original.
    I edit VO and go to Attributes... and I see that "Type" property for "Name" attribute is VARCHAR2(30). But.. 30 is not the number of characters we can see in the screen... so How could I change the "length" property of "Name" attribute while extending the VO?
    Please, provide detailed steps. Sorry, I don't see so easy as you say ...

    OAF questions should go into the OAF forum.
    In general you can use the UI control hints for the attribute to set its display width.

  • In ODSI 10gR3 fn:string-length() not pushing down to db (SR: 7714015.993)

    Under ALDSP 2.5, the following XQuery...
    where string-length($medacf) = 0 or $medacf = $acf/column_name
    ...used to generate this SQL:
    where ((? = 0) OR (? = t1."COLUMN_NAME"))
    However, under ODSI 10gR3, the where clause is missing. Here's the query plan:
    <?xml version="1.0"?>
    <FLWOR>
    <return>
    <elementConstructor name="UserGroup" tip="{ld:PhysicalLayer/UserProfile/UserGroup}UserGroup">
    <elementConstructor field="(0)" name="UserID" from="$f7815">
    </elementConstructor>
    <elementConstructor field="(1)" name="GroupID" from="$f7815">
    </elementConstructor>
    </elementConstructor>
    </return>
    <where sqlstop="Unable to generate SQL for XQuery expression: Cannot generate SQL for the function {http://www.bea.com/xquery/xquery-operators}integer-equal with parameters (Parameter,INTEGER), (Constant,INTEGER). There is no equivalent SQL for this function in general or with these particular parameter kinds/types. ">
    <operator ns="op" name="boolean-or" tip="{http://www.w3.org/2004/07/xpath-operators}boolean-or">
    <EQ sqlstop="Cannot generate SQL for the function {http://www.bea.com/xquery/xquery-operators}integer-equal with parameters (Parameter,INTEGER), (Constant,INTEGER). There is no equivalent SQL for this function in general or with these particular parameter kinds/types. " tip="{http://www.bea.com/xquery/xquery-operators}integer-equal">
    <operator ns="fn" name="string-length" tip="{http://www.w3.org/2004/07/xpath-functions}string-length">
    <variable name="__fparam0" kind="EXTERNAL">
    </variable>
    </operator>
    <constant>
    <![CDATA[[integer 0]]]>
    </constant>
    </EQ>
    <EQ tip="{http://www.bea.com/xquery/xquery-operators}string-equal">
    <variable name="__fparam0" kind="EXTERNAL">
    </variable>
    <variable name="(2)" from="$f7815" kind="extracted">
    </variable>
    </EQ>
    </operator>
    </where>
    <for name="$f7815">
    <source ns="fn-bea" name="UsrProfDataSource" sqlwarning="Generated SQL query does not have a WHERE clause. This may cause the query to take longer to finish and use excessive memory resources." kind="relational" tip="UsrProfDataSource">
    <![CDATA[SELECT UPPER(t1."USER_ID") AS c1, t1."GRP_ID" AS c2, t1."USER_ID" AS c3
    FROM "USRPROF"."USER_GRP" t1]]>
    </source>
    </for>
    </FLWOR>

    We have found that in ODSI 10gR3, the code pattern below is not pushed down if $logicalExpression is an expression that compares two atomic values and one of the values is a constant (used to work in ALDSP 2.5):
    where $logicalExpression or $table/column = $input
    Sample code that is not pushed down as expected:
    where fn:string-length($accountNumber) _<= 0_ or $account/ACCT_NUM = $accountNumber
    where fn:empty($accountNumber) or $accountNumber _= ''_ or $account/ACCT_NUM = $accountNumber
    where fn:empty($clientId) or $clientId _= 0_ or $account/CLIENT_ID = $clientId
    where fn:empty($effectiveDate) or $effectiveDate _= xs:date('0001-01-01')_ or $account/ACCT_EFF_DT = $effectiveDate
    We have also found that a workaround is to tweak the code and replace $logicalExpression with something that can be pushed down and functionally equivalent (using fn:not, fn-bea:fence, fn:exactly-one, etc.).
    Code that works:
    where fn:not(fn:string-length($accountNumber) > 0) or $account/ACCT_NUM = $accountNumber
    where fn-bea:fence(fn:string-length($accountNumber) <= 0) or $account/ACCT_NUM = $accountNumber
    where fn:exactly-one(fn:string-length($accountNumber) <= 0) or $account/ACCT_NUM = $accountNumber
    After examining the query plans, it appears to me (please correct me if any of these is not true):
    - Comparators for atomic types ({http://www.bea.com/xquery/xquery-operators} integer-less-than-or-equal, string-equal, date-equal, etc.) are not pushed down if they are used to compare anything with a constant
    - An "or" operation ({http://www.w3.org/2004/07/xpath-operators} boolean-or) is not pushed down if any of its operands cannot be pushed down
    - fn:not, fn-bea:fence, and fn:exactly-one can be pushed down even if their operand cannot be pushed down
    So the question is, why comparators are not pushed down when constants are involved? Is this a bug?
    Thanks!
    -r.

  • Length of vendor

    how can we increase the lenght of vendor

    Hi Prem,
    You can increase the length of name field: LFA1-NAME1 by going to se12 giving going to LFA1 database table in chnage mode & incresing the length from 35 to 60 e.g. But this requires access key.
    Dont increase the lenght unless very important.
    Also look at below link:
    http://help.sap.com/saphelp_45b/helpdata/en/35/b0ec5787a62488e10000009b38f9b7/content.htm
    Hope this helps.
    Please assign points as way to say thanks

  • User input; how to account for unlimited names typed in

    So, I finally figured out how to write a program that, given the input of three names, can replace any one of the given names with anything the user wants.
    My problem is that it only works for three names, and apparently, my professor wants the program to work for as many names as the user puts in (ie, a user can input 10, 100, 5000 names, and the program will replace any one of those names with anything else).
    I have no idea in the world how to do this. How can you extract the name "pieces" from the user-inputed string?
    Help is GREATLY appreciated!
    Here is the code for the three-name-only program, but I don't know if it can be modified.
    import java.util.Scanner;
    public class Rename
    public static void main(String args[])
    Scanner in = new Scanner(System.in);
    String name, first, middle, last, space;
    space = " ";
    System.out.print("Type your whole name: ");
    name = in.nextLine();
    first = name.substring(0, name.indexOf(space));
    name = name.substring(name.indexOf(space)+1, name.length());
    middle= name.substring(0, name.indexOf(space));
    last = name.substring(name.indexOf(space)+1, name.length());
    System.out.print("Which part don't you like? ");
    String dlike = in.nextLine();
    System.out.print("What should it be changed to? ");
    String rep = in.nextLine();
    String kirt, john, bob;
    kirt = first.replace(dlike, rep);
    john = middle.replace(dlike, rep);
    bob = last.replace(dlike, rep);
    if (dlike.equals(first))
    System.out.println("New name: " + kirt + space + middle + space + last);
    else if (dlike.equals(middle))
    System.out.println("New name: " + first + space + john + space + last);
    else
    System.out.println("New name: " + first + space + middle + space + bob);
    }

    Do you have to read in within the program using Scanner? If not, then you could also just let the user submit the names using the args[] array in your main method. This way the names automatically come in a array as long as necessary with all the names.
    Just to clarify:
    User types: java Rename John Bob Roger Whoever
    And in your program:
    public static void main(String[] args){
        // args now contains "John", "Bob", "Roger", and "Whoever"
        // do all your stuff
    }

  • DB name shortening algorithm probably needs more sophistication

    Hi,
    I think it might be wise to come up with a more sophisticated way to
    shorten the names when the class names and field names are too long. I
    ran into the following situation with a class called
    "AttributeCollection" with a HashSet field called "attributes". The
    elements of attributes are instances of "Attribute" a simple persistent
    class with a "name" and "value" string. Changing the field name to
    "set" fixed it. The only reason that I found the problem relatively
    easily is that I remembered observing the shortening algorithm (snip) in
    another harmless case.
    David Ezzio
    Yankee Software
    E:\MyCode>kodoschematool -action refresh
    Refreshing schema for type "class
    com.ysoft.jdo.attributes.AttributeCollection" and known subclasses...
    CREATE TABLE ATTRIBUTECOLLECTION_ATTRIBUTEX (ATTRIBUTESX NUMBER, JDOIDX
    NUMBER)
    CREATE INDEX ATTRIBUTECOLLECTION_ATTRIBUTEX ON
    ATTRIBUTECOLLECTION_ATTRIBUTEX (ATTRIBUTESX)
    CREATE INDEX ATTRIBUTECOLLECTION_ATTRIBUTEX ON
    ATTRIBUTECOLLECTION_ATTRIBUTEX (JDOIDX)
    java.sql.SQLException: ORA-00955: name is already used by an existing
    object
    E:\MyCode>kodoschematool -action refresh
    Refreshing schema for type "class
    com.ysoft.jdo.attributes.AttributeCollection" and known subclasses...
    CREATE TABLE ATTRIBUTECOLLECTION_SETX (SETX NUMBER, JDOIDX NUMBER)
    CREATE INDEX ATTRIBUTECOLLECTION_SETXSETX ON ATTRIBUTECOLLECTION_SETX
    (SETX)
    CREATE INDEX ATTRIBUTECOLLECTION_SETXJDOIDX ON ATTRIBUTECOLLECTION_SETX
    (JDOIDX)
    CREATE TABLE ATTRIBUTECOLLECTIONX (JDOIDX NUMBER NOT NULL, JDOLOCKX
    NUMBER, JDOCLASSX VARCHAR2(255), PRIMARY KEY (JDOIDX))
    Refreshing schema for type "class com.ysoft.jdo.attributes.Attribute"
    and known subclasses...
    CREATE TABLE ATTRIBUTEX (JDOIDX NUMBER NOT NULL, JDOLOCKX NUMBER,
    JDOCLASSX VARCHAR2(255), NAMEX VARCHAR2(255), VALUEX VARCHAR2(255),
    PRIMARY KEY (JDOIDX))

    Hi,
    I had the same problem about a month ago. Patrick Linskey suggested in his post from 12.09.01 "Re: Schematool problem" to "use the 'table' class-level extension in
    your system.jdo file". But this didn't seem to work, so I shortened the name of the class to fix it.
    Here is Patricks original post:
    Martin,
    As Joe Mannerling pointed out earlier, the problem that you are seeing
    is related to a bug in Kodo's table name generation algorithm. In
    order to keep table and column names below database limits (Oracle,
    for example, has a 30 character limit), Kodo truncates names to this
    length. Unfortunately, it performs this truncation after assembling
    the name, so if a class name is over a certain length, then name
    conflicts such as those that you are seeing will arise.
    We are working on a better name generation algorithm to resolve this
    problem. In the mean time, use the 'table' class-level extension in
    your system.jdo file:
    <?xml version="1.0"?>
    <jdo>
         <package name="de.mediateam.quizmaster.data">
              <... snip ...>
              <class name="Question">
                   <field name="prerequisites">
                        <collection element-type="Question" />
                   </field>
              </class>
              <class name="TextQuestion" persistence-capable-superclass="Question" />
    <!-- change this section -->
              <class name="MultipleChoiceQuestion"
    persistence-capable-superclass="Question" >
                   <extension key="table" value="MCQuestionX"/>
    </class>
    <!-- end changes -->
              <class name="BooleanQuestion" persistence-capable-superclass="Question" />
              <... snip ...>
         </package>
    </jdo>
    Thanks, and good luck.
    Cheers
    Martin
    On Thu, 18 Oct 2001 08:44:11 -0400, David Ezzio <[email protected]> wrote:
    Hi,
    I think it might be wise to come up with a more sophisticated way to
    shorten the names when the class names and field names are too long. I
    ran into the following situation with a class called
    "AttributeCollection" with a HashSet field called "attributes". The
    elements of attributes are instances of "Attribute" a simple persistent
    class with a "name" and "value" string. Changing the field name to
    "set" fixed it. The only reason that I found the problem relatively
    easily is that I remembered observing the shortening algorithm (snip) in
    another harmless case.
    David Ezzio
    Yankee Software
    E:\MyCode>kodoschematool -action refresh
    Refreshing schema for type "class
    com.ysoft.jdo.attributes.AttributeCollection" and known subclasses...
    CREATE TABLE ATTRIBUTECOLLECTION_ATTRIBUTEX (ATTRIBUTESX NUMBER, JDOIDX
    NUMBER)
    CREATE INDEX ATTRIBUTECOLLECTION_ATTRIBUTEX ON
    ATTRIBUTECOLLECTION_ATTRIBUTEX (ATTRIBUTESX)
    CREATE INDEX ATTRIBUTECOLLECTION_ATTRIBUTEX ON
    ATTRIBUTECOLLECTION_ATTRIBUTEX (JDOIDX)
    java.sql.SQLException: ORA-00955: name is already used by an existing
    object
    E:\MyCode>kodoschematool -action refresh
    Refreshing schema for type "class
    com.ysoft.jdo.attributes.AttributeCollection" and known subclasses...
    CREATE TABLE ATTRIBUTECOLLECTION_SETX (SETX NUMBER, JDOIDX NUMBER)
    CREATE INDEX ATTRIBUTECOLLECTION_SETXSETX ON ATTRIBUTECOLLECTION_SETX
    (SETX)
    CREATE INDEX ATTRIBUTECOLLECTION_SETXJDOIDX ON ATTRIBUTECOLLECTION_SETX
    (JDOIDX)
    CREATE TABLE ATTRIBUTECOLLECTIONX (JDOIDX NUMBER NOT NULL, JDOLOCKX
    NUMBER, JDOCLASSX VARCHAR2(255), PRIMARY KEY (JDOIDX))
    Refreshing schema for type "class com.ysoft.jdo.attributes.Attribute"
    and known subclasses...
    CREATE TABLE ATTRIBUTEX (JDOIDX NUMBER NOT NULL, JDOLOCKX NUMBER,
    JDOCLASSX VARCHAR2(255), NAMEX VARCHAR2(255), VALUEX VARCHAR2(255),
    PRIMARY KEY (JDOIDX))

  • How to Compare Data length of staging table with base table definition

    Hi,
    I've two tables :staging table and base table.
    I'm getting data from flatfiles into staging table, as per requirement structure of staging table and base table(length of each and every column in staging table is 25% more to dump data without any errors) are different for ex :if we've city column with varchar length 40 in staging table it has 25 in base table.Once data is dumped into staging table I want to compare actual data length of each and every column in staging table with definition of base table(data_length for each and every column from all_tab_columns) and if any column differs length I need to update the corresponding row in staging table which also has a flag called err_length.
    so for this I'm using cursor c1 is select length(a.id),length(a.name)... from staging_table;
    cursor c2(name varchar2) is select data_length from all_tab_columns where table_name='BASE_TABLE' and column_name=name;
    But we're getting data atonce in first query whereas in second cursor I need to get each and every column and then compare with first ?
    Can anyone tell me how to get desired results?
    Thanks,
    Mahender.

    This is a shot in the dark but, take a look at this example below:
    SQL> DROP TABLE STAGING;
    Table dropped.
    SQL> DROP TABLE BASE;
    Table dropped.
    SQL> CREATE TABLE STAGING
      2  (
      3          ID              NUMBER
      4  ,       A               VARCHAR2(40)
      5  ,       B               VARCHAR2(40)
      6  ,       ERR_LENGTH      VARCHAR2(1)
      7  );
    Table created.
    SQL> CREATE TABLE BASE
      2  (
      3          ID      NUMBER
      4  ,       A       VARCHAR2(25)
      5  ,       B       VARCHAR2(25)
      6  );
    Table created.
    SQL> INSERT INTO STAGING VALUES (1,RPAD('X',26,'X'),RPAD('X',25,'X'),NULL);
    1 row created.
    SQL> INSERT INTO STAGING VALUES (2,RPAD('X',25,'X'),RPAD('X',26,'X'),NULL);
    1 row created.
    SQL> INSERT INTO STAGING VALUES (3,RPAD('X',25,'X'),RPAD('X',25,'X'),NULL);
    1 row created.
    SQL> COMMIT;
    Commit complete.
    SQL> SELECT * FROM STAGING;
            ID A                                        B                                        E
             1 XXXXXXXXXXXXXXXXXXXXXXXXXX               XXXXXXXXXXXXXXXXXXXXXXXXX
             2 XXXXXXXXXXXXXXXXXXXXXXXXX                XXXXXXXXXXXXXXXXXXXXXXXXXX
             3 XXXXXXXXXXXXXXXXXXXXXXXXX                XXXXXXXXXXXXXXXXXXXXXXXXX
    SQL> UPDATE  STAGING ST
      2  SET     ERR_LENGTH = 'Y'
      3  WHERE   EXISTS
      4          (
      5                  WITH    columns_in_staging AS
      6                  (
      7                          /* Retrieve all the columns names for the staging table with the exception of the primary key column
      8                           * and order them alphabetically.
      9                           */
    10                          SELECT  COLUMN_NAME
    11                          ,       ROW_NUMBER() OVER (ORDER BY COLUMN_NAME) RN
    12                          FROM    ALL_TAB_COLUMNS
    13                          WHERE   TABLE_NAME='STAGING'
    14                          AND     COLUMN_NAME != 'ID'
    15                          ORDER BY 1
    16                  ),      staging_unpivot AS
    17                  (
    18                          /* Using the columns_in_staging above UNPIVOT the result set so you get a record for each COLUMN value
    19                           * for each record. The DECODE performs the unpivot and it works if the decode specifies the columns
    20                           * in the same order as the ROW_NUMBER() function in columns_in_staging
    21                           */
    22                          SELECT  ID
    23                          ,       COLUMN_NAME
    24                          ,       DECODE
    25                                  (
    26                                          RN
    27                                  ,       1,A
    28                                  ,       2,B
    29                                  )  AS VAL
    30                          FROM            STAGING
    31                          CROSS JOIN      COLUMNS_IN_STAGING
    32                  )
    33                  /*      Only return IDs for records that have at least one column value that exceeds the length. */
    34                  SELECT  ID
    35                  FROM
    36                  (
    37                          /* Join the unpivoted staging table to the ALL_TAB_COLUMNS table on the column names. Here we perform
    38                           * the check to see if there are any differences in the length if so set a flag.
    39                           */
    40                          SELECT  STAGING_UNPIVOT.ID
    41                          ,       (CASE WHEN ATC.DATA_LENGTH < LENGTH(STAGING_UNPIVOT.VAL) THEN 'Y' END) AS ERR_LENGTH_A
    42                          ,       (CASE WHEN ATC.DATA_LENGTH < LENGTH(STAGING_UNPIVOT.VAL) THEN 'Y' END) AS ERR_LENGTH_B
    43                          FROM    STAGING_UNPIVOT
    44                          JOIN    ALL_TAB_COLUMNS ATC     ON ATC.COLUMN_NAME = STAGING_UNPIVOT.COLUMN_NAME
    45                          WHERE   ATC.TABLE_NAME='BASE'
    46                  )       A
    47                  WHERE   COALESCE(ERR_LENGTH_A,ERR_LENGTH_B) IS NOT NULL
    48                  AND     ST.ID = A.ID
    49          )
    50  /
    2 rows updated.
    SQL> SELECT * FROM STAGING;
            ID A                                        B                                        E
             1 XXXXXXXXXXXXXXXXXXXXXXXXXX               XXXXXXXXXXXXXXXXXXXXXXXXX                Y
             2 XXXXXXXXXXXXXXXXXXXXXXXXX                XXXXXXXXXXXXXXXXXXXXXXXXXX               Y
             3 XXXXXXXXXXXXXXXXXXXXXXXXX                XXXXXXXXXXXXXXXXXXXXXXXXXHopefully the comments make sense. If you have any questions please let me know.
    This assumes the column names are the same between the staging and base tables. In addition as you add more columns to this table you'll have to add more CASE statements to check the length and update the COALESCE check as necessary.
    Thanks!

  • Line length  in UTL_FILE

    HI.. sorry for basic question but....
    1- I want to create a file from database.
    2- The length of lines to append to the file is 1300
    3- when I try to close the file or make fflush to the file
    (write lines into the file), exception utl_file.write_error
    is fired.
    4- when the length of the line is 750 (i,e) that's not occurs
    WAY???
    What is te maximun length for the line to append???
    May be concern of Operating System variable??
    THANK's and excuseme for my regular english.
    JOHNNY

    1) Read about utl_file.put (tells you the line max)
    2) Doc for the rest of UTL_FILE
    http://technet.oracle.com/docs/products/oracle9i/doc_library/901_doc/appdev.901/a89852/utl_fi11.htm#1001590
    http://technet.oracle.com/docs/products/oracle9i/doc_library/901_doc/appdev.901/a89852/utl_file.htm#1002119

  • Field length 2000 characters

    Experts, I have a field which has 2k characters. The business does not want to display 2k characters at once for a report which has 100 records as it would throw the UI off. Does anybody know of any way so as to display less characters and then if the user clicks/hover on that column, the full 2k characters display or a pop up comes up.
    thx,
    parag

    Hi Prag,
    You have to create two reports (Main Report, Drill through Report).
    Open your main report then select your field column then click--> FX then apply the below statement .
    1. case when length(field name )>100 then cast(your field name as varchar(40)) || cast ('...' as varchar(3)) else your field name end
    2. Crate navigate report like below.
    Select your field name then give to is prompted in drill through repot then apply drill through report navigation to main report (have you written case statement of above column).
    Note: Change to instead of field name to your column name.
    Hope this help's
    Thanks,
    Satya

  • Find length of  a particular field.

    Hi,
    I am new in ABAP. So Please guide me how to find out the length of a particular field and also give the function name with example.
    Ram Shanker

    Hi RAM,
    DESCRIBE FIELD
    Syntax
    DESCRIBE FIELD dobj
      [TYPE typ [COMPONENTS com]]
      [LENGTH ilen IN {BYTE|CHARACTER} MODE]
      [DECIMALS dec]
      [OUTPUT-LENGTH olen]
      [HELP-ID hlp]
      [EDIT MASK mask].
    Effect
    This statement determines several properties of the data object dobj and assigns them to the specified variables. The various additions enable you to determine the data type and the number of components for structures, the length used in the memory, the number of decimal places, the output length, the name of the data type for a reference to a data element of the ABAP Dictionary, and a possible conversion routine.
    Notes
    You can specify field symbols or formal parameters in procedures for dobj to determine the properties of the data object they represent at the time of the statement execution.
    The statement DESCRIBE is used to determine the properties of data objects of elementary data types. When DESCRIBE is used for structures or data objects of deep data types like strings, internal tables, or reference variables, you can only determine elementary properties. Further details, for example, the static or dynamic type of a reference variable cannot be determined using DESCRIBE. For this kind of information, you can use the type classes of Run Time Type Services (RTTS). They enable you to determine all properties of data objects of all data types.

  • How to break the name column into first,middle,last

    hi,
    Having a column in a table called employee_name which is
    containing the names of employees like:-
    employee_name
    Syed Azhar Husain
    Also having another table having cloumns first_name,middle_name, last_name
    I just want to write the query that break my employee_name column into
    first name, middle name, last name and
    store into table columns first_name, middle_name, last_name respectively
    i.e. it should display like
    first_name middle_name last_name
    Syed Azhar husain
    I am using oracle9i database.
    Thanks in advance
    Azhar

    Dear Asuri,
    Thanks for quick reply,
    your query was working fine when there was one record into the table but when there was more then one record into the table it was giving error "ORA-01427: single-row subquery returns more than one row". So i did small modification in the query as below
    SELECT SUBSTR(' ' || name || ' ', INSTR(' ' || name || ' ' , ' ', 1, rn) +1,
    INSTR(' ' || name || ' ' , ' ', 1, rn + 1) - INSTR(' ' || name || ' ' , ' ', 1, rn) -1) name
    FROM test , (SELECT ROWNUM rn FROM all_objects
    WHERE ROWNUM <= ( SELECT distinct(LENGTH(name) - (LENGTH(REPLACE(name, ' ')))) / LENGTH(' ') + 1
    FROM test ))
    order by name
    so above query is working fine with more than one record but there is another problem as i am explaining blow
    Suppose there is table called "test" as follows
    SQL> select * from test;
    NAME
    Rajendra kumar jain
    syed azhar husain
    Chander Shekhar Kumar
    when i am putting above query it is giving result as follows
    NAME
    Chander
    Kumar
    Rajendra
    Shekhar
    azhar
    husain
    jain
    kumar
    syed
    my requirement is that for complete full name like 'syed azhar husain' it should give
    name
    fist name : syed
    middle name: azhar
    last name: husain
    first name: rejendra
    middle name: kumar
    last name: jain
    first name: chander
    middle name: shekhar
    last name: kumar

  • Set variables with data of varying lengths?

    I am sending data collected from a CVP application back to ICM in the array variable user.microapp.FromExtVXML(0).  Now I want to parse the data and put it into ECC Variables.  I can do all this but one issue:  how do I handle data that can have varying lengths?   For example, the first piece of data is an account number which can either be 7 or 10 digits.  Each piece of data is separated by a comma, so if I could extract using that as a separator, it would be ideal.
    Here's an example to show you what the data looks like from the ECC:
    1234567,1,G,Smith,Mary
    =Account # (can be 7-10 digits), Authentication Flag (always 1 digit), Tier (always 1 digit), Last Name (varied length), First Name (varied length)
    Appreciate your help on this.
    Walter

    The way I usually do these complicated parsing operations is to simply use Call Tracer to send a dummy call through a test script. Have a SET node that sets up a test string into PV1 - say "Account=1234567,Flag=1,Tier=G,Last=Smith,First=Mary" (stay under 40) then feed it into a SET node that sets another PV using a formula, then have an IF node that tests the value of the PV against the expected result. No need to make a real call. Then keep fiddling with the formula in the SET node until you get it to sing and dance.
    Once you understand how the if(), find(), after() etc functions all work and your SET node is working, you can easily turn it into a custom function and then try the custom function again with Call Tracer.
    This is way faster than actually making calls through CVP. Many script writers try to develop the whole enchilada rather than taking the easy way out with Call Tracer.
    Regards,
    Geoff

  • Whats the maximum length array and why?

    Whats the maximum length array and why?
    I tryed to search the forum but most people was wondering about the maximun length of a String..

    for(int i =20;i<=32;i++) {
         try {
              int[] p = new int[(int)Math.pow(2,i)];
              pause(2000); // So that gc doesn't clean away the array before
                              // The OS memory manager gets to update.
              System.out.println("Paused! i: " + i);
         } catch(OutOfMemoryError e) {
              System.out.println("Ex!!");
              pause(10000); // Same sa before.
    void pause(int p) {
         try {
              Thread.sleep(p);
         } catch (Exception e) {}
    }I worte this little code to test this.
    It runs to 2^23 for me.
    I am running
    AMD Athlon, 512 DDR, Windows 2000 SP4
    java version "1.5.0-beta2"
    Java was using 42116 Kb RAM and 54632 Kb Swap when its at 2^23

  • Does it has some method to set Max Length on Field!

    I want to set a maximun length on textfield and jtable cell to control the number of character on the field.
    do you have any way?
    thanks!

    aaaaalmost, quizmaster.
    But your code doesnt check the result size.
    If offs = 100 and maxlength = 100, it would
    allow any String to be inserted.
    Anyway...is a detail of course.
    one other possibility, also improveable:
    public class CharacterLimitedDocument extends PlainDocument
      private int maxNumberOfCharacters = 64;
      public CharacterLimitedDocument(int maxCharacters )
        super();
        this.maxNumberOfCharacters = maxCharacters;
      public void insertString(int offs, String str, AttributeSet a) throws BadLocationException
        if( this.getLength() + str.length()  < maxNumberOfCharacters )
           super.insertString(offs,str,a);
    } // CharacterLimitedDocument

Maybe you are looking for