SAP Function Modules

FVWR_USER_SEARCH SAP Function module







FVWR_USER_SEARCH 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.

See here to view full function module documentation and code listing, simply by entering the name FVWR_USER_SEARCH into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: FVWR
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM FVWR_USER_SEARCH - FVWR USER SEARCH





CALL FUNCTION 'FVWR_USER_SEARCH' "
* EXPORTING
*   rantyp = SPACE              " tzsz1-rantyp
*   struktur_1 = SPACE          "
*   struktur_10 = SPACE         "
*   struktur_11 = SPACE         "
*   struktur_12 = SPACE         "
*   struktur_2 = SPACE          "
*   struktur_3 = SPACE          "
*   struktur_4 = SPACE          "
*   struktur_5 = SPACE          "
*   struktur_6 = SPACE          "
*   struktur_7 = SPACE          "
*   struktur_8 = SPACE          "
*   struktur_9 = SPACE          "
*   strukt_name_1 = SPACE       "
*   strukt_name_10 = SPACE      "
*   strukt_name_11 = SPACE      "
*   strukt_name_12 = SPACE      "
*   strukt_name_2 = SPACE       "
*   strukt_name_3 = SPACE       "
*   strukt_name_4 = SPACE       "
*   strukt_name_5 = SPACE       "
*   strukt_name_6 = SPACE       "
*   strukt_name_7 = SPACE       "
*   strukt_name_8 = SPACE       "
*   strukt_name_9 = SPACE       "
  IMPORTING
    rdlinam =                   " tzsz7-dlinam
    runame =                    " tzsz7-ruser
  EXCEPTIONS
    RUNAME_NICHT_GEF = 1        "
    STAMMDATEN_NICHT_AUSREICHEND = 2  "
    STRUKTUR_NICHT_GEF = 3      "
    .  "  FVWR_USER_SEARCH

ABAP code example for Function Module FVWR_USER_SEARCH





The ABAP code below is a full code listing to execute function module FVWR_USER_SEARCH including all data declarations. The code uses the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet 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_rdlinam  TYPE TZSZ7-DLINAM ,
ld_runame  TYPE TZSZ7-RUSER .


SELECT single RANTYP
FROM TZSZ1
INTO @DATA(ld_rantyp).

DATA(ld_struktur_1) = 'some text here'.
DATA(ld_struktur_10) = 'some text here'.
DATA(ld_struktur_11) = 'some text here'.
DATA(ld_struktur_12) = 'some text here'.
DATA(ld_struktur_2) = 'some text here'.
DATA(ld_struktur_3) = 'some text here'.
DATA(ld_struktur_4) = 'some text here'.
DATA(ld_struktur_5) = 'some text here'.
DATA(ld_struktur_6) = 'some text here'.
DATA(ld_struktur_7) = 'some text here'.
DATA(ld_struktur_8) = 'some text here'.
DATA(ld_struktur_9) = 'some text here'.
DATA(ld_strukt_name_1) = 'some text here'.
DATA(ld_strukt_name_10) = 'some text here'.
DATA(ld_strukt_name_11) = 'some text here'.
DATA(ld_strukt_name_12) = 'some text here'.
DATA(ld_strukt_name_2) = 'some text here'.
DATA(ld_strukt_name_3) = 'some text here'.
DATA(ld_strukt_name_4) = 'some text here'.
DATA(ld_strukt_name_5) = 'some text here'.
DATA(ld_strukt_name_6) = 'some text here'.
DATA(ld_strukt_name_7) = 'some text here'.
DATA(ld_strukt_name_8) = 'some text here'.
DATA(ld_strukt_name_9) = 'some text here'. . CALL FUNCTION 'FVWR_USER_SEARCH' * EXPORTING * rantyp = ld_rantyp * struktur_1 = ld_struktur_1 * struktur_10 = ld_struktur_10 * struktur_11 = ld_struktur_11 * struktur_12 = ld_struktur_12 * struktur_2 = ld_struktur_2 * struktur_3 = ld_struktur_3 * struktur_4 = ld_struktur_4 * struktur_5 = ld_struktur_5 * struktur_6 = ld_struktur_6 * struktur_7 = ld_struktur_7 * struktur_8 = ld_struktur_8 * struktur_9 = ld_struktur_9 * strukt_name_1 = ld_strukt_name_1 * strukt_name_10 = ld_strukt_name_10 * strukt_name_11 = ld_strukt_name_11 * strukt_name_12 = ld_strukt_name_12 * strukt_name_2 = ld_strukt_name_2 * strukt_name_3 = ld_strukt_name_3 * strukt_name_4 = ld_strukt_name_4 * strukt_name_5 = ld_strukt_name_5 * strukt_name_6 = ld_strukt_name_6 * strukt_name_7 = ld_strukt_name_7 * strukt_name_8 = ld_strukt_name_8 * strukt_name_9 = ld_strukt_name_9 IMPORTING rdlinam = ld_rdlinam runame = ld_runame EXCEPTIONS RUNAME_NICHT_GEF = 1 STAMMDATEN_NICHT_AUSREICHEND = 2 STRUKTUR_NICHT_GEF = 3 . " FVWR_USER_SEARCH
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 ELSEIF SY-SUBRC EQ 3. "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_rdlinam  TYPE TZSZ7-DLINAM ,
ld_rantyp  TYPE TZSZ1-RANTYP ,
ld_runame  TYPE TZSZ7-RUSER ,
ld_struktur_1  TYPE STRING ,
ld_struktur_10  TYPE STRING ,
ld_struktur_11  TYPE STRING ,
ld_struktur_12  TYPE STRING ,
ld_struktur_2  TYPE STRING ,
ld_struktur_3  TYPE STRING ,
ld_struktur_4  TYPE STRING ,
ld_struktur_5  TYPE STRING ,
ld_struktur_6  TYPE STRING ,
ld_struktur_7  TYPE STRING ,
ld_struktur_8  TYPE STRING ,
ld_struktur_9  TYPE STRING ,
ld_strukt_name_1  TYPE STRING ,
ld_strukt_name_10  TYPE STRING ,
ld_strukt_name_11  TYPE STRING ,
ld_strukt_name_12  TYPE STRING ,
ld_strukt_name_2  TYPE STRING ,
ld_strukt_name_3  TYPE STRING ,
ld_strukt_name_4  TYPE STRING ,
ld_strukt_name_5  TYPE STRING ,
ld_strukt_name_6  TYPE STRING ,
ld_strukt_name_7  TYPE STRING ,
ld_strukt_name_8  TYPE STRING ,
ld_strukt_name_9  TYPE STRING .


SELECT single RANTYP
FROM TZSZ1
INTO ld_rantyp.

ld_struktur_1 = 'some text here'.
ld_struktur_10 = 'some text here'.
ld_struktur_11 = 'some text here'.
ld_struktur_12 = 'some text here'.
ld_struktur_2 = 'some text here'.
ld_struktur_3 = 'some text here'.
ld_struktur_4 = 'some text here'.
ld_struktur_5 = 'some text here'.
ld_struktur_6 = 'some text here'.
ld_struktur_7 = 'some text here'.
ld_struktur_8 = 'some text here'.
ld_struktur_9 = 'some text here'.
ld_strukt_name_1 = 'some text here'.
ld_strukt_name_10 = 'some text here'.
ld_strukt_name_11 = 'some text here'.
ld_strukt_name_12 = 'some text here'.
ld_strukt_name_2 = 'some text here'.
ld_strukt_name_3 = 'some text here'.
ld_strukt_name_4 = 'some text here'.
ld_strukt_name_5 = 'some text here'.
ld_strukt_name_6 = 'some text here'.
ld_strukt_name_7 = 'some text here'.
ld_strukt_name_8 = 'some text here'.
ld_strukt_name_9 = 'some text here'.

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 FVWR_USER_SEARCH or its description.