SAP Function Modules

LXYRDM_SCREEN_DISPLAY SAP Function module - Display yard monitor screens







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

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


Pattern for FM LXYRDM_SCREEN_DISPLAY - LXYRDM SCREEN DISPLAY





CALL FUNCTION 'LXYRDM_SCREEN_DISPLAY' "Display yard monitor screens
  EXPORTING
    iv_lyard =                  " lxyrd_yard    Yard
    iv_screen =                 " sydynnr       ABAP program, number of current screen
*   iv_xleft =                  " i
*   iv_xright =                 " i
*   iv_ybottom =                " i
*   iv_ytop =                   " i
*   it_objkey =                 " index table
*   iv_dyn_str =                " any
  IMPORTING
    ev_okcode =                 " syucomm       Screens, function code triggered by PAI
    et_objkey =                 " index table
  EXCEPTIONS
    SERVICE_CANCEL = 1          "
    SERVICE_FAILURE = 2         "
    .  "  LXYRDM_SCREEN_DISPLAY

ABAP code example for Function Module LXYRDM_SCREEN_DISPLAY





The ABAP code below is a full code listing to execute function module LXYRDM_SCREEN_DISPLAY 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_ev_okcode  TYPE SYUCOMM ,
ld_et_objkey  TYPE INDEX TABLE .

DATA(ld_iv_lyard) = 'Check type of data required'.
DATA(ld_iv_screen) = 'some text here'.
DATA(ld_iv_xleft) = 'some text here'.
DATA(ld_iv_xright) = 'some text here'.
DATA(ld_iv_ybottom) = 'some text here'.
DATA(ld_iv_ytop) = 'some text here'.
DATA(ld_it_objkey) = 'some text here'.
DATA(ld_iv_dyn_str) = 'some text here'. . CALL FUNCTION 'LXYRDM_SCREEN_DISPLAY' EXPORTING iv_lyard = ld_iv_lyard iv_screen = ld_iv_screen * iv_xleft = ld_iv_xleft * iv_xright = ld_iv_xright * iv_ybottom = ld_iv_ybottom * iv_ytop = ld_iv_ytop * it_objkey = ld_it_objkey * iv_dyn_str = ld_iv_dyn_str IMPORTING ev_okcode = ld_ev_okcode et_objkey = ld_et_objkey EXCEPTIONS SERVICE_CANCEL = 1 SERVICE_FAILURE = 2 . " LXYRDM_SCREEN_DISPLAY
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_ev_okcode  TYPE SYUCOMM ,
ld_iv_lyard  TYPE LXYRD_YARD ,
ld_et_objkey  TYPE INDEX TABLE ,
ld_iv_screen  TYPE SYDYNNR ,
ld_iv_xleft  TYPE I ,
ld_iv_xright  TYPE I ,
ld_iv_ybottom  TYPE I ,
ld_iv_ytop  TYPE I ,
ld_it_objkey  TYPE INDEX TABLE ,
ld_iv_dyn_str  TYPE ANY .

ld_iv_lyard = 'some text here'.
ld_iv_screen = 'some text here'.
ld_iv_xleft = 'some text here'.
ld_iv_xright = 'some text here'.
ld_iv_ybottom = 'some text here'.
ld_iv_ytop = 'some text here'.
ld_it_objkey = 'some text here'.
ld_iv_dyn_str = 'some text here'.

SAP Documentation for FM LXYRDM_SCREEN_DISPLAY

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