SAP Function Modules

RS_EDTR_SPLIT_SCREEN_EDIT SAP Function module







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

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


Pattern for FM RS_EDTR_SPLIT_SCREEN_EDIT - RS EDTR SPLIT SCREEN EDIT





CALL FUNCTION 'RS_EDTR_SPLIT_SCREEN_EDIT' "
  EXPORTING
*   start_with_compare = ' '    "               Start with Comparison
    display_l =                 "
    display_r =                 "
*   mod_enabled_l = 'X'         "
*   mod_enabled_r = 'X'         "
*   text_l =                    "
*   text_r =                    "
*   state_l =                   "
*   state_r =                   "
*   object_type_l = ' '         " s38e-app_id
*   object_type_r = ' '         " s38e-app_id
*   transport_key_l =           " trkey
*   transport_key_r =           " trkey
*   korrnum_l =                 " e070-trkorr
*   korrnum_r =                 " e070-trkorr
*   flg_extension_call = ' '    "               Enhancement mode
*   flg_inact_enabled = ' '     "
    trdir_wa_l =                " trdir
    trdir_wa_r =                " trdir
*   small_screen = ' '          "
*   flg_without_display = ' '   "
*   flg_without_init_cus = ' '  "
*   flg_tmp_stor_comp = ' '     "
*   flg_remote_r = ' '          "
  IMPORTING
    compare_result =            "
  TABLES
    source_l =                  " rswsourcet
    source_r =                  " rswsourcet
*   lineindex_l =               "
*   lineindex_r =               "
  EXCEPTIONS
    PARAMETER_INVALID = 1       "               Invalid parameter
    .  "  RS_EDTR_SPLIT_SCREEN_EDIT

ABAP code example for Function Module RS_EDTR_SPLIT_SCREEN_EDIT





The ABAP code below is a full code listing to execute function module RS_EDTR_SPLIT_SCREEN_EDIT 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_compare_result  TYPE STRING ,
it_source_l  TYPE STANDARD TABLE OF RSWSOURCET,"TABLES PARAM
wa_source_l  LIKE LINE OF it_source_l ,
it_source_r  TYPE STANDARD TABLE OF RSWSOURCET,"TABLES PARAM
wa_source_r  LIKE LINE OF it_source_r ,
it_lineindex_l  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_lineindex_l  LIKE LINE OF it_lineindex_l ,
it_lineindex_r  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_lineindex_r  LIKE LINE OF it_lineindex_r .

DATA(ld_start_with_compare) = 'some text here'.
DATA(ld_display_l) = 'some text here'.
DATA(ld_display_r) = 'some text here'.
DATA(ld_mod_enabled_l) = 'some text here'.
DATA(ld_mod_enabled_r) = 'some text here'.
DATA(ld_text_l) = 'some text here'.
DATA(ld_text_r) = 'some text here'.
DATA(ld_state_l) = 'some text here'.
DATA(ld_state_r) = 'some text here'.

DATA(ld_object_type_l) = some text here

DATA(ld_object_type_r) = some text here
DATA(ld_transport_key_l) = 'Check type of data required'.
DATA(ld_transport_key_r) = 'Check type of data required'.

SELECT single TRKORR
FROM E070
INTO @DATA(ld_korrnum_l).


SELECT single TRKORR
FROM E070
INTO @DATA(ld_korrnum_r).

DATA(ld_flg_extension_call) = 'some text here'.
DATA(ld_flg_inact_enabled) = 'some text here'.
DATA(ld_trdir_wa_l) = 'Check type of data required'.
DATA(ld_trdir_wa_r) = 'Check type of data required'.
DATA(ld_small_screen) = 'some text here'.
DATA(ld_flg_without_display) = 'some text here'.
DATA(ld_flg_without_init_cus) = 'some text here'.
DATA(ld_flg_tmp_stor_comp) = 'some text here'.
DATA(ld_flg_remote_r) = 'some text here'.

"populate fields of struture and append to itab
append wa_source_l to it_source_l.

"populate fields of struture and append to itab
append wa_source_r to it_source_r.

"populate fields of struture and append to itab
append wa_lineindex_l to it_lineindex_l.

"populate fields of struture and append to itab
append wa_lineindex_r to it_lineindex_r. . CALL FUNCTION 'RS_EDTR_SPLIT_SCREEN_EDIT' EXPORTING * start_with_compare = ld_start_with_compare display_l = ld_display_l display_r = ld_display_r * mod_enabled_l = ld_mod_enabled_l * mod_enabled_r = ld_mod_enabled_r * text_l = ld_text_l * text_r = ld_text_r * state_l = ld_state_l * state_r = ld_state_r * object_type_l = ld_object_type_l * object_type_r = ld_object_type_r * transport_key_l = ld_transport_key_l * transport_key_r = ld_transport_key_r * korrnum_l = ld_korrnum_l * korrnum_r = ld_korrnum_r * flg_extension_call = ld_flg_extension_call * flg_inact_enabled = ld_flg_inact_enabled trdir_wa_l = ld_trdir_wa_l trdir_wa_r = ld_trdir_wa_r * small_screen = ld_small_screen * flg_without_display = ld_flg_without_display * flg_without_init_cus = ld_flg_without_init_cus * flg_tmp_stor_comp = ld_flg_tmp_stor_comp * flg_remote_r = ld_flg_remote_r IMPORTING compare_result = ld_compare_result TABLES source_l = it_source_l source_r = it_source_r * lineindex_l = it_lineindex_l * lineindex_r = it_lineindex_r EXCEPTIONS PARAMETER_INVALID = 1 . " RS_EDTR_SPLIT_SCREEN_EDIT
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_compare_result  TYPE STRING ,
ld_start_with_compare  TYPE STRING ,
it_source_l  TYPE STANDARD TABLE OF RSWSOURCET ,
wa_source_l  LIKE LINE OF it_source_l,
ld_display_l  TYPE STRING ,
it_source_r  TYPE STANDARD TABLE OF RSWSOURCET ,
wa_source_r  LIKE LINE OF it_source_r,
ld_display_r  TYPE STRING ,
it_lineindex_l  TYPE STANDARD TABLE OF STRING ,
wa_lineindex_l  LIKE LINE OF it_lineindex_l,
ld_mod_enabled_l  TYPE STRING ,
it_lineindex_r  TYPE STANDARD TABLE OF STRING ,
wa_lineindex_r  LIKE LINE OF it_lineindex_r,
ld_mod_enabled_r  TYPE STRING ,
ld_text_l  TYPE STRING ,
ld_text_r  TYPE STRING ,
ld_state_l  TYPE STRING ,
ld_state_r  TYPE STRING ,
ld_object_type_l  TYPE S38E-APP_ID ,
ld_object_type_r  TYPE S38E-APP_ID ,
ld_transport_key_l  TYPE TRKEY ,
ld_transport_key_r  TYPE TRKEY ,
ld_korrnum_l  TYPE E070-TRKORR ,
ld_korrnum_r  TYPE E070-TRKORR ,
ld_flg_extension_call  TYPE STRING ,
ld_flg_inact_enabled  TYPE STRING ,
ld_trdir_wa_l  TYPE TRDIR ,
ld_trdir_wa_r  TYPE TRDIR ,
ld_small_screen  TYPE STRING ,
ld_flg_without_display  TYPE STRING ,
ld_flg_without_init_cus  TYPE STRING ,
ld_flg_tmp_stor_comp  TYPE STRING ,
ld_flg_remote_r  TYPE STRING .

ld_start_with_compare = 'some text here'.

"populate fields of struture and append to itab
append wa_source_l to it_source_l.
ld_display_l = 'some text here'.

"populate fields of struture and append to itab
append wa_source_r to it_source_r.
ld_display_r = 'some text here'.

"populate fields of struture and append to itab
append wa_lineindex_l to it_lineindex_l.
ld_mod_enabled_l = 'some text here'.

"populate fields of struture and append to itab
append wa_lineindex_r to it_lineindex_r.
ld_mod_enabled_r = 'some text here'.
ld_text_l = 'some text here'.
ld_text_r = 'some text here'.
ld_state_l = 'some text here'.
ld_state_r = 'some text here'.

ld_object_type_l = some text here

ld_object_type_r = some text here
ld_transport_key_l = 'Check type of data required'.
ld_transport_key_r = 'Check type of data required'.

SELECT single TRKORR
FROM E070
INTO ld_korrnum_l.


SELECT single TRKORR
FROM E070
INTO ld_korrnum_r.

ld_flg_extension_call = 'some text here'.
ld_flg_inact_enabled = 'some text here'.
ld_trdir_wa_l = 'Check type of data required'.
ld_trdir_wa_r = 'Check type of data required'.
ld_small_screen = 'some text here'.
ld_flg_without_display = 'some text here'.
ld_flg_without_init_cus = 'some text here'.
ld_flg_tmp_stor_comp = 'some text here'.
ld_flg_remote_r = 'some text here'.

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