Wednesday, 11 January 2012

Basics of ABAP : Creating Domain



Domain as already explained defines the technical properties of a field such as type and value range. A domain can be created from initial screen of data dictionary by clicking on create and clicking domain Radiobutton.

Parameters to be passed are:
Data type: Where you need to enter the data type available in SAP.

Field length: Field length is the number of valid position.

Value table: Name of a table to be entered. The fields referring to this domain may only assume values contained in the value table.

Once the domain is created, save and activate it, so that it can be used for
further objects (basic rule of dictionary ).

To create a domain go to t-code SE11.
Select the Domain radio button, enter the the name of the domain that you want to create and press create.


Enter the short description. Place the cursor in the data type and press F4 to get the list of SAP data types.
In the popup window select the correct data type.


You can enter the Value table in the Value Range tab, also you can include Static values instead of value table
Enter the number of characters. Enter the decimal places if it applicable to data type that you have selected. Save and activate the domain.

2 comments:

  1. i want to create a domain with 10 places holding decimal number from which 2 places should be after the decimal point.
    What data type should i use?

    ReplyDelete
  2. Hi Gokul ,why we use value range to create domain?
    soumenroym2007@yahoo.in

    ReplyDelete