Regarding Domain and DATAELEMENT in abap..
I have a small doubt regarding DOMAIN and DATAELEMENTS in abap. During Table creation in SE11 we always declare one dataelement for each field, But my doubt is instead of creating dataelements why SAP ddnt provide the options so that instead of creating dataelements we can directly put DOMAIN there, afterall dataelements is mapped to some specific DOMAIN only..Is there any benifit of creating DATAELEMENT ? Please provide me your experienced knowledge..
Kumud Singh replied
While creating fields in a dictionary table, you can directly give the datatype instead of data element by selecting menu EDIT->Predefined type.
Regarding the second doubt, let's say in future the data type characteristics for a particular field e.g. telephone number changes to 13 digits instead of current no. of digits. For such scenarios only the data element needs to be changed once and it would get reflected everywhere the data element is being used. Also, data element gets used in programs and hence there would be no impact in case of changes. Moreover, data element adds semantic feature to the data type which gets used in programs as well. You could sap help to read more. Thanks!