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