SAP Tables

DDUT_DOMVALUE_TEXT_GET SAP Function module - DD: Read information about a single domain fixed value




DDUT_DOMVALUE_TEXT_GETis a standard SAP function module available within R/3 SAPsystems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import/export parameters, exceptions etc as well as any documentation contributions specific to the object. See here to view full function module documentation and code listing, simply by entering the name DDUT_DOMVALUE_TEXT_GET into the relevant SAP transaction such as SE37 or SE80.

Contribute (Add Comments)
Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name DDUT_DOMVALUE_TEXT_GET or its description.


Pattern for FM DDUT_DOMVALUE_TEXT_GET - DDUT DOMVALUE TEXT GET
Associated Function Group: SDTO
Released Date: Not Released
CALL FUNCTION 'DDUT_DOMVALUE_TEXT_GET' "DD: Read information about a single domain fixed value
  EXPORTING
    name =                      " ddobjname     Domain name
    value =                     " dd07v-domvalue_l  Required fixed value
*   langu = SY-LANGU            " sy-langu      Language in which the text should be read
*   texts_only = ' '            " ddbool_d      Only read entry from text table
  IMPORTING
    dd07v_wa =                  " dd07v         Information about fixed value
  EXCEPTIONS
    NOT_FOUND = 1               "               No information found
    ILLEGAL_INPUT = 2           "               Invalid combination of input parameters
    .  "  DDUT_DOMVALUE_TEXT_GET

ABAP code example for Function Module DDUT_DOMVALUE_TEXT_GET

The ABAP code below is a full code listing to execute function module DDUT_DOMVALUE_TEXT_GET including all data declarations. The code uses the latest in-line data declaration syntax but I have included an abap code snipet at the end to show how declarations would look using the original method of declaring data variables up front. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8).
DATA:
ld_dd07v_wa   TYPE DD07V.

DATA(ld_name) = 'Check type of data required'.

SELECT single DOMVALUE_L
FROM DD07V
INTO @DATA(ld_value).

DATA(ld_langu) = 'Check type of data required'.
DATA(ld_texts_only) = 'Check type of data required'.. CALL FUNCTION 'DDUT_DOMVALUE_TEXT_GET' EXPORTING name = ld_name value = ld_value * langu = ld_langu * texts_only = ld_texts_only IMPORTING dd07v_wa = ld_dd07v_wa EXCEPTIONS NOT_FOUND = 1 ILLEGAL_INPUT = 2 . " DDUT_DOMVALUE_TEXT_GET
IF SY-SUBRC EQ 0.   "All OK ELSEIF SY-SUBRC EQ 1. "Exception   "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception   "Add code for exception here ENDIF.

ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.
DATA:
ld_dd07v_wa TYPE DD07V ,
ld_name TYPE DDOBJNAME ,
ld_value TYPE DD07V-DOMVALUE_L ,
ld_langu TYPE SY-LANGU ,
ld_texts_only TYPE DDBOOL_D .

ld_dd07v_wa = 'Check type of data required'.
ld_name = 'Check type of data required'.

SELECT single DOMVALUE_L
FROM DD07V
INTO ld_value.

ld_langu = 'Check type of data required'.
ld_texts_only = 'Check type of data required'..

SAP Documentation for FM DDUT_DOMVALUE_TEXT_GET


This function module reads the fixed value information for a fixed value of a domain. The name of the domain must be specified in the ...See here for full SAP fm documentation