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

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

  • Info Object: Change of Data Type (NUMC to CHAR)

    We have a scenario wherein one of the Info objects is defined currently as NUMC. Due to the change in the Source system, the info object is now defined with data type as CHAR. The info object in consideration is the "Cost element".
    As the current info object contains data, it will not be possible to change the data type from NUM to CHAR.
    Is there any pre-defined way of doing this data type change without loss of data (in the info object as well as the info cube(s) where the info object is used)?
    Regards
    Bala

    Hi Balakrishana,
       Try this:
    Insted of changing the definition of infoobject(NUMC to CHAR), why cant you change the data itself from CHAR to NUMC...?? If length is same.
       You can write a simple routine in transfer rules and you can convert.
    Hope it Helps
    Srini

  • Can we change the data type of a field based on the value of the field

    HI Gurus,
    My Requirement is as below -- Could you please guide me
    in the Printable Adobe form -- for ex - as usual for dates fields in the Object Pallette the object type is a date/time field  and for quantity/currency fields corresponding fields are taken
    now in case the either the date, quantity or currency is initial in place of displaying 0.00 or empty date we need to display N/A (Not Applicable)
    for this I would like to change the data type of the field
    to put it simply --
    we need to change the data type of date field from DATE&TIME to Char type to hold N/A or  Quantity field to Char field to hold N/A
    how can we realize this in SAP adobe forms
    Thanks in Advace
    Ramchander Rao.K

    Hello Ramchander,
         You cannot change the data type of the field at run time in Adobe forms because the type of field you choose at the time of design level is associated with the data type itself.
    If you want to achieve your requirement, then your main idea should be to set the data type as CHARACTER itself while designing the field in the adobe form itself. CHAR field will comfortably hold the value of Calculation/amount field, Currency field, Amount, Date, Time HHMMSS, Unit Accuracy, Currency key, Floating point number, Numeric text, Client, Language and many other data types.
    After designing the field as TEXT field in Adobe form you have two options.
    Option 1:
    Select the Date field initially as type TEXT field or CHAR field in Adobe forms.
    Suppose the name of the field is TEXTFIELD1, then write the Javascript code on this field in Initialize event as below.
    if ( this.rawvalue == null )
         this.rawvalue = "N/A";
    If the field is not blank, then it will show the date. Else it will show "N/A".
    Option 2:
    Select the Date field initially as type TEXT field or CHAR field in Adobe forms. Do the formatting part in ABAP itself. It will increase the performance. Avoid Javascript as much as possible.
    Suppose you have a DATE variable l_dats of type DATS. Then take another variable l_date of type CHAR. Then write the below ABAP code.
    MOVE l_dats TO l_date.
    IF l_date IS INITIAL.
         l_date = 'N/A'.
    ENDIF.
    Bind the l_date to the TEXT field in the form.
    Even in this case, if the field is not blank, then it will show the date. Else it will show "N/A".
    But I will suggest you to use Option 2 of keeping the AMOUNT, QUANTITY, DATE, TIME fields etc as CHAR or TEXT fields in Adobe form and do the required formatting in ABAP itself.

  • How to Change the data type of infoobject from NUMC to CHAR

    Hi Experts,
    I have created an infoobject with data type as NUMC, i used in DSO as a key figure and i have loaded data up to PSA.
    Now i want to change the data type of this Info Object from NUMC to CHAR.
    Can anyone suggest me the solution for this issue.
    Regards,
    Venu Gopal.K

    Hi pavan/binu,
    I have not loaded data into DSO i just added IO in Key fields and i started editing this IO then im facing error like
    1.Master Data Table /BIC/PZCUSTOMER contains data: Characteristic ZCUSTOMER cannot be activated     
    2.SID Table /BIC/SZCUSTOMER contains data: Characteristic ZCUSTOMER cannot be activated
    Im also unable to edit the P & S tables in SE14.
    NOTE:I have data only in PSA and when im trying to load data to DSO Im facing these issues.

  • How to change the data type in the table ESLL for the field USERF2_NUM ?

    Hello Friends,
    I have a requirement in which one of the change is to convert the data type of the field 'USERF2_NUM' in the table 'ESLL'  from 'QUAN' to 'CHAR'. 
    How do i do it if i have an access to change it..........i think i should also check the impact of the change if done.
    Kindly tell me as my requirement starts with this small change.
    Regards,
    Rajesh Kumar

    Thanks for the reply Sowmya.
    I would like to know 2 things.
    1. Is it ok to change the data type of the field 'USERF2_NUM '  which is in the table ESLL. from quan to char.
    2.  The table ESLL  already has entries. if we change the data type from QUAN to CHAR what is the  effect on the existing entries of the table .
    Kindly reply me back.
    Thanks & Regards,
    Rajesh Kumar

  • Change the Data Type of a Standard Required Field

    Hello Experts,
    Need to know if is it possible to change the data type of a standard field. The field is marked as a required field.
    For example: If a standard field is an Object Picker and I would like to change it to a string field. Is it possible? How can I do it?!
    Many thanks,
    Igor Nakamura

    Hi Igor,
    Since you cannot hide a required field, what you can do is move the standard required field to someplace less noticable (like the bottom of the page) and then use a validation script to set it to some benign value.
    -Howie

  • Activation error while changing the data type of a field of a table

    hi friends,
    i am facing one problem while changing a data type of a field of a table.
    i just created one table(Yqm32) .i have assigned charcter data type to one field(ztotal_count) .now i want to change this charcter data type to numeric data type.
      while changing to NUMC data type activation error is comming as below.
    Table is not yet classified                           
    Field ZTOTAL_COUNT: Type change                       
      ALTER TABLE is not possible                         
    Structure change at field level (convert table YQM32) 
    Check on table YQM32 resulted in errors   
    Table YQM32 could not be activated                       
    (E- Structure change at field level (convert table YQM32)
    plz suggest.i need to change the data type from char to numc.
    Thanks & Regards

    Hi Pabitra......
    From the SE11 change the table as u wanted and then from menubar select
    UTILITIES--> DATABASE UTILITY
    It will open database utility
    there u select the Activate and adjust database button.
    then the database table will get adjusted.
    just try it once.........
    Suresh......

  • Change Cluster Data Type

    I might be asking a really silly school boy question here and to some degree I hope I am but could somebody tell me if its possible to change the data type of a cluster element? Let me explain.
    Here is a screen shot of my code:
    I read back my test data as an array of strings which I convert to a cluster, bundle then send off on its merry way to do other stuff, however the first element in the cluster is actually a path. As you can see I currently unbundle all elements, change the first to a path then re-bundle with the correct data types. Whilst somewhat messy, this used to be acceptable as I only had two other strings in the cluster, however due to expansion I now look at it and think that there must be an easier, more elegant way to do this if I just want to change one element.
    If this is the only way (or at least if no other simpler solution exists) then I could potentially keep the path a a string and do the conversion at the points that require it, however that would now require a bit of re-coding which I would like to avoid if possible.
    Hopefully I'm just not thinking hard enough on this one.
    Cheers for looking
    Mitch 
    Solved!
    Go to Solution.

    I have no idea what the rest of the code looks like and how much you can change so a few options:
    1.  Keep them all as strings, do the path conversion when you actually need the path.  I'll show you the trick I use to convert arrays to nicely labelled clusters below.
    2.  Make the cluster an object, keep the data as a string array and the accessors deal with indexing and path conversion.
    3.  Make the cluster hierarchial, separate the path and have a second cluster which is all strings. 
    4.  If you want you can jigger the string array and use some flatten and unflatten action.
    The top of the snippet is one way to jigger the string array to get a path for the first element in a flat cluster (should wire seamlessly to the rest of your code).  The lower code shows how I would convert a string array to a cluster so the labels are useful, same idea works for clusters which are given useless labels such as those from Array to Cluster.  (Fixed sized clusters with brown wires are easier to handle, simply Type Cast to the cluster with the same types and appropriate labels).
    Judging from your original post, you know when and how to Type Def the various clusters I show.

  • Problem regarding change of data type x to data type c

    Hi,
    Is there any way to change the data type x to data type c.
    w_end_record             TYPE x,
    SPLIT i_data_file AT c_delimiter INTO i_ekko-rtype
                                                i_ekko-ebeln
                                                i_ekko-bsart
                                                i_ekko-lifnr
                                                i_ekko-loekz
                                                w_end_record.
          macro_append_internal_table i_ekko.
    When I do syntax check in ECC6.0 it's showing the error "w_end_record"  must be Character type(C,N,D,T).The error is due to Unicode.
    I was using the class CL_ABAP_CHAR_UTILITIES but I am not able to find out appropriate attributes for it. Can anybody tell me the solution to resolve the problem.
    Is there any other to solve the problem.
    Thanks & Regards
    Prabhat

    Hi,
    Try following this peice of code.
    TYPES: BEGIN OF TAB_TYPE,
             TEXT(10)   TYPE C,
             XTEXT(160) TYPE X,
           END OF TAB_TYPE.
    DATA: TAB    TYPE STANDARD TABLE OF TAB_TYPE,
          WA_TAB TYPE TAB_TYPE.
      CONVERT TEXT TAB-TEXT INTO SORTABLE CODE TAB-XTEXT.
    Hope it works.
    Thanks,
    Sandeep.

  • Can't change column data type

    Hi, i am using Sybase IQ 16.0
    I have created a table, when I want to change one of the data type for a column for example from char to varchar, the list box is grey color and not allow me to change.
    Right click table > Properties > Columns > Data Type
    I have granted all permission for dba, but still not able to edit. (please see the attached file)
    Any help?
    Thanks.

    Hi Nelson.
    You can not change the datatype of an existing column.
    The doc reference is here: Altering Tables
    "After you create a column, you cannot modify the column data type. To change a data type, drop the column and recreate it with the correct data type."
    If you already have data in the column, you can try this:
    create the new column with a slightly different name
    copy the data in to the new column
    drop the original column
    rename the new column to the old column's name.
    --Kirby

  • Changing Chart Data Types

    Hi,
    I know this is a stupid question, but I can't figure for the life of me
    how to do it. I want to create a histogram, so I stick a waveform chart
    onto my VI. Fine, now I found the Moving Histogram PtByPt.vi example
    (ships with LabView 7). It creates a histogram and the data it sends to
    it is a cluster. This is very convenient because you just wrap your XY
    data up into a cluster and send it into the chart. Right now I can cut
    and paste the chart from this example, but if I didn't have the example
    I'd create a waveform chat, create my cluster with my xy data and pass
    it in. However, LabView complains about bad data types, because the
    default input data type is a 2D array of doubles. HOW DO I CHANGE THE
    DATA TYPE THE CHART ACCEPTS? I've been through every menu and property
    that I can think of, what's the secret? I've had this problem happen a
    couple of times and usually gotten around it by right clicking my lead
    and then picking to create something from a list and when it's created
    it's created with the right data type. However, it doesn't have that
    option in this situation. So what do I do? I've included a junk of my
    code for you to see if you want.
    Thanks for any help,
    Chris
    Attachments:
    Coincidence_v1.vi ‏53 KB

    You've got two different types of graphs. You have the XY graph wired to the cluster and you have a regular (not XY) graph. The regular graph does not accept the same type of input as the XY graph. It accepts a 1D  x array, 2D array (multichannel) a waveform data type, an array of waveforms (multichannels), and a cluster that contists of a y array, x0, and dx (essentially a waveform data type)

  • The output of my mathscript node is not changing the data type ?

    hi
    iam attaching my .vi iam having problem that my math script function is not changing it data type in its output
    iam uisng labview 2009
    what reason it will be?/
    thanks
    Attachments:
    mathfunct.zip ‏4 KB

    First off, there is a dedicated mathscript forum that might be better to get your problems answered. (I see if I can have this thread moved from the LabVIEW board, else you can re-post over there.)
    I see the same problem that (1) the outputs have no datatype and (2) all datatypes are greyed out, so they cannot be selected manually. (The input is trivial, just wire something and it will adapt).
    I am not a text programmer, but I suspect that there is something wrong or incompatible with your code. I have not looked at the statements. Is this copied from an existing matlab program, for example?
    LabVIEW Champion . Do more with less code and in less time .

  • Change of Data type in Fuction Module

    Hi,
       I have a Function Module XYZ and it contains field Custline of datatype char30.
       Now I want to change it to Char65 i.e  Character type with 65 length. I get a Error message stating that Type Char65 does not exist whereas when i check in se11. I can see that data type.
    Thanks in Adv

    HI all I found out that there is an include program in which all the Data type for that Function module is present, However it states that
      THIS FILE IS GENERATED BY THE FUNCTION LIBRARY**
      NEVER CHANGE IT MANUALLY, PLEASE!**
    DATA ORG_XY TYPE CHAR30.
    Then how to go about Changing it, Its a Remote Function Call.

  • How to change the data type of an item in administrator

    Hi,
    A summary folder was created. One of the item in the summary folder is a sum. That sum item was created in the business area (based on another item). I can't refresh that summary folder because it gives me an oracle error (Ora-12008 and Ora-01401 the value is too large for the column). The column that this item is based on is of data type Number(13). How can I fix this problem without changing the column's data type of the original table? I already tried altering the data type in the EUL table via TOAD.
    Thanks!

    You really don't need to sum the item before hand if you are going to create a summary!

Maybe you are looking for

  • How to find out which class/method is calling System.gc

    Hi I am seeing frequent FULL GC and not able to locate which particular class/method is calling the System.gc(). I have disabled it using -XX:DisableExplicitGC and performance issues have been resolved. Also, I noticed that it does not happen periodi

  • RVCA01

    Experts, I am doing Subsequent Delivery free of charge with ref to Order. When trying to save the order (SDF) there was error in pricng procedure. The error was solved by going to OVKK assing the Document procedure as C and customer procedure as 1 an

  • Calling two BAPIs in the sequence in same transacon

    Hi , I am caling Two BAPIs in a sequnce in MII Transaction. I am using Jco Interface for this. My first Bapi is getting called and for second bapi call , I am etting the following error. Problem retrieving JCO.Function object: Function [] not found.

  • Strange activity with regular weekly clone backup.

    This morning I tried to make a regular clone backup of my internal HD (320 GB). "About This Mac" shows I have used about 46 GB on the Internal HD. My DataBackup (ProSoft Engr) reported failure several times because of trying to backup more than 300 G

  • Uploading iweb site to network solutions

    Hello all, I have created a website with iweb09 and i have uploaded files, pages and everything works fine. When I make changes i usually just upload the files or folders that have been updates after publishing the changes to the local hard drive. My