DESCRIBE FIELD t001 LENGTH anz_fe in   which mode ??

Hi all,
I am in Unicode Project. For the statement mentioned below, i have to use IN Character mode or IN BYTE mode ??
DESCRIBE FIELD t001 LENGTH anz_fe
Thanks in Advance.
Sriram

data: l_type type c,
l_number type i.
describe field t001 type L_TYPE components L_NUMBER.
Message was edited by:
        Muthurajan Ramkumar

Similar Messages

  • Problem with DESCRIBE field-symbol statement?

    Hi
    I havw written following querry but it's showing error. My doubt is there any resctriction field symbols in DESCRIBE query.
    i wrote
    describe field <a> type typ  length in character mode.
    Is that syntax correct?

    When you use the Describe statement with the field symbols, it will do the describe on the field which was assigned to it.
    Like:
    FIELD-SYMBOLS: <fs> TYPE ANY.
    DATA: l_char TYPE char10.
    l_char = 'TEST'.
    ASSIGN l_char TO <fs>.
    DATA: l_len TYPE i.
    DESCRIBE FIELD <fs> LENGTH l_len IN CHARACTER MODE.
    write: / '<fs>:', <fs>.
    WRITE: / 'Length', l_len.
    Here descirbe gives the property of the L_CHAR because it was assigned to field symbol <FS>.
    Regards,
    Naimesh Patel

  • Unicode error in statement Describe Field

    Hi,
    There is a statement in my program which is giving Unicode error.
    DESCRIBE FIELD t_mara-mfrpn LENGTH len.
    Here t_mara is internal table with header line. Unicode error which I am getting is 'In Unicode, Describe Length can only be used in Byte mode or IN....'.
    Kindly let me know how to remove this unicode error without affecting the functionality.
    Regards,
    Rajneesh

    syntax check always finds the error when the addition BYTE or CHARACTER MODE is missing in the statement DESCRIBE.
    And it will not cause any impact in functionality of your program

  • An error message using DESCRIBE FIELD

    DESCRIBE FIELD MAKT-MATNR LENGTH MNR_LNG .      
    that line off code gives me an error message:
    In Unicode, DESCRIBE LENGTH can only be used with the IN BYTE MODE or IN CHARACTER MODE addition.
    can anyone else provide me an explanation and solution..thanks

    Hello,
    You want to have the length of the field MAKT-MATNR. Then you can use the function STRLEN.
    DATA:
    MNR_LNG TYPE I.
    MNR_LNG = STRLEN(MAKT-MATNR).
    Else as suggested you have to use the addition IN CHARACTER MODE with DESCRIBE FIELD.
    Depends on your requirement.
    Hope this helps !!
    BR,
    Suhas

  • Describe field

    Hello,
    I have to process flat file coming from external system. I need to check if  starting  from position 30, length 14 we can find
    14-teen characters long entry.
    I tried with describe statement but it gives always 14 in "ilen" field , even  when I have only two characters value in tmp_lt_quant+wf_index(14).Please see code below
    data ilen type i.
    wf_index(30)
    tmp_lt_quant+wf_index(14) = 84.
    describe field tmp_lt_quant+wf_index(14) length  ilen in character mode.
    -'ilen' shows 14 , I would expect 2 as 84 has only two characters. Please let me know how I can get number of the characters
    in variable.
    I am working in release 6.00
    Thank you

    Hi Krsto,
    Data : ilen type i,
    wf_index(30),
    lv_char(30) type c.
    tmp_lt_quant+wf_index(14) = 84.
    lv_char = tmp_lt_quant+wf_index(14).
    ilen = strlen(lv_char).
    Thanks,
    Best regards,
    Prashant

  • How do I validate one field's length based on another field's selection?

    I am creating a form for our offices where I need to check one field for length of a serial number based on the answer to a previous field's selection.  Depending on the product selection, the serial number has two different lengths.  Both fields are marked as required, but I want to make sure that we receive the full serial number for our product.  Previous forms were done on paper and instructions were for the last 4 digits only which now we want the full serial number.  One product has a 12 digit number and the other is 6.
    I'm guessing that I need a validation script in the serial number field, but I am not a JavaScript coder and haven't found the right thing when searching.  Any help would be great!
    Thanks!

    Never trust your users to follow what you expect them to do... That often leads to mistakes and problems later on.
    I would reset the s/n field when a selection is made in the drop-down. To do so set the drop-down field to commit the selected value immediately and add code as its custom validation script:
    this.getField("Serial Number").value = "";
    To validate the s/n field you can use something like this as that field's custom validation script (of course, you'll need to adjust the field names and values to match the actual ones in your file):
    event.rc = true;
    if (event.value) {
         var selection = this.getField("Dropdown1").valueAsString;
         if (selection=="1" && event.value.length!=6) {
              app.alert("Error! The s/n must be 6 digits long.");
              event.rc = false;
         if (selection=="2" && event.value.length!=12) {
              app.alert("Error! The s/n must be 12 digits long.");
              event.rc = false;

  • Field name lengths

    The field name lengths in the Citadel database are approaching 80 characters when Citadel adds the total path to each field. I am saving data from a process running on computer #1 to computer #2. I am using OPC and to select the analog input values require an extremely long length to the field names.
    i.e.
    "\\Dispatchbd1\Freq_Process\FreqOPC.'OPC DAQ Items'.'Analog Input'.'PHS Narrow Freq'" is just one of my field names. When you have 75 values in a database that you want to look at this long name gets discouraging. Any help would be appreciated.

    Hi Wapa,
    You are right the names are a bit long. Citadel stores the absolute names (includes computer and process name), to make sure the names are unique. For example if process1 and process2 have both Pot1 and you are storing the data to the same database, unless you log it with a process name and computer name you would get a conflict - (if there is just Pot1 you would not know from which process).
    So, the computer and process parts are always there. The Item name has to be also included, but you have more choise there. The member ('OPC DAQ Items'.'Analog Input'.''PHS Narrow Freq') can be aliased to anything you want (and is valid). Go to the Edit database - select the item in the second window - select the datatype - type in alias (for example item1) - check the log to
    historical database and hit save (you are going to get a warning - don't worry about it, just make sure the alias (item1) you typed is is not already an existing item - because of the folder structure exposed by DAQ OPC you'll be fine).
    Now instaed of using "\\Dispatchbd1\Freq_Process\FreqOPC.'OPC DAQ Items'.'Analog Input'.'PHS Narrow Freq'" you can go with "\\Dispatchbd1\Freq_Process\FreqOPC.item1" - you can stop loggin the original member.
    If you need to go even shorter, you can create an expression object for every member you want to log and then log the expression. Then you get to something like:
    "\\Dispatchbd1\Freq_Process\Exp1"
    I hope this helps.
    Martin

  • Storing a field of length 500 char in a database table

    I want to create a ztable in which I need  to store the data of length more than 256 , so please let me know , how can we create the field of length 500 chars..
    I have tried using STRING and LCHR , but it's not working.
    Thank You,
    Ankur Goyal

    Hi,
    Try creating the field like this
    1. Create a new data element with required description.
    2. While creating data element select 'Built-in type' radio button under Data Type tab. Specify Data type as STRING and press enter. You need not specify Length (or you can provide 500 here, I suggest not to specify field length as it leads to short dump if you enter text more than 500 chars in it).
    Note: Once you press enter you can see an information message 'No length restriction'.
    3. Save and activate the data element.
    4. Use the data element for your text field in your custom table.
    Important:
    The text field with size >255 chars should not be a key field, neither you should select 'Initial values' option while defining field.
    I have tried this and it worked.
    Hope this helps.
    Thanks,
    Venkat

  • Exit for CJO2, Some fields should me only in display mode

    Hi Experts,
    I have to do certain field of CJ02 IN non EDITABLE MODE( Only Display) .
    Please suggest me which user exit can be used ?
    Rgds
    Mohit

    Done, Using Enhancment Points

  • How to extract field name, length, descrip & field type out of repository

    How can I  extract field name, length, descrip & field type out of repository?  Or is it possible?

    Hi Victor,
    To get any info about any field you should know the code of that field that we specify in console while  creating field.
    Using this code you will get property whatever you defined in consloe.
    RepositorySchemaEx repositoryschema= MetadataManager.getInstance().getRepositorySchema(usrCtx);
    where usrctx is usersession context that you create to access yr repository
    FieldProperties fProp = repositoryschema.getField(tableName,fieldCode);
    where tablename is tablecode in which field belong
    field code is code of field that you define in console for that field
    if you check with frop then it will show  the general properties like type etc.
    suppose yr field of type text field then you can acces all properties that is coomon as well that is respective to text type field.
    FixedWidthTextFieldProperties textField = ( FixedWidthTextFieldProperties) fProp
    if you have other field type then that use thta properties . you will get in java api docs on help.sap.com whatever the properties MDM supporting.
    Hope ot helps  you get the solution
    thanks,
    sudhanshu

  • How to display or generate PDF417 barcode dynamically in PDF form? I am using Acrobat XI Professional and there is a Bar Code Field in the same through which I generated the same. But I want to generate the same dynamically.

    How to display or generate PDF417 barcode dynamically in PDF form? I am using Acrobat XI Professional and there is a Bar Code Field in the same through which I generated the same. But I want to generate the same dynamically.

    What do you mean by dynamically? When yo set up a 2D bar code field you specify which field name/value pairs you want to include, along with other parameters. But be aware that they won't work with Reader unless you Reader-enable the document with LiveCycle Reader Extensions and include the bar code usage right. It will work with Acrobat Standard/Pro.

  • Adding 2 new fields as Primary Key field in a Z Table which is existing PRD

    Hi Friends,
    I have to add two new fields as primary key fields in a Z TABLE, which is existing in Quality and Production Systems with Data.
    If I incorporate these two new fields (Primary Key fields) in development and if the TR is moved to Quality and Production sytems, is there any possibility of loss in data will happen at Quality and Prd systems?
    At present, Table is having 20 fields with 2 primary key fields and i have to add 2 more primary key fields.
    I have checked in SCN and not find relevant threads.
    Please help me out.
    Regards,
    Suresh.

    NO . It wont be a problem .
    For ex :
    If you have VBELN  , POSNR are key fields now , you have an unique reord with that combination .
    If you add one other field in it  fo ex  VKBUR  then records will be like this
    VBELN     POSNR     VKBUR   MATERIAL   QTY
    10020      10                            abcxyz      1
    10020      10            1234        abcxyz     1
    So your previous records before adding new primary keys , will have new fields balnk , and the new records will have data filled up in all primary key fields .
    However , if you try to update the existing records that will be in existing PRIMARYKEY combination only .
    for example if you try update record 1 above with VKBUR value 85858 , it creates a new record , it wont be updated in existing record.
    Hope this helps , Pls let me know if u have any more doubts.

  • Database is in which mode

    Hi,
    give me query to check the database is in which mode?.archivelog mode or not.
    Thanks

    user9121291 wrote:
    Hi,
    give me query to check the database is in which mode?.archivelog mode or not.
    Thanks
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> archive log list
    Database log mode              Archive Mode
    Automatic archival             Enabled
    Archive destination            USE_DB_RECOVERY_FILE_DEST
    Oldest online log sequence     291
    Next log sequence to archive   293
    Current log sequence           293
    SQL>HTH
    Aman....

  • DESCRIBE FIELD statement difference between structure & Itab

    Hai ,
    I am trying to read  field attributes using DESCRIBE FIELD satement & I am getting the field type
    in SYDES_DESC-types.
    When I am trying to read the attributes of a structure like the one below,
    data : begin of STRUCT ,
               field1 type c,
               field2 type c,
            end of STRUCT.
    and the table like below,
    data : begin of TAB1 occurs 10,
               field1 type c,
               field2 type c,
             end of TAB1.
    that is ,
    describe field STRUCT in w_sydes_desc.
    describe field TAB1 in w_sydes_desc.
    ( w_sydes_desc is of type sydes_desc).
    my question is,
    for the above 2 stements the table W_SYDES_DESC-TYPES contains same values
    though one is plain structure & another one is internal table with header line.
    can any one tell how can we distinguish between the above fields?
    or is ther any other approach to find wheter a variable is a struct or table?
    Regards,
    Bhaskar M

    Hello,
    describe field STRUCT in w_sydes_desc.
    describe field TAB1 in w_sydes_desc.
    When you use an int. table with HEADER LINE, then TAB1 represents the HEADER LINE & not the entire table body. To access the whole table you have to use TAB1[].
    So you are getting the same results.
    Try this coding:
    TYPE-POOLS: sydes.
    DATA : BEGIN OF struct ,
    field1 TYPE c,
    field2 TYPE c,
    END OF struct.
    DATA:
    w_sydes_desc  TYPE sydes_desc,
    w_sydes_desc1 TYPE sydes_desc.
    DATA :
    BEGIN OF tab1 OCCURS 10,
    field1 TYPE c,
    field2 TYPE c,
    END OF tab1.
    DESCRIBE FIELD struct INTO w_sydes_desc.
    DESCRIBE FIELD tab1[] INTO w_sydes_desc1.
    IF sy-subrc = 0.
    WRITE: 'Hurray !!!'.
    ENDIF.
    BR,
    Suhas

  • Loading amount field of length 22,9

    Hi,
    My requirement is to load an amount field with length 22 and 9 decimal places.
    If it is possible then how ?
    Thanks in Advance

    Not that I know of. Lets wait and see if some body has any tricks up thier sleeves to make this work.

Maybe you are looking for

  • Adobe Bridge CS6 コンテンツとプレビューで色味が違う

    問題の概要 Adobe Bridge CS6 コンテンツとプレビューで色味が違う.プレビュー側の色味に合わせたい. Lightroom5で作成した画像. Lightroom5上の色味.作成した画像をPhotoshop CS6で開いた色味. そしてBridgeのプレビューの色味は同じなのですがプレビューだけ色味が違う. ご利用のコンピュータの種類 Mac Pro (Late2013) トラブルシューティングのために既に実施した手順 以下のものを試しましたが改善しませんでした. Photoshop

  • TS1538 Amazing how Apple always blames Windows!!

    Windows can communicate with the device and I can access photos etc but iTunes can no longer see the device after the latest update!!!! iTunes no longer works with ANY of my Apple devices... iPad, iPhone 4s and iPhone 4!!!

  • 2 - PO process for intracompany drop ship to 3PL.

    Our company has a business process where a purchase order is released to a vendor for a long lead time item.  The vendor is to deliver the product to a 3PL that is set up as a plant in our system.  There are several requirements having heavy influenc

  • Not working correctly, not connecting to ford sync since 3.1.2

    I have a first gen ipod touch and ever since I downloaded 3.1.2, i get a messed up screen sometimes while playing music and my ipod will not connect to my sync in my edge anymore. any tips?

  • Report Related to Installed Base (T.Code IB51and IH20)

    Hello Experts, In IB51 Installed Base Number is generating based up on Header Material Number and Serial Number. and it will be generated based up on both Header Material and Child Data . But my problem is I need to Find the in which Table IBASE numb