Type of X equals which data elements or data type

Hi ABAP Experts,
I declareted variable type of X in my program.
(Example TYPES: BEGIN OF T_XML_LINE,
         DATA(1024) TYPE X,
       END OF T_XML_LINE.)
But I want to create structure with SE11 Tcode in my program. But I dont know Type of X equals which data elements or data type and length.
Thanks for help.

Hi,
You can use the below data type in data dictionary
RAW:   Uninterpreted byte string, maximum length of 255 in tables
LRAW: Uninterpreted byte string of any length, but has to be declared with a minimum length of 256
RAWSTRING: Uninterpreted byte string of variable length
Regards
Praveen

Similar Messages

  • Error while Adding Profit Center Data element to Data Model of MDG-M

    Hello gurus,
    Can any one help me in adding profit center filed (Data element) to zztable, basically want to use the Data Element (PRCTR).
    Getting error" There is an attribute with data element assigned that refers to a check table. Besides the client, the check table can only have one key field that corresponds to the attribute.
    Regards,
    Mandapati

    Hi Mandapati,
    looks like you are assigning data element in existing attribute or you are assigning data element more than once.
    Try to create a new attribute and then assign the Data Element (PRCTR).
    Go to General Settings-> Data Modeling-> Edit Data Model.
    Select your datamodel( note that it should be MDGM data model. For MDG the MDGM data model is called MM. We can only add pre-delivered SAP ERP material master database field to an MDGM entity as an attribute)
    Select the entity types and then the attributes subdialog.
    Create a new attribute and assign a data element. The system then derives the properties, field labels for the attribute
    Regards
    Goutham Kanithi

  • How to use Reference type of Data Element

    Hi guys, is there anyone could give me a trace how to use reference type of data element.
    More details i'm going to reach is:
    I create 2 tables:
    eq.
    1. table ZFIRST has field X with data element ZFX (Data element i declared).
    2. table ZSECOND has field Y.
    Here at field Y (second table) I'm going to declare a new data element say it ZFY, but in ZFY I'm going to use the data element as i declared before (ZFX). Is it possible if I do it using reference type data element (SE11)?
    I already did this way, but I got error :
    Field Y: Reference ZFX to class w/o interface cannot be used in DB table ZSECOND
    What does it mean?. Did I miss something about using reference data element type?.
    This error occurs when I activate ZSECOND table. However in creating ZFY (reference) to data element ZFX, there is no error occur.
    The point is I need to RE-declared existing data element and ot put existing data element(ZFX) to my current table (ZSECOND).
    Any helpful will be highly appreciated.
    Thanks.
    Edited by: dinivian dondi on Nov 4, 2010 8:30 AM

    Field Y: Reference ZFX to class w/o interface cannot be used in DB table ZSECOND
    What does it mean?. Did I miss something about using reference data element type?.
    Apparently system doesn't allow you to type a transparent table field with deep type. This refers to references and tables types as components. The RDBMS (Relational DB Management System) cannot interpret this componenets correclty and mapp them to TABLEs in DB.
    So I am affraid you won't be able to type table component with reference to other data element.
    The point is I need to RE-declared existing data element and ot put existing data element(ZFX) to my current table (ZSECOND).
    Sorry but I don't get it, could you please explain this more clearly. Maybe then we can think of some workaround for you.
    Regards
    Marcin

  • Doubt in data element creation

    Hi,
        I have doubt in data element creation ie, there is 2 options elementary type
    (domain and built-in-type) and reference type (name of the reference type &
    ref to predefined type). if there is built in type here then what is the use of
    built-in-type in initial screen of the table and also explain me about the use of
    reference type.
    with regards,
    nanjunda sharma

    Hi!
    With the use of the built-in type, you have to set always in every different data element the exact type.
    With the use of the domains (pre-defined types) you just have to enter the domain name into the data element. If you have to modify the type, you can maintain it in the domain (only once) but the built in types have to modifyed in every data element (which means more work).
    Domains have a little more options also, than the built in types.
    Regards
    Tamá

  • Idoc type provided by ECC to hold all project data

    Hi All,
    Please provide me the Basic Idoc type and message type provided by ECC which hold all project data like WBS Elements Info, Network & Activity info.
    Thanks,
    Suresh

    Hello,
    Please check if Basic Type PROJECT01and Message Type PROJECT suits your requirement.
    BR/Yogesh

  • Data element change

    Hi
    I have created a custom table and created a data elemnent of type NUMC.
    It has reached production . The table entries are created in production.
    Now the users want to change the data element to char.
    if the data element is changed from numc to char and released to production ,w ill the existing entries will be deleted ??
    reg
    Ramya

    Hi Ramya S  ,
    You have created a data element of type NUMC, which means some field in ur table has data type NUMC right? And now users want it to be CHAR right?
    Well definitely this field must be used in some program right?
    You have 2 ways :
    1)  You can change the data element, the entries won't get deleted. But yes slight change in format will take place, like preceding zeros will be seen in character format as per the length on the field defined...well thats because different data types have their own features.
    2)  Another way is keep the data element same as NUMC.
    and you can change the data type of the field which you are using, in the code itself.
    For Example : You have a field value a of type numc defined in table.
    when defining internal table to use this field...u will as usual define it and it wud be in NUMC datatype.
    then you can declare another variable b of type char of specific length and then assign a to b.
    E.g.:
    Table : EMPLOYEE
    Field  :EMPLOYEE_NO                
    Data Element  : ZEMP_NO
    Data Type : NUMC
    In Code :
    Declaring Internal Table ***
    Data : Begin of itab,
                 employee_no  TYPE employee-zemployee_no,
              End of itab.
    Variable of type CHAR ***
    Data : employee_no_new(10) TYPE c.
    Assigning old value to new variable ***
    employee_no_new  = itab-employee_no.
    now all the values will have properties of data type CHAR. You can even send it to production...won't give any problems...
    I have just given an example...you can try this for the feld you have created. Hope this helps you.
    If any more doubts, do revert
    Regards,
    Radhika
    Edited by: RadhikaS on Mar 25, 2009 6:18 PM

  • Data: stru_tab type ref to data? what data refers to?

    Dear friends,
                         Relatively iam new to WDA. can u please explain me below statement.
    data: stru_tab type ref to data.

    Actually there are not really any Web Dynpro sepecific data types.  The ones mentioned are simply data dictionary data types that are defined for use with WD, but can be used in any ABAP applications.  You should start your research with just ABAP data types.  Look in the ABAPDOCU transaction or search the keyword documentation for DATA. There is lots of documentation on the ABAP native data types.
    Here is a little bit of it:
    Predefined ABAP Types
    The table below shows the predefined ABAP types. Additional attributes can be found under value ranges and initial values.
    Type Length Standard length Description
    b 1 Byte   1 byte integer (internal)
    c 1 to 65,535 characters 1 character Text field
    cursor as i as i Database cursor
    d 8 characters   Date field
    f 8 bytes   Floating point number
    i 4 bytes   4 byte integer
    n 1 to 65,535 characters 1 character Numeric text
    p 1 to 16 bytes 8 bytes Packed number
    string variable   Text string
    s 2 bytes   2 byte integer (internal)
    t 6 characters   Time field
    x 1 to 65,535 bytes 1 byte Byte field
    xstring variable   Byte string
    These types are predefined in every ABAP program.
    All predefined ABAP types in this table are elementary.
    Apart from the types b and s, the predefined ABAP types can also be used to define your own data types and data objects and for typing. The types b and s cannot be specified directly in ABAP statements. Self-defined data types and data objects in ABAP programs are of the data type b and s if they are defined with reference to data elements to the ABAP Dictionary which are of the external data types INT1 or INT2.
    The predefined data types string and xstring describe data objects of variable length (dynamic data objects). While the length of data objects in all other elementary data types is determined for its whole lifetime, the length of text and byte strings varies according to their content (the maximum size of a string is determined by profile parameter ztta/max_memreq_MB, see Maximum size of dynamic data objects).
    The program-globally predefined data type cursor is currently synonymous with the predefined ABAP type i. This is required for the declaration of a cursor variable for database cursor handling.
    All predefined ABAP types for which a length interval is specified in second column in the table are generic, which means that the length is not part of the type description. For the type p, the fractional portion is indefinite as well as the length.
    The entries in the standard length column specify the length that is used for the corresponding generic data type when declaring data objects, if no explicit length is specified in the relevant statement.
    In Unicode systems, the length must either be specified in characters and bytes. In non-Unicode systems, the length of a character is one byte, but in Unicode systems the length of a character depends on which Unicode character representation is used.
    Generic ABAP Types
    The following table shows the predefined generic ABAP types. A generic data type is an incomplete type specification that includes several complete type specifications. The generic types can be used for the typing of field symbols and formal parameters. The only generic type that can be used for typing of data references is the predefined type data. The predefined generic type for object references is object. When a data object is assigned to generically typed field symbols using the statement ASSIGN, or to a formal parameter in procedure calls, the system checks whether its concrete data type is a of the generic type, or is compatible with it.
    Type Description
    any Any data type (suitable for any type)
    any table Internal table of any table type
    c Text field of generic length
    clike Character-type (c, d, n, t, string and character-type flat structures); in non- Unicode programs also x, xstring and any flat structures
    csequence Text-type (c, string)
    data Any data type
    hashed table Hashed table
    index table Index table
    n numeric text of generic length
    numeric Numeric (b, i, p, f, s)
    object Any object type (root class of the inheritance hierarchy)
    p Packed number of generic length and generic number of decimal places
    simple Elementary data type including structured types with exclusively character-type flat components
    sorted table Sorted table
    Standard table Standard table
    table Standard table
    x Byte field of generic length
    xsequence byte-type (x, xstring)
    The genric types clike, csequence, numeric,simple, and xsequence are available as of release 6.10.
    Notes
    The generic type any currently has the same effect in typing as the generic type data. When declaring references, any cannot yest be specified after REF TO. Generic data references (REF TO data) or generic object references (REF TO object) are possible. The generic type object can currently only be specified after REF TO.
    Except for the built-in generic types illustrated in the table above, there are at the moment no self-defined generic types in ABAP with only one exception: A table type defined with TYPES - TABLE OF or defined in the ABAP Dictionary without completely specifying the table key, is also generic.
    Predefined Types in the ABAP Dictionary
    The following table lists the predefined types in the ABAP Dictionary. These types cannot be used directly in ABAP programs, and are therefore known as external data types. Instead, they are used in the ABAP Dictionary for the definition of data types to which ABAP programs can refer. The predefined data types of the ABAP Dictionary must also be taken into account in Open SQL statements and when working with screens: Open SQL statements work with database tables defined in the ABAP Dictionary whose colums have external data types. Screen fields are also declared in the Screen Painter with reference to external data types.
    Type Permitted Places m Meaning ABAP Type
    ACCP 6 Accounting period n(6)
    CHAR 1-255 Character string c(m)
    CLNT 3 Client c(3)
    CUKY 5 Currency key c(5)
    CURR 1-31 Currency field p((m+1)/2)
    DATS 8 Date d
    DEC 1-31 Calculation/amount field p((m+1)/2)
    FLTP 16 Floating point number f(8)
    INT1 3 1 byte integer b
    INT2 5 2 byte integer s
    INT4 10 4 byte integer i
    LANG 1 Language c(1)
    LCHR 256-... Long character string c(m)
    LRAW 256-... Long byte string x(m)
    NUMC 1-255 numerischer Text n(m)
    PREC 2 Accuracy of a quantity field s
    QUAN 1-31 Quantity field p((m+1)/2)
    RAW 1-255 Byte sequence x(m)
    RAWSTRING 256-... Byte sequence xstring
    SSTRING 1-255 Character string string
    STRING 256-... Character string string
    TIMS 6 Time t
    UNIT 2-3 Unit key c(m)
    For types LCHR and LRAW, the maximum number of places in a transparent database table is the value of the preceding INT2 field.
    The types RAWSTRING and STRING have a variable length. A maximum length for these types can be specified, but has no upper limit.
    The type SSTRING is available as of release 6.10 and it has a variable length. Its maximum length must be specified and is limited to 255. The advantage of this type compared with CHAR, is that it is assigned to the ABAP type string.
    The table below shows the data types of the ABAP Dictionary that are based on the predefined types in the above table, and that can be addressed in an ABAP program. The elementary components of these data types are converted to predefined ABAP data types according to the final column in the above table, whereby the number of places m of each type is converted to lengths.
    Data types in the ABAP Dictionary Data types in ABAP
    Data element Elementary data type, Reference type
    Structure, Database table, View Structured data type
    Table type Table type
    Note
    As of release 6.20, a component of structures or database tables that has the type LANG can be identified as a text language. The text language is used for the conversion of character-type components of the structure when importing data from data clusters and for RFC between MDMP systems and Unicode systems.

  • Data Element Doubt

    Generally we will specify three types of descriptions(Long,Meduim,Short) in the data element along with the data element description.
    1. In which cases those three types of texts are used ?
    2. I think the description of data element comes to the field description in the table .... Right ?

    hi manjunath,
    the reson for specifying 3 texts are that
    1) used in screen elements based on DATA element.
        there is something called program parameter OR
        Dictionary parameter
        when you take dictionary parameter based on the screen field size the appropriate text is shown on the screen - i.e either in push buttons or other elements
    2) in ALV you may build a field catalog manually where in the output columns should have a text.
    for this you can either doctionary texts(S,M,L) so then the Texts maintained against the Data element are shown in output.
    OR when you use the FIELDCATALOG MERGE Function Module to create your Field Catalog based a structure or Internal table then the Column Texts are displayed based on the user interaction on the output columns.
    Second Question - Yes the Description you write for a  Data Element will be Used as you Field Description as you know that whenver a FIELD in a table is created you can specify the length of the field either through Predefined Direct Types or Trhough Data Elements.
    When you define thorugh DATA elements the Data Elements Description is taken as Field Description
    ELSE
    When you take Direct Type then you need to also Manually Write the Field Description.
    Hope this clarifies what you have been looking for.
    Encuorage others to answer your queries by suitably rewarding them.
    Thanks
    Venugopal

  • How to find preexisting domain & data element

    hi all,
    i know that main advantage of data element & domain is its reusability.
    so while creating a table while creating a field how to find that
    which standard or preexisting data element & domain i should use
    or i should creat a new one?
    plz make me clear
    i will reward ur efforts

    Hi
    Why dont you use the table <b>DD07l</b> for Domain
                                              <b>DD04l</b> for Data Elements
    This would give you existing data elements
    You could then check out the data elements based on type and length and see if it will suit your requirement..
    Hope this helps you

  • Data element status showing Modified / Active

    Hi Gurus,
    created one custom field using EEW in WEB UI, that filed length and type is NUMC,2, my requirement is need to change the length from 2 to 3.So i am not able to change the length from WEB UI ,doing changes manually from SE11. i have chaged the particular Data element length to 3 and activated Data element the Data element status showing Modified /Active instead of Active.
    i have checked SE09 .showing inactive objects. please help me on this how to come out from this problem.how to activate Data element.
    Thanks & Regards,
    Sunil B

    Hi Sanly yan,
    i have done table Adjustment in se14.
    Thanks & Regards,
    Sunil B

  • How to get date difference in data sources

    Hi,
    In SQL:SELECT DATEDIFF(day, '2005-12-30 23:59:59.9999999', '2005-12-30 00:00:00.0000000');
    output :1
    As similar way how get the datediffence in SAP business by design of the datasources.
    Regards,
    Prasad

    Hi Prasad,
         For this you have to create a Custom DATA SOURCE for the required BO. Then Select all the required fields that you want to use it in the report for that datasource.
    The 3rd step of Data Source Wizard is shown in the image, here you can add a extra field that can hold the difference between the DateTime elements present in the BO.
    In the left column BUSINESS OBJECT ELEMENT choose DATE element (1st Date).
    In the right column TRANSFORMATION choose DateTime To Duration row and in the PARAMETER Column choose the field against which you want to calculate the difference.
    In Defined Field Name enter a name, this will hold the value of the calculated difference.
    Thank You
    Shabaz

  • What is conversion routine which is found in data element

    Hi all,
    I was just trying to creating a data element assigned to a particular domain in se11. While i am creating i can see a conversion routine
    Can anyone tell me what is the use of that conversion routine with an example.
    thanxs in advance
    hari

    Hi,
    Depending on the data type of the field, there is a conversion when the contents of a screen field are converted from display format to SAP-internal format and vice versa. If this standard conversion is not suitable, it can be overridden by defining a conversion routine in the underlying domain.
    Conversion routines are identified by a five-place name and are stored as a group of two function modules. The function modules have a fixed naming convention. The following function modules are assigned to conversion routine xxxxx:
    CONVERSION_EXIT_xxxxx_INPUT
    CONVERSION_EXIT_xxxxx_OUTPUT
    The INPUT module converts from display format to internal format, and the OUTPUT module converts from internal format to display format.
    When is a Conversion Routine Executed?
    If a screen field refers to a domain with a conversion routine, this conversion routine is executed automatically when entries are saved in this screen field or when values are displayed in this screen field. The conversion routine of the domain is also triggered when the field contents are output with the WRITE statement.
    Table SPFLI in the  flight model contains information about the flights offered by the carriers. The time for each flight is recorded in field FLTIME. Enter and display the time of the flight in input templates in the form HHH:MM (hours:minutes). Store the flight time entered in the database as an integer number (number of minutes of the flight). An entry 3:27 is therefore stored in the database as 207 (3 hours, 27 minutes = 207 minutes).
    Field FLTIME refers to domain S_DURA, to which conversion routine SDURA is assigned. The value is thus converted by the two function modules <b>CONVERSION_EXIT_SDURA_INPUT</b> and <b>CONVERSION_EXIT_SDURA_OUTPUT</b>.
    A conversion routine can also be triggered by specifying its five-place name in the attributes of a field in the Screen Painter or with the addition <b>USING EDIT MASK <Name of conversion routine></b> in the WRITE command in the program. With the USING NO EDIT MASK addition in the WRITE statement, you can skip a conversion routine defined for a domain when outputting.
    Parameters
    The two function modules of a conversion routine must have precisely two parameters with the names INPUT and OUTPUT for the value to be converted and the converted value.
    The INPUT parameter in the INPUT conversion and the OUTPUT parameter in the OUTPUT conversion should not have any reference fields because the value passed in the call could have a different length than that expected.
    Programming Conversion Routines
    ABAP statements that result in an interruption of processing (such as CALL SCREEN, CALL DIALOG, CALL TRANSACTION, SUBMIT, COMMIT WORK, ROLLBACK WORK, MESSAGE I, MESSAGE W) are not allowed in conversion routines.
    Only A messages are meaningful in output conversion, but A, E and S messages can be triggered in input conversion (although S messages are not very meaningful here). E messages result in an error dialog. Exceptions are not intercepted in the call.
    The output conversion is also triggered with WRITE and WRITE TO. The conversion routine may therefore occur very frequently with lists. The output conversion should therefore be programmed as efficiently as possible.
    No external performs should be used in conversion routines. Programs that are called externally use the table work areas of the first calling main program. In conversion routines this can result in errors that cannot be easily analyzed since they are sometimes called at unpredictable times in the program flow.
    <b>Pls refer link which contains code as an example to conversion routine used in abap</b>.
    <a href="http://www.bwexpertonline.com/downloads/source_code.doc">http://www.bwexpertonline.com/downloads/source_code.doc</a>
    Pls reward points.
    Regards,
    Ameet

  • Data element which can store approx. 700 characters

    Hi everybody,
    I would like to know is there any Data element which can store approx. 700 characters. or i needed to create one.
    Thanks in advance.
    Mohammadi.

    Mhmd,
    I have a question from you can you pls do fevor me?
    Hi,
    For storing approx. 700 char, followinf data types can be used.
    1. ICPST
    2. ISTRING
    3. VVXVAR700"I replied this
    OR
    U can also find the predefined as follows -
    1.Go to SE11
    2. In domain write CHAR* and click F4.
    3. Find a domain of length more than 255
    4. Use where used list for it, to get all the dataelements using this domain."This reply given by Chandrashekhar
    Hope this will help u.
    Regards,
    Aleem."finally Aleem Help you :-)
    can you tell us which answer solved your problem?
    cause Aleem used a CONCATENATE keyword
    Amit.

  • How to find which data elements are used in ABAP program ?

    I wish to find out which data elements are used in some programs .
    Is there any DD table which stores this information ?
    I know we can go to program and look in fields, but do SAP stores this information somewhere ?

    Dear Kaushal,
    Please check the table <b>TRDIR</b>.
    Regards,
    Abir
    Don't forget to award points *

  • The box in my Photoshop Elements, which shows the size and types of brushes has shrunk to one unreadable line. How do I expand the box to its original size?  I have tried dragging it open but nothing moves.

    The box in my Photoshop Elements, which shows the size and type of brushes, has shrunk to one unreadable line. How can I expand this box to its original size? I have tried dragging it open but nothing happens and none of the tool boxes appear to give me an expansion option

    Well, when you open the program, the splash screen, the window you see while the program is opening, should make that clear enough. For example:

Maybe you are looking for

  • Closing company code FI impact

    Hi Guru We have two company codes xxx1 and xxx2, business requriement is close xxx2 company code and transfer all the GL balance. customer and vendor open items. we have 7 fixed asset which we need to transfer to xxx1 company code. I am new to FI. ca

  • Matshita uj-875 Can't write DVD's

    My dvd drive until 2 months ago was working perfectly until 2 months ago. The problem is that reads and burns CD's just perfect. it can read dvd's and dvd rom's also perfectly but it can't recognize and burn blank dvd's. I have seen on the internet p

  • BEA Weblogic JSR compliant portal - Modes supported.

    Hi, The JSR 168 spec has the provision to support custom modes in addition to the default modes like view , help & edit . I want to know what are the custom modes supported by the Bea Web logic portal which is JSR 168 compliant. In specific iam looki

  • Resignation date should be active

    Hai When i  am doing a resignation or leaving action for an employee on today's date, he is an active employee till the end of the day.tomorrow onwards he should be considered as Inactive emp. any config setting is to be done so as  to maintain like

  • Safari quits / crashes immediately on opening

    Hi, My Safari quits immediately upon starting and displays the error message below.  What can I do to fix this? I am running OSX 10.10.1 Yosemite on a MacBook Air. Process:           Safari [791] Path:              /Applications/Safari.app/Contents/M