SAP Function Modules

FIND_USER_SCREEN SAP Function module - Identify user exit screen







FIND_USER_SCREEN 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 FIND_USER_SCREEN into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM FIND_USER_SCREEN - FIND USER SCREEN





CALL FUNCTION 'FIND_USER_SCREEN' "Identify user exit screen
  EXPORTING
    i_devty =                   " lrf_wkqu-devty  Device type
    i_exver =                   " lrf_wkqu-exver  Exit version
    i_pscrn =                   " sy-dynnr      Physical screen
  IMPORTING
    o_scrn_data =               " scrnd_data    Screen data (logical screen, user screen)
  TABLES
    i_t3130c =                  " t3130c
    i_t3130e =                  " t3130e
    .  "  FIND_USER_SCREEN

ABAP code example for Function Module FIND_USER_SCREEN





The ABAP code below is a full code listing to execute function module FIND_USER_SCREEN 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_o_scrn_data  TYPE SCRND_DATA ,
it_i_t3130c  TYPE STANDARD TABLE OF T3130C,"TABLES PARAM
wa_i_t3130c  LIKE LINE OF it_i_t3130c ,
it_i_t3130e  TYPE STANDARD TABLE OF T3130E,"TABLES PARAM
wa_i_t3130e  LIKE LINE OF it_i_t3130e .


SELECT single DEVTY
FROM LRF_WKQU
INTO @DATA(ld_i_devty).


SELECT single EXVER
FROM LRF_WKQU
INTO @DATA(ld_i_exver).

DATA(ld_i_pscrn) = 'some text here'.

"populate fields of struture and append to itab
append wa_i_t3130c to it_i_t3130c.

"populate fields of struture and append to itab
append wa_i_t3130e to it_i_t3130e. . CALL FUNCTION 'FIND_USER_SCREEN' EXPORTING i_devty = ld_i_devty i_exver = ld_i_exver i_pscrn = ld_i_pscrn IMPORTING o_scrn_data = ld_o_scrn_data TABLES i_t3130c = it_i_t3130c i_t3130e = it_i_t3130e . " FIND_USER_SCREEN
IF SY-SUBRC EQ 0. "All OK 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_o_scrn_data  TYPE SCRND_DATA ,
ld_i_devty  TYPE LRF_WKQU-DEVTY ,
it_i_t3130c  TYPE STANDARD TABLE OF T3130C ,
wa_i_t3130c  LIKE LINE OF it_i_t3130c,
ld_i_exver  TYPE LRF_WKQU-EXVER ,
it_i_t3130e  TYPE STANDARD TABLE OF T3130E ,
wa_i_t3130e  LIKE LINE OF it_i_t3130e,
ld_i_pscrn  TYPE SY-DYNNR .


SELECT single DEVTY
FROM LRF_WKQU
INTO ld_i_devty.


"populate fields of struture and append to itab
append wa_i_t3130c to it_i_t3130c.

SELECT single EXVER
FROM LRF_WKQU
INTO ld_i_exver.


"populate fields of struture and append to itab
append wa_i_t3130e to it_i_t3130e.
ld_i_pscrn = 'some text here'.

SAP Documentation for FM FIND_USER_SCREEN


This function identifies the number of the user exit screen and the respective logical screen number in case, the customer works with ...See here for full SAP fm documentation







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