Skip to Content
avatar image
Former Member

Regarding Domain and DATAELEMENT in abap..

    Hi Everyone,

            I have a small doubt regarding DOMAIN and DATAELEMENTS in abap. During Table creation in SE11 we always declare one dataelement for each field, But my doubt is instead of creating dataelements why SAP ddnt provide the options so that instead of creating dataelements we can directly put DOMAIN there, afterall dataelements is mapped to some specific DOMAIN only..Is there any benifit of creating DATAELEMENT ? Please provide me your experienced knowledge..

Thank you

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Jan 25, 2013 at 07:05 AM

    Hi,

    ℹ️While creating fields in a dictionary table, you can directly give the datatype instead of data element by selecting menu EDIT->Predefined type.

    Regarding the second doubt, let's say in future the data type characteristics for a particular field e.g. telephone number changes to 13 digits instead of current no. of digits. For such scenarios only the data element needs to be changed once and it would get reflected everywhere the data element is being used. Also, data element gets used in programs and hence there would be no impact in case of changes. Moreover, data element adds semantic feature to the data type which gets used in programs as well. You could sap help to read more. Thanks!

    Regards,

    Kumud

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 25, 2013 at 06:57 AM

    Domain is a technical attributes of an element and it is having a value range .

    A data element is an elementary type. It describes the type attributes (data type, field length and possibly the number of decimal places) and screen information (explanatory text or field help) about unstructured data objects (table fields and structure fields or variables).

    A data element can be referenced in ABAP programs with TYPE. This permits you to define variables that take on the type attributes of the data element in an ABAP program.

    But Domain you cannot declare with type.

    Do some SCN search for more information.

    hope it helps,

    Vinoth.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 25, 2013 at 06:59 AM

    Hi Sanjib,

    During Table creation in SE11 we always declare one dataelement for each field.

    We do not necessarilly need to use data element for fields. We can use pre-defined types for fields.

    Add comment
    10|10000 characters needed characters exceeded