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

data elements ..

Former Member
0 Likes
814

hi,

i create a custom table and add a field. In the data element column, I enter CHAR2.

i create another field where I enter the data element as say ZDEFIELD2. In SE11 I have created an associated domain with CHAR2 and created this dataelement based on that domain.

what is the difference between these 2 approaches ? isn't the first one simpler !! wud be helpful if u can explain.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
790

Hi ,

whenever you create a DE instead of giving any built in data type, you have below advantages.

1) you get the Documentation (F1) for each field whereever the DE has been used in the report or the Module Pool Prog.

2) the Field label defined for the DE is used in the output. The grid displays the field label based on the length of the field displayed in the grid.

3) The DE short description will be showed in the table where the DE has been used. The description of the field in the table fetches the short description of the DE and will be displayed in the table.

Regards,

Vivek Shah

7 REPLIES 7
Read only

Former Member
0 Likes
790

Domain contains the technical details for a field line type length etc. Where as data-element contains other details description(s) (Long,Short,Medium) of the field. If u do not require description for ur field then there is no diff. of creating a data-element or using the domain directly.

Regards,

Joy.

Read only

0 Likes
790

thanks..where r those descriptions short, long, medium used ?

Read only

0 Likes
790

The description is used wherever the reference of the field is needed in the screen not by name but by its text . For example in the module pool programming or in the selection screen of a report.

Read only

0 Likes
790

The short, medium and long descriptions are used wherever the domain/data elements are referred.

i.e. depending on the display length at various places, either the short or medium or the long descriptions are displayed.

cheers,

Sushil Joshi

Read only

0 Likes
790

Descriptions are used the in the table where the field is defined. It helps the user to understand what is the purpose of this field.

Also SAP fetches this description when u display the field in output of ALV report.

Regards,

Joy.

Read only

Former Member
0 Likes
790

u can give documentation for the field using data element, u can also set parameter ids.

Read only

Former Member
0 Likes
791

Hi ,

whenever you create a DE instead of giving any built in data type, you have below advantages.

1) you get the Documentation (F1) for each field whereever the DE has been used in the report or the Module Pool Prog.

2) the Field label defined for the DE is used in the output. The grid displays the field label based on the length of the field displayed in the grid.

3) The DE short description will be showed in the table where the DE has been used. The description of the field in the table fetches the short description of the DE and will be displayed in the table.

Regards,

Vivek Shah