Domain Value Function Module
To fetch these values we have a simple function module dd doma get.
Domain value function module. As long as you have variable defined with reference to domain. Get fixed values of a domain programmatically using function module get domain values we get fixed values of a domain using function module get domain values the function module will raise no values found exception if there are no fixed values for that domain. This list of fixed values maintained in domain are provided as f4 help in the screen interface for the data element. If you find any duplicate x values then the different y values mean that you do not have a function.
Let s consider the function module spell amount. Idd07v type table of dd07v with header line. There are other fm s as well. Recently i ve found this elegant way which doesn t require to specify domain name.
Since we have absolute sign we must get only positive values by applying any positive and negative values for x in the given function. Use this function module to retrieve the values. Domain for given function f x x 3 for any real values of x f x will give defined values. Example program to get domain fixed values using sap abap.
Domain value get is a standard sap function module available within r 3 sap systems depending on your version and release level. Step 2 enter some code so that a parameter can be set up where a value could be entered and passed on to the function module. Creating a new program. To get domain fixed value description in past i have used function modules dd domvalues get dd doma get and select from table dd07l.
For a relation to be a function each x value has to go to one and only one y value. A set of all defined values of x is known as domain. The out comes or values that we get for y is known as range. Is the relation a function.
Database view dd07v contains this information along with the text maintained for these fixed value. Let us try to read the fixed values through program. Hence the domain is r. State the domain and range of the following relation.
There is sometimes a requirement to fetch the fixed values associated with a domain. Step 1 go to transaction se38 and create a new program called z spellamount. Below is the pattern details for this fm showing its interface including any import and export parameters exceptions etc as well as any documentation contributions comments specific to the object. Get domain values is a standard sap function module available within r 3 sap systems depending on your version and release level.
Below is the pattern details for this fm showing its interface including any import and export parameters exceptions etc as well as any documentation contributions comments specific to the object. All these methods requires you to specify domain name or some would say require you to hardcode domain name. Pstyp edi is a domain where fixed values are maintained as shown below. Use sap function module get domain values to read domain value range or domain fixed values.