Application Development 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: 

i am learning abap plz help me

Former Member
0 Kudos

what is use of dataelement , we r creating domain , how we create data element

8 REPLIES 8

Former Member
0 Kudos

HI,

domain will have technical properties(data type,length,...)

data element is a combination of domain and documentation,field labels,...

to create data element goto se11 select radio button data type and give the name,press CREATE.there u can select data element and fill all the mandatory fields.

rgds,

bharat.

Former Member
0 Kudos

Hi,

Have a look at this link,

http://abapprogramming.blogspot.com/search/label/ABAP%20DICTIONARY.

reward if helpful.

Former Member
0 Kudos

Hi

Data elements: Describe an elementary type by defining the data type, length and possibly decimal places

Data elements (elementary types) Elementary types have no structure. They describe the data type attributes (such as given Dictionary data type, number of places) and information that is relevant for the screen (such as title) of unstructured data objects (variables/fields).

The basic objects for defining data in the ABAP Dictionary are tables, data elements and domains. The domain is used for the technical definition of a table field (for example field type and length) and the data element is used for the semantic definition (for example short description).

A domain describes the value range of a field. It is defined by its data type and length. The value range can be limited by specifying fixed values.

A data element describes the meaning of a domain in a certain business context. It contains primarily the field help (F1 documentation) and the field labels in the screen.

A data element describes the meaning of a domain in a certain business context.

A domain, however, is used for the technical definition of a table field (for example field type and length).

Therefore, although a take-off airport (data element S_FROMAIRP) would have a different business meaning from an airport where a plane lands (data element S_TOAIRP), they could still have the same domain(here S_AIRPID) because technically we could assign the same number of characters whether the airport is a take-off or a landing airport.

<b>Create data element</b>

The system prompts you to create a new data element.

Choose the Yes pushbutton.

Under the data type tab enter the domain name which

determines the technical characteristics of the field.

Further characteristics tab: Allows you to specify a search help assigned to the data element.

It also allows you to specify a parameter id which helps you populate a field from SAP memory.

Field label: Can be assigned as prefixed text to a screen field referring to the ABAP Dictionary. The text is displayed on the screen in the logon language of the user (if the text was translated into this language).

<b>Create domain</b>

If the domain does not exist in the data dictionary the

system prompts you to create one.

Give the technical characteristics under the definition

tab. Value range allows you value restriction at domain

level.

Value range tab:

As explained in the section Consistency through input checks one can restrict the possible values for a field at domain level itself by either entering fixed values or by specifying a value table under the tab Value range.

<b>Reward if usefull</b>

Former Member
0 Kudos

Domain:

It is used to difine the Technical Attributes (Data Type and Length) and the Value Ranges (Fixed Values and Intervals). 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.

Data Element:

Data Element is Domain + Documentation (Short Text)

Rewards if useful.

former_member386202
Active Contributor
0 Kudos

Hi,

Domain describes the technical characteristic of field. It defines value range of field.

and data element describes the defination of field

suppose MATNR material Number

Regards,

Prashant

Former Member
0 Kudos

A: Data element

ABAP/4 Development Workbench (BC-DWB)

A data element describes the contents of a field. For example, a data element contains the F1 help texts and the key

word texts (field texts) for displaying the field on the screen.

Several table fields with identical contents can refer to the same data element.

Domain

ABAP/4 Development Workbench (BC-DWB)

A domain describes the technical attributes of a table field.

These technical attributes include the data type and the field length.

Several fields with the same technical attributes can refer to the same domain. In this case, each of these fields has

the technical attributes specified in this domain.

Steps to Creating domains, Data Elements, Tables

To give you the steps for creating table:.

There are two approach in creating a table.

1. Bottom-up approach

2. Top-down approach.

Both are valid and you can choose which approach is suitable for you.

following steps are of Bottom-up approach .

1. SE11 will take you to the DDIC and enter the name of the new table to be created. Let us say Zname. Click create.

2. Enter the short discription of the table and enter the field of the table. If it is primary key and you have to check the box.

3. Enter the data element and double click it, you will be asked to save and will take you to data element discription page. Enter the short discription of the data element and enter the information of domain like the length of field and type of field.

4. If you wanted to use the existing domain then its fine, or else, you have to create one. Enter the domain name in the data element page and double click it. Page will ask to save and jump to domain creation page.

5. In the domain page, you have to save the information which you have already given in the data elements page and check it. Before going to data element page, you have to activate the domain.

6. Go to data element page and save, check and activate.

7. Go to main table page and save, check, and activate.

8. Also, you have to save the technical settings of the table.

The table is now ready for operation. You can use it in your program or you can use it to enter information.

Check table: It is the table which will have all the information about the Foreign keys which are the primary keys in the check table.

It can be created by creating the foreign key from the main table. Click foreign key in the main table and it will take you to a page which will ask for table name and field to which foreign key relation has to be associated. Enter the information and you can create the check table automatically.

SM30 is used for maintenance of the table, that is to realease the errors occured during the creation of the table.

Former Member
0 Kudos

hi,

goto code: <b>abapdocu</b>

all subject for abap are used.

u can learn it...

regards,

suresh.

reward if useful

former_member193023
Participant
0 Kudos

Hi,

I am sorry to dig up this old post. But for the one's who now facing the same problem may refer to below link for understanding tables, domains and data elements concept in ABAP. and also for step for creating them.

http://learnabaponline.blogspot.in/2013/04/how-to-create-table-in-abap.html

Thanks,

Parth Jhalani