Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

creating a dataelement

Former Member
0 Likes
1,176

Hi Experts,

Well and Wish

CAN WE CREATE A DATA ELEMENT WITH OUT A DOMAIN??

Thanks in advancec

Santosh

11 REPLIES 11
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,150

Sure, you don't have to specify a domain, you can simply give the data type and length.

Regards,

RIch Heilman

Read only

Former Member
0 Likes
1,150

Hi,

Yes, you can ... just refer to predefined type instead of domain.

Regards,

Ferry Lianto

Read only

Former Member
0 Likes
1,150

Hi

SE11-->create data type>choose data element->Under elementary type click built-in type radio button----->give data type and length..... then save and activate

Thanks

Sasmita

Read only

Former Member
0 Likes
1,150

Hi,

yes u can create dataelement without domain.just give datatype and length while creating data element.

Regards,

Sruthi

Read only

Former Member
0 Likes
1,150

Yes you can ..... just give the data type and length.

Read only

0 Likes
1,150

Yes!! Its possible. You can create a data element with pre-defined data type.

Regards,

Ramki.

Read only

Former Member
0 Likes
1,150

Hello, Santosh.

At SE11 transaction you can press the button Predefined Type on you right side of the screen while editing a new field.

In this case the Data Type, Length, Decimal Places & Short Text's fields will be opened for editing.

Reward if it helps ...

R.R.

Read only

Former Member
0 Likes
1,150

hi,

the main use of data element is to describe the technical attributes.it by it self does not define the technical attributes just describes what are the technical attributes it have . so from that information u clearly understand this with out data element is also it is possible to describe the field. see this example.

u go to super market for some items they print rates on packet it self.some vegitables does not contain rates on it self. that means they are not given free or they are not ready for sold. with out rate on item it self we can sold goods .that means if it present it is more clear data element is also similar to that. i hope that u better understand this by reading this documentation.

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.

A reference type defines the types of reference variables in ABAP programs.

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. This information is automatically available to all screen fields that refer to the data element.

This information includes the display of the field in input templates using key word text, column headers for list output of the table contents (see Field Labels ), and output editing using parameter IDs.

This is also true for online field documentation. The text appearing in the field help (F1 help) in a field of an input template (see Documentation and Docu Status) comes from the corresponding data element.

The field CONNID (flight class) of table SBOOK refers to the data element S_CONN_ID. This data element gets its technical attributes (data type NUMC, field length 4) from domain S_CONN_ID. Data element S_CONN_ID describes the technical attributes and meaning (with an assigned long text and an explanatory short text) of field CONNID (and all other fields that refer to this data element).

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.

Read only

Former Member
0 Likes
1,150

Hi..

Its possible. You can create a data element with pre-defined data type.

There you can specify <b>DATA TYPE</b>, <b>LENGTH</b> AND <b>DECIMAL PLACES</b>.

please mark the question as answered if your problem is solved...

Reward if it helps u....

Regards,

Kimi.

Read only

Former Member
0 Likes
1,150

hi

we can create dataelement without domain.click on the predefined type radiobutton and give datatype and length.

regards

shinu

Read only

Former Member
0 Likes
1,150

hi

yes can create a data element without a domain just by specifying its datadype and length.

for that you can just write the data element name and double click it and then select the predefined type in the screen opened.

specify the data type and length.

hopefully this will help u out.

regards

vijay sharma.