Data-type length

Hi guys,
While I creating the characteristic infoobject in datatype lengh.Maximum how much length I can give .

Hi Mahendra,
Check out this blog showing the screen shots of how to increase the infoobject length from 60 to about 240 chars wherever you hav longer descriptions,
/people/sap.user72/blog/2006/05/27/long-texts-in-sap-bw-modeling
Regards,
Mani
Message was edited by:
        Manikandan  A

Similar Messages

  • TIPS(63) : LONG DATA TYPE의 LENGTH 구하기

    제품 : PL/SQL
    작성날짜 : 1999-04-15
    TIPS(63) : LONG DATA TYPE의 LENGTH 구하기
    =========================================
    PURPOSE
    다음은 function 을 적용할 수 없는 long data type 의 length 를
    구하는 방법을 소개한다.
    Explanation
    Long DataType 에 대해 Length 를 구하려 하는 경우 다음과 같은 Error 가 발생한다.
    SQL> create table TOY
    2 (Toy_ID NUMBER, Description LONG);
    Table created.
    SQL> select LENGTH(Description) from TOY;
    select LENGTH(Description) from TOY
    ERROR at line 1:
    ORA-00932: inconsistent datatypes
    "Inconsistent DataTypes" Error 는 LONG DataType 으로 정의된 Column 에
    Function 을 적용하였기 때문에 발생한다.
    VARCHAR2 Type 을 사용하면 정상 처리할 수 있으나, Oracle7 에서는 VARCHAR2 는
    2,000 Characters 만 저장할 수 있으며, Oracle8 에서는 4,000 Characters 이다.
    Oracle8 에서는 Long Data 를 저장하기 위해 LOB DataType 을 사용할 수 있으며,
    LONG Data Type 은 Oracle7/Oracle8 모두 Support 되므로 LONG Type 에 대해
    Length 를 확인하는 방법을 알아본다.
    Example
    다음은 anonymous PL/SQL Block 을 통해 TOY Table 에서 LONG Column 의
    Length 를 구하는 Script 이다.
    1. Single Record 에 대한 예
    $ vi len_long.sql
    declare
    length_var NUMBER;
    cursor TOY_CURSOR is
    select * from TO;
    toy_val TOY_CURSOR%ROWTYPE;
    begin
    open TOY_CURSOR;
    fetch TOY_CURSOR into toy_val;
    length_var := LENGTH(toy_val.Description);
    DBMS_OUTPUT.PUT_LINE('Length of Description: '||length_var);
    close TOY_CURSOR;
    end;
    SQL> set serveroutput on
    SQL> @len_long
    Length of description : 21
    PL/SQL procedure successfully completed.
    2. Multiple Record 에 대해서는 cursor FOR Loop 를 사용한다.
    $ vi len_long.sql
    declare
    length_var NUMBER;
    cursor TOY_CURSOR is
    select * from TOY;
    toy_val TOY_CURSOR%ROWTYPE;
    begin
    for toy_val in TOY_CURSOR loop
    length_var := LENGTH(toy_val.Description);
    DBMS_OUTPUT.PUT_LINE('ID: '||toy_val.Toy_ID);
    DBMS_OUTPUT.PUT_LINE('Length of Description: '||length_var);
    end loop;
    end;
    SQL> set serveroutput on
    SQL> @len_long
    ID: 1
    Length of Description: 21
    ID: 2
    Length of Description: 27
    PL/SQL procedure successfully completed.
    Reference Document
    ------------------

    Hi Frank,
    I have the exact same scenario where I have huge data coming from DB and its a must that I provide pagination.
    I tried implementing as per the document but the pagination is not working for me too.
    Details of the scenario:
    1. I have a session facade method which takes a searchCriteria (custom criteria) as the input parameter and returns a list of entities.
    a)This is the first method that I call as a default method activity in my taskflow.
    b)The result of this method is dragged and dropped as table in the jsff. (*which created a methodIterator in pageDef unlike the documentation which has accessorIterator*).
    2. I declared 2 class level variables
    a) List<Entity> result: which is set once the method in the (1) above is executed.
    b) long size: which is also set from the method (1) above.
    3. I defined getEntityAll(int index,int range) method which returns List<Entity> as per the index and range using the result (class level variable populated by method in 1)
    4. I defined getEntityAllSize() method which returns the size (class level variable populated by method in 1).
    5. I created the datacontrol on top of the session facade bean.
    6. I made sure to change the DataControlHandler = "oracle.adf.model.adapter.bean.DataFilterHandler"
    7. I've set the rangeSize = 25 in my pagedef.
    Now when I run my page, my default method activity calls the method in (1) above and populates the table, with a scroll bar.
    Once I start scrolling, it calls my method in (1) but it does not call either of the methods (getEntityAll(int index,int range) & getEntityAllSize()) which adds the pagination behavior.
    After this, my table has just 25 rows and further scrolling does not invoke any of the methods from the session bean.
    I'm using jdev : JDEVADF_11.1.1.4.0_GENERIC_101227.1736.5923 (11.1.1.4.0).
    Please let me know if I am missing anything.
    Thanks in advance!
    Swapna

  • Change characterestic data type Length

    Hi All,
    Can anyone tell me, how i can change the caracterestic data type length. My characterestic got saved and activated. i can delete and recreate, but i would like to check whether there is any other way.
    Regards,
    Suresh Patipati.

    Hi,
    Unfortunately, a characteristic can be created with a maximum length of 18 characters. The only workaround would be to create an user-defined characteristic of length CHAR18, and then fill it with the first 18 positions of the source field by derivation.
    regards
    Waman

  • Data type & length in SAP side!!

    Hi all,
    i am working in a R/3 -legacy scenario.
    In R/3 side there exist one table called YMD_ARTICLE...
    now i have to make data type based on the 7 fields of that table YMD_ARTICLE..
    and I have given the field name + type(vachar,timestamp,smaal int..etc..)+filed length....in the data type template...
    Now my question is...wat should i give in type ...for the field...
    i min can i use "xsd:string" for every field..... irespective of what given in the template....
    Do we need to declare the lenght,type...for fileds of a DATA TYPE in XI...
    if the DATA type is already there in the R/3 side.....
    Can any one explain me......
    thanks....

    hi,
    >>> i min can i use "xsd:string" for every field..... irespective of what given in the template....
    string can be used to handle other datatypes as well...but try using the same data type as in R/3...
    when u know e.g the value can only be integer then use data type integer... this will also not allow values other than integer to pass...
    hope it helps,
    regards,
    latika.

  • Data Type Length --- Urgent

    Hi,
    Can anyone tell me how bits/bytes is one character... Is there any function module to find out the length of a character / string / any other data types in terms of bits/bytes???
    Regards
    Jiku

    Hi Jiku,
    length of a character depends on your system settings, if the system is running on UniCode (2 Byte) or Non UniCode (1 Byte).
    Length of a string: http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb33d9358411d1829f0000e829fbfe/frameset.htm
    Length of other data type look into DESCRIBE syntax.
    Best regards,
      ok
    Message was edited by:
            Oliver Kohl

  • Key Figure data type/length differs in BI and source system

    Hi all.
    It is a strange question, but we need an explanation to our "strange" client. Why many fields which are DEC 13 in source system became CURR 09 in BI? DEC->CURR type switch seems reasonable, but not the length. I guess the shorter numeric field is the less precise it can keep...
    Does SAP give any explanation for that?

    Hi,
         If you are expecting the data to be aggregated in the cube and if the data is loaded by different requests, then in that case the data wouldnot be aggregated.
    EX:  CHAR1   CHAR2    CHAR3   CHAR4     CHAR5    CHAR6    CHAR7    KF1   KF2   KF3
             A               B              C            D        E              F             G          10     20    30
              A               B              C            D        E              F             G          10     20    30
    sUPPOSE IF THE ABOVE 2 ROWS OF DATA ARE GETTING LOADED IN THE SAME REQUEST, then you can expect the data to be aggregated and the o/p of the KFs will be 20, 40 and 60 respectively.
    In case the loading is done with separate requests, then your data will not be aggregated.
    This is becuse in the cube, Request ID (under the Data Package Dimension)    is one of the dimension and this differs when the requests are different.
    Regards
    Sunil

  • Data type length mismatch -urgent pls

    In the following query i have done a comparision in where clause as follows
    OBJECTID         =   itab2-kdauf
    (char length = 90)  (char length =10)
    it says the error that required same same length.
    how to solve this problem, help me pls, very urgent.
    select OBJECTCLAS
           OBJECTID
           CHANGENR
           TABNAME
           TABKEY
           FNAME
           CHNGIND
           VALUE_NEW
           VALUE_OLD
           from cdpos into corresponding fields of table ipos
           for all entries in itab2
           where tabname = 'VBAP' and
                 fname = 'ABGRU' and
                 OBJECTID = itab2-kdauf.
    Regards
    Rajaram

    Hi Rajaram.
    If the KDAUF has to match with the First 10 characters of OBJECTID then do like this..
    select OBJECTCLAS
    <b>OBJECTID(10)</b>
    CHANGENR
    TABNAME
    TABKEY
    FNAME
    CHNGIND
    VALUE_NEW
    VALUE_OLD
    from cdpos into corresponding fields of table ipos
    for all entries in itab2
    where tabname = 'VBAP' and
    fname = 'ABGRU' and
    <b>OBJECTID(10) = itab2-kdauf.</b>
    <b>Reward if helpful</b>

  • How to save blob data (variable length string) in a customized table?

    Dear Friends
    I have written a very simple program to update table with 2 fields which
    looks as follows.
    ========================================================
    Table name ZTESTBLOBDATA
    Field         Key          Init    Data Element   Data Type  Length  
    ID          Checked                 ZID                 NUMC        2
    BLOB                                   ZBLOB           STRING       0
    =========================================================
    FOllowing is the sample program that I have written (Transaction SE38).
    =========================================================
    REPORT ZTESTBLOBPROG
    TABLES: ZTESTBLOBDATA
    data :  itab like ZTESTBLOPDATA occurs 1 with header line.
    select * from ztestblobdata into table itab.
    ztestblobdata-id  =   sy-dbcnt +1.
    ztestblobdata -blob = 'abcdefghijklmnopqrstuvwxyz.'.
    insert ztestblobdata.
    =========================================================
    When I try to save and activate the program, I get the following
    error message
    'ztestblopdata' must be a flat structure. You cannot use internal
    tables, strings, references, or structures as components.
    ==========================================================
    Using the data type STRING is a must since it is a variable length
    data which varies from few characters to few gig.
    How can go around this problem.
    Any feedback will be highly appreciated.
    PS. I have checked old postings on SDN, spoken to my ABAP contacts and also couple of instructors from SAP when I took XI courses but didn't get a satisfactory answers.
    Edited by: Ram Prasad on Oct 15, 2008 12:28 PM

    Thanks a lot for the response.
    The string that we are getting is from another application via netweaver XI integration and is being sent as a string which has to be saved in an SAP table. I am not sure if IDOC option will suit our needs, but will definitely read more about it.
    If there is any other suggestion of feedback I would appreciate it a lot.;
    Tks
    Ram

  • Data type could be same base on source table for blank column

    We have an employee table as mentioned structure.
    EMPNO NUMBER(4),
    ENAME VARCHAR2(10),
    JOB VARCHAR2(9),
    MGR NUMBER(4),
    HIREDATE DATE,
    SAL NUMBER(7,2),
    COMM NUMBER(7,2),
    DEPTNO NUMBER(2)
    I want to create a view base on the same/exact structure data type-length. So is there any way we can define Data type while creating view.
    Actually, I need to create a view base on above structure but only want to get deptno and sum of salary column from emp table and rest of column will remain blank.
    Thanks

    Something like this???
    CREATE OR REPLACE VIEW v_tmp AS
         SELECT NULL empno,
                NULL ename,
                NULL job,
                NULL mgr,
                NULL hiredate,
                sal sal,
                dept_no
           FROM employees
       GROUP BY dept_no;
       Cheers,
    Manik.

  • Data Type change.

    Hi Expert.
    Please help me,   I have create Z table here create one Field like Below.
    APPROVED_STATUS
    CHAR
    1
    0
    Source
    then i was change pre-define data type length CHAR 1 to 10. as below
    APPROVED_STATUS
    CHAR
    10
    0
    Source
    Now When We save data through program 10 char is saved properly.
    Problem : When I Use SE16N t-code for changes related field data. At that time only 1 char inserted.
    Also Use SE14 for Regenerate Table Structure. but Result is none.
    Thanks & Regards.
    Pradip Patel.

    Hi Sachin Dandekar.
    I have already do this and also check Z table is Active.
    but result none.
    Thanks.
    Pradip Patel.

  • Checking table columns and data type before inserting

    I have some data coming from different sources and want to insert the data from those files into multiple tables.
    Before inserting the data I like to perform a check on data type, length, null etc so that I can avoid errors at the time of insert. If there is any problem with the data then I do not want to perform the insert and report the problems.
    Thanks

    If you have 10gR2 (10.2.0.4) you could use DML_ERROR_LOGGING.
    Read about it here, see the examples: http://tkyte.blogspot.com/2005/07/how-cool-is-this.html
    In short: it avoids errors during your transactions, afterwards you know which records failed and why.
    It's more or less the same functionality:
    your goal:
    check before transactions and avoid the insert of 'bad' records. (extra code, extra maintenance, more chance of bugs)
    dml_err_logging:
    insert 'bad' records during transaction automatically into a dedicated error table including error message.
    Edited by: hoek on Mar 24, 2009 6:56 PM

  • What is the maximum length of LONG data type in Forms 6i?

    What is the maximum length of LONG data type in Forms 6i?

    Do you mean the maximum size of a LONG that Forms 6i can display or the maximum size that can be stored in the database which sits behind your Forms application?
    Regards, APC

  • Length in creation of data type

    Hi Experts,
      I have one doubt regarding field length.i will get data from proxy(ECC) through status field and it would be a 25 character.
    i have created a status field as data type in my proxy source structure  .
    could you please suggest do i need to create a status field with length 25 if yes where is the option length to be extended in datatype creation
    it would be appreciate if u people give me the answer
    thanks,
    Bhaskar

    >
    bhaskar yenneti wrote:
    > Hi Experts,
    >
    >   I have one doubt regarding field length.i will get data from proxy(ECC) through status field and it would be a 25 character.
    >
    > i have created a status field as data type in my proxy source structure  .
    >
    > could you please suggest do i need to create a status field with length 25 if yes where is the option length to be extended in datatype creation
    >
    > it would be appreciate if u people give me the answer
    >
    > thanks,
    > Bhaskar
    Are you on XI3.0/Pi 7.0 or PI 7.1?
    if its XI3.0/Pi 7.0, then note that XI doesn't validate the length of the data/field even though the option is there.
    http://help.sap.com/saphelp_nw04/helpdata/en/b2/439347ce019848bf3ad9c000d414c3/content.htm
    Else if you are on PI 7.1, you can expect validation.

  • Report - Want to know the maximum length of a character Data Type.

    Hello,
           I have to print some details which is having more than 500 characters. Is it possible to create a variable or workarea with more than 256 characters? Please help me. Its very urgent.
    My actual requirement is to pass this workarea to smartform and print. So the data should be in one work area.
    Regards,
    LIJO

    Hi,
    U can declare the variable of required length for eg.1000 characters like this
    DATA: w_data(1000) TYPE c.
    If u r not sure of how much length u will be getting then better declare the variable with data type string .
    DATA: w_data TYPE string.
    Hope this clarified ur doubt.
    thanks,
    Vinod.

  • Adding days (Numeric , Length 3) to a date of DATS data type

    Hi ,
    I need to add T052-ZTAG1 to BSID-ZFBDT to get the early payment discount date . But ZTAG1 is NUMC and LENGTH is 3 where as data type of ZFBDT is DATS. The result date will be dats format . Please suggest.
    Thanks ,
    Baishali
    Moderator Message: Basic date question. Thread locked.
    Edited by: Suhas Saha on Oct 20, 2011 2:53 PM

    Hi ,
    First check to whcih value you have to add this field  T052-ZTAG1 .Like if you want to add to days ,months or years.Then offset the date field and add this value .

Maybe you are looking for

  • No continuous play in iTunes

    Recently, when I'm in iTunes, I cannot get it to do continuous play in playlists or otherwise. It just plays one song and then stops. If I hit the fast forward button, the song stops. The songs are all checked, so that is not the problem. I've restar

  • How to get dates with respect to System Date?

    Hello, I am trying to get Date value after 30 days of my System current date. I am using System.out.println(new java.util.Date(System.currentTimeMillis()+30*3600*24*1000)); but I am not getting correct date. Suppose my system date is 15July then afte

  • Send to color from FC timeline

    Color does not appear in list of send to options when I click in the timeline of Final Cut Pro. It does appear in the "send to" list accessed from the top of the screen. Any idea why?

  • Problem in Rmi in machine with two IP local & internet

    I am having problem in Rmi in machine with two interfaces local & internet i.e.. if I set property java.rmi.server.hostname+ to the one with internet ip address using System.setProperty() I can not access Rmi through local LAN if I do not set the pro

  • Import/Export uses odiparam.bat for work/master Repository

    When I do a import/export, the command appears to use the odiparam.bat file to pickup the work/master repository connections. This makes sense for the export, but the import has an optional parameter for the work repository. From what I can tell, thi