Ads

Data Element in SAP ABAP

Data Element in SAP ABAP


Here, you can learn the definition of data element and it is utilization in sap applications .As data element most important in sap ,every one should learn about it.

Data Elements A data element describes either an elementary type or a reference type.

An elementary type is defined by the built-in data type, length and possibly the number of decimal places.

These type attributes can either be defined directly in the data element or copied from a domain.

You can use a data element to define the type of a table field, structure component or the row type of a table type.

A data element can also be referenced in ABAP programs with TYPE. As a result, variables that take on the attributes of a data element can be defined in an ABAP program.

Information about the meaning of a table field or structure component and information about editing the corresponding screen field can be assigned to a data element.

Example The field CONNID of table SBOOK refers to the data element S CONN ID. This data element gets its technical attributes from domain S CONN ID. Data element S CONN ID describes the technical attributes and meaning of field CONNID. A variable having the type of data element S CONN ID can be defined in an ABAP program with the statement DATA CONNID TYPE S CONN ID..


Creating Data Elements Procedure In the initial screen of the ABAP Dictionary, select object type Data type, enter the data element name and choose This graphic is explained in the accompanying textCreate.

On the Data type tab page, define the data type, number of places and possibly the number of decimal places of the data element.

If the data element should have the type attributes of a domain, you only have to select Domain and enter the domain name in the corresponding field.

If the data element should describe a reference type, choose Reference type and then Referenced type.

To assign the search help, you must specify its Name in the data element maintenance screen and an export parameter of the search help in the Parameter field.

Mark data element as relevant for change documents: The data of a business-oriented object is often distributed on several tables.

Changed field contents are only logged if the Change document flag is set for the data element of the field.


Comments

Popular posts from this blog

BADI Interview Questions in SAP ABAP

Sample SAP ABAP Programming Examples for Practice

Module Pool Programming Interview Questions and Answers in SAP ABAP

Step by Step tutorial on BDC Session Method Program in SAP ABAP

SAP ABAP Interview Questions and Answers for 10 Years Experienced