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

domain & data element

former_member329386
Participant
0 Likes
3,731

Hi all

1)is it possible to create a table without data-element (Semantic attributes of filed) ?

2)is it possible to create a table without domain (technicaltributes of filed) ?

Which one is feasible case and how ?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,326

Hi,

1) It is not posssible to create table without <b>dataelements</b>.

2) It is posssible to create table without <b>Domains</b>.

Reason is -

Dataelement is nothing but discription of field ie it is a label for a field. while creating dataelement there are options under 'Elementary' type -one is 'domain' and other one is 'predefine type'.

you can create the dataelement by using 'Domain' or 'predefine type' - here you have to give directly 'Data type' and its length. So you can create the dataelement with out domain.

While creting feilds in a table there is option 'Dataelement' is mandatory why it is mandatory mean you cant define the field whiout datatype so you have to give 'dataelement' which it turn give the datatype.

<b>Reward with points if helpful.</b>

Regards,

Vijay

10 REPLIES 10
Read only

Former Member
0 Likes
2,326

Hi,

It is not possible to create DB table without <b>data element</b> as you have to define technical attributes of every field but you can avoid <b>Domain</b> depending on your requirement.

Regards,

Amit

Read only

Former Member
0 Likes
2,326

Yes you can create a table without data element and domain by using built-in-type tab on table where you put only technical attributes.

Regards,

Mallick

Read only

Former Member
0 Likes
2,327

Hi,

1) It is not posssible to create table without <b>dataelements</b>.

2) It is posssible to create table without <b>Domains</b>.

Reason is -

Dataelement is nothing but discription of field ie it is a label for a field. while creating dataelement there are options under 'Elementary' type -one is 'domain' and other one is 'predefine type'.

you can create the dataelement by using 'Domain' or 'predefine type' - here you have to give directly 'Data type' and its length. So you can create the dataelement with out domain.

While creting feilds in a table there is option 'Dataelement' is mandatory why it is mandatory mean you cant define the field whiout datatype so you have to give 'dataelement' which it turn give the datatype.

<b>Reward with points if helpful.</b>

Regards,

Vijay

Read only

Former Member
0 Likes
2,326

Hello Fighter,

If I am not mistaken, you are still fighting with ABAP right ?

cool. I put it in a simple way.

1) We can create tables without DATA ELEMENT

2) We CAN create tables without domain.

Domains are dependent. So have to be under data element. you can say they are not directly linked to Tables.

Creating a table can be done either by <b>data elements</b> or <b>direct ( built in)</b>

We do create data elements and domains for reusuability and to create the table to table relationships in a easy way, search helps, readability ( documentation). otherwise it doesnt really matter how you define the tables

Do not forget to reward if useful.

Sreethan

Read only

Former Member
0 Likes
2,326

its me again.

I just wanna give you another link where you can find some more info.

regards

sreethan

Read only

Former Member
0 Likes
2,326

->U need data elts for table..

->U can avoid domains

Get the basics below

Domains

A domain defines a value range. A domain is assigned to a data element. All table fields or structure components that use this data element then have the value range defined by the domain. The relationship between the field or component and the domain is thus defined by the data element of the field or component.

Fields or components that refer to the same domain (with the assigned data elements) are also changed when the domain is changed. This ensures that the value ranges of these fields or components are consistent. Fields or components that are technically the same can thus be combined with a reference to the same domain.

The value range of a domain is defined by specifying a data type and length (and number of decimal places for numeric data types).

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 type of the reference variables containing pointers to objects or interfaces. A reference type is defined by specifying an existing class or existing interface. You can also define a generic reference to objects or data objects.

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.

Read only

Former Member
0 Likes
2,326

Hi

1) yes with out data element you can creat a tables

when ur creating fields in a table u will find buitin data type tab beside data element tab

if u select that tab then you can directly refer u r field to any type

but the problem is

when the vertion is upgrading then the feutures won't reflect in the newr vertion

you will get problem at that time

2) Yes you can creat like same as with out data elements

but problem with this is when you want to upgrade the vertion of your SAP

at that time you will face problems

that types don't reflect in that newer vertion

so thats why SAP advises to use domains and data elements

<b>Reward fi usefull</b>

Read only

Former Member
0 Likes
2,326

You can do that.

In that case you have to use only Built in data types. ( CHAR,NUMC,CUKY,CURR etc)

Read only

Former Member
0 Likes
2,326

Dataelement is nothing but discription of field ie it is a label for a field. while creating dataelement there are options under 'Elementary' type -one is 'domain' and other one is 'predefine type'.

you can create the dataelement by using 'Domain' or 'predefine type' - here you have to give directly 'Data type' and its length. So you can create the dataelement with out domain.

While creting feilds in a table there is option 'Dataelement' is mandatory why it is mandatory mean you cant define the field whiout datatype so you have to give 'dataelement' which it turn give the datatype.

Read only

Former Member
0 Likes
2,326

Hi,

Yes you can create a table without data element and domain.

Using built-in-type tab to directly specify data type. But this is not correct way to create tables.When you are displaying table contents by using table maintanence(SM30) field descriptions are not populated.Fileld description not properly displayed in ALV reports When we are using Field Cataloug Merge

Regards,

Ashok Kumar Reddy.N