Domain Value Function Module
There are other fm s as well.
Domain value function module. There is sometimes a requirement to fetch the fixed values associated with a 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. As long as you have variable defined with reference to domain.
Pstyp edi is a domain where fixed values are maintained as shown below. The out comes or values that we get for y is known as range. Step 1 go to transaction se38 and create a new program called z spellamount.
Hence the domain is r. 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. 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. Use this function module to retrieve the values. Is the relation a function.
Database view dd07v contains this information along with the text maintained for these fixed value. Domain value get is a standard sap function module available within r 3 sap systems depending on your version and release level. A set of all defined values of x is known as domain.
State the domain and range of the following relation. This function module converts numeric figures into words. Example program to get domain fixed values using sap abap.