SAP Function Modules

BSPWD_RT_REP_GET_WINDOW SAP Function module - Dialog popup for requesting Component Interface







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

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


Pattern for FM BSPWD_RT_REP_GET_WINDOW - BSPWD RT REP GET WINDOW





CALL FUNCTION 'BSPWD_RT_REP_GET_WINDOW' "Dialog popup for requesting Component Interface
  EXPORTING
    iv_persistence =            " cl_bsp_wd_rt_rep_persist  Runtime Repository Persistence Handler
*   iv_start_row = 5            " i
*   iv_start_col = 5            " i
  IMPORTING
    ev_window =                 " string        Full Window name
    ev_is_default_window =      " abap_bool     Flag for Default Window
    ev_switch_id =              " sfw_switchid  ID of Switch in Switch Framework
    ev_switch_reaction =        " sfw_showhide  Reaction to Switch
  EXCEPTIONS
    CANCELED = 1                "               Canceled by User
    .  "  BSPWD_RT_REP_GET_WINDOW

ABAP code example for Function Module BSPWD_RT_REP_GET_WINDOW





The ABAP code below is a full code listing to execute function module BSPWD_RT_REP_GET_WINDOW 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_window  TYPE STRING ,
ld_ev_is_default_window  TYPE ABAP_BOOL ,
ld_ev_switch_id  TYPE SFW_SWITCHID ,
ld_ev_switch_reaction  TYPE SFW_SHOWHIDE .

DATA(ld_iv_persistence) = 'Check type of data required'.
DATA(ld_iv_start_row) = 'Check type of data required'.
DATA(ld_iv_start_col) = 'Check type of data required'. . CALL FUNCTION 'BSPWD_RT_REP_GET_WINDOW' EXPORTING iv_persistence = ld_iv_persistence * iv_start_row = ld_iv_start_row * iv_start_col = ld_iv_start_col IMPORTING ev_window = ld_ev_window ev_is_default_window = ld_ev_is_default_window ev_switch_id = ld_ev_switch_id ev_switch_reaction = ld_ev_switch_reaction EXCEPTIONS CANCELED = 1 . " BSPWD_RT_REP_GET_WINDOW
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_ev_window  TYPE STRING ,
ld_iv_persistence  TYPE CL_BSP_WD_RT_REP_PERSIST ,
ld_ev_is_default_window  TYPE ABAP_BOOL ,
ld_iv_start_row  TYPE I ,
ld_ev_switch_id  TYPE SFW_SWITCHID ,
ld_iv_start_col  TYPE I ,
ld_ev_switch_reaction  TYPE SFW_SHOWHIDE .

ld_iv_persistence = 'Check type of data required'.
ld_iv_start_row = 'Check type of data required'.
ld_iv_start_col = 'Check type of data required'.

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