SAP Function Modules

CALL_SCREEN_LOGON SAP Function module - Calling logon screen







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

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


Pattern for FM CALL_SCREEN_LOGON - CALL SCREEN LOGON





CALL FUNCTION 'CALL_SCREEN_LOGON' "Calling logon screen
  EXPORTING
    i_whs_id =                  " lrf_wkqu-lgnum  warehouse id
    i_user_prf =                " lrf_wkqu-queue  user queue
    i_sort_value =              " lrf_wkqu-sorsq  user sort value
    i_b_mnu_scr =               " lrf_wkqu-mmenu  user main menu
    i_present =                 " lrf_wkqu-devty  user presentation type
    i_exver =                   " lrf_wkqu-exver  user exit version
    i_pernr =                   " lrf_wkqu-pernr  user personal number
    i_autho =                   " lrf_wkqu-autho  user authority to change the main menu
    i_docnum =                  " lrf_wkqu-docnum  user document number
  IMPORTING
    o_whs_id =                  " lrf_wkqu-lgnum
    o_user_prf =                " lrf_wkqu-queue
    o_screen_fcode =            " sy-ucomm
    o_sort_value =              " lrf_wkqu-sorsq
    o_b_mnu_scr =               " lrf_wkqu-mmenu
    o_present =                 " lrf_wkqu-devty
    o_exver =                   " lrf_wkqu-exver
    o_pernr =                   " lrf_wkqu-pernr
    o_autho =                   " lrf_wkqu-autho
    o_docnum =                  " lrf_wkqu-docnum
  EXCEPTIONS
    FAIL_IN_PHYSICAL_SCREEN_NUMBER = 1  "       failed to find physical screen number
    .  "  CALL_SCREEN_LOGON

ABAP code example for Function Module CALL_SCREEN_LOGON





The ABAP code below is a full code listing to execute function module CALL_SCREEN_LOGON 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_whs_id  TYPE LRF_WKQU-LGNUM ,
ld_o_user_prf  TYPE LRF_WKQU-QUEUE ,
ld_o_screen_fcode  TYPE SY-UCOMM ,
ld_o_sort_value  TYPE LRF_WKQU-SORSQ ,
ld_o_b_mnu_scr  TYPE LRF_WKQU-MMENU ,
ld_o_present  TYPE LRF_WKQU-DEVTY ,
ld_o_exver  TYPE LRF_WKQU-EXVER ,
ld_o_pernr  TYPE LRF_WKQU-PERNR ,
ld_o_autho  TYPE LRF_WKQU-AUTHO ,
ld_o_docnum  TYPE LRF_WKQU-DOCNUM .


SELECT single LGNUM
FROM LRF_WKQU
INTO @DATA(ld_i_whs_id).


SELECT single QUEUE
FROM LRF_WKQU
INTO @DATA(ld_i_user_prf).


SELECT single SORSQ
FROM LRF_WKQU
INTO @DATA(ld_i_sort_value).


SELECT single MMENU
FROM LRF_WKQU
INTO @DATA(ld_i_b_mnu_scr).


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


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


SELECT single PERNR
FROM LRF_WKQU
INTO @DATA(ld_i_pernr).


SELECT single AUTHO
FROM LRF_WKQU
INTO @DATA(ld_i_autho).


SELECT single DOCNUM
FROM LRF_WKQU
INTO @DATA(ld_i_docnum).
. CALL FUNCTION 'CALL_SCREEN_LOGON' EXPORTING i_whs_id = ld_i_whs_id i_user_prf = ld_i_user_prf i_sort_value = ld_i_sort_value i_b_mnu_scr = ld_i_b_mnu_scr i_present = ld_i_present i_exver = ld_i_exver i_pernr = ld_i_pernr i_autho = ld_i_autho i_docnum = ld_i_docnum IMPORTING o_whs_id = ld_o_whs_id o_user_prf = ld_o_user_prf o_screen_fcode = ld_o_screen_fcode o_sort_value = ld_o_sort_value o_b_mnu_scr = ld_o_b_mnu_scr o_present = ld_o_present o_exver = ld_o_exver o_pernr = ld_o_pernr o_autho = ld_o_autho o_docnum = ld_o_docnum EXCEPTIONS FAIL_IN_PHYSICAL_SCREEN_NUMBER = 1 . " CALL_SCREEN_LOGON
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "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_o_whs_id  TYPE LRF_WKQU-LGNUM ,
ld_i_whs_id  TYPE LRF_WKQU-LGNUM ,
ld_o_user_prf  TYPE LRF_WKQU-QUEUE ,
ld_i_user_prf  TYPE LRF_WKQU-QUEUE ,
ld_o_screen_fcode  TYPE SY-UCOMM ,
ld_i_sort_value  TYPE LRF_WKQU-SORSQ ,
ld_o_sort_value  TYPE LRF_WKQU-SORSQ ,
ld_i_b_mnu_scr  TYPE LRF_WKQU-MMENU ,
ld_o_b_mnu_scr  TYPE LRF_WKQU-MMENU ,
ld_i_present  TYPE LRF_WKQU-DEVTY ,
ld_o_present  TYPE LRF_WKQU-DEVTY ,
ld_i_exver  TYPE LRF_WKQU-EXVER ,
ld_o_exver  TYPE LRF_WKQU-EXVER ,
ld_i_pernr  TYPE LRF_WKQU-PERNR ,
ld_o_pernr  TYPE LRF_WKQU-PERNR ,
ld_i_autho  TYPE LRF_WKQU-AUTHO ,
ld_o_autho  TYPE LRF_WKQU-AUTHO ,
ld_i_docnum  TYPE LRF_WKQU-DOCNUM ,
ld_o_docnum  TYPE LRF_WKQU-DOCNUM .


SELECT single LGNUM
FROM LRF_WKQU
INTO ld_i_whs_id.


SELECT single QUEUE
FROM LRF_WKQU
INTO ld_i_user_prf.


SELECT single SORSQ
FROM LRF_WKQU
INTO ld_i_sort_value.


SELECT single MMENU
FROM LRF_WKQU
INTO ld_i_b_mnu_scr.


SELECT single DEVTY
FROM LRF_WKQU
INTO ld_i_present.


SELECT single EXVER
FROM LRF_WKQU
INTO ld_i_exver.


SELECT single PERNR
FROM LRF_WKQU
INTO ld_i_pernr.


SELECT single AUTHO
FROM LRF_WKQU
INTO ld_i_autho.


SELECT single DOCNUM
FROM LRF_WKQU
INTO ld_i_docnum.

SAP Documentation for FM CALL_SCREEN_LOGON


This function selects user profile data from the table LRF_WKQU and passes them over to different global variables, which are used by all ...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 CALL_SCREEN_LOGON or its description.