SAP Function Modules

CALL_SPLIT SAP Function module







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

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


Pattern for FM CALL_SPLIT - CALL SPLIT





CALL FUNCTION 'CALL_SPLIT' "
  EXPORTING
    program_left =              " trdir-name
    program_right =             " trdir-name
*   trdir_inf_left =            " trdir
*   trdir_inf_right =           " trdir
*   display_left = 'X'          "
*   display_right = 'X'         "
*   title_left =                "
    title_right =               "
*   appid = '$$'                " s38e-app_id
*   ed_cursor_left =            " editcursor
*   ed_cursor_right =           " editcursor
*   callback_program_left = SPACE  " trdir-name
*   callback_program_right = SPACE  " trdir-name
*   callback_usercom_left = SPACE  " rstxp-tdobject  Name of a module integrated into navigation
*   callback_usercom_right = SPACE  " rstxp-tdobject  Name of a module integrated into navigation
*   callback_set_pfkey_left = SPACE  " rstxp-tdobject  Name of a module integrated into navigation
*   callback_set_pfkey_right = SPACE  " rstxp-tdobject  Name of a module integrated into navigation
*   callback_check_left = SPACE  " rstxp-tdobject  Name of a module integrated into navigation
*   callback_check_right = SPACE  " rstxp-tdobject  Name of a module integrated into navigation
*   callback_save_left = SPACE  " rstxp-tdobject  Name of a module integrated into navigation
*   callback_save_right = SPACE  " rstxp-tdobject  Name of a module integrated into navigation
*   callback_before_function_left = SPACE  " rstxp-tdobject  Name of a module integrated into navigation
*   callback_before_function_right = SPACE  " rstxp-tdobject  Name of a module integrated into navigation
*   callback_after_function_left = SPACE  " rstxp-tdobject  Name of a module integrated into navigation
*   callback_after_function_right = SPACE  " rstxp-tdobject  Name of a module integrated into navigation
*   callback_second_level = SPACE  " rstxp-tdobject  Name of a module integrated into navigation
*   editor_mode_left =          " editormode
*   editor_mode_right =         " editormode
*   transport_key_left =        " trkey
*   transport_key_right =       " trkey
*   korrnum_left =              " e071-trkorr
*   korrnum_right =             " e071-trkorr
*   status_left =               "
*   status_right =              "
*   comment_ignore_flag = SPACE  "
*   small_screen = SPACE        "
*   wnd_mode = '0'              " rseumod-edc_wndmod
* TABLES
*   left_tab =                  " rswsourcet    ABAP Source Line
*   right_tab =                 " rswsourcet    ABAP Source Line
*   lineindex_left =            " edlineindx
*   lineindex_right =           " edlineindx
*   smodilog_abap_left =        " smodilog
*   mod_tab_left =              " smodi_mod_tab
*   smodilog_abap_right =       " smodilog
*   mod_tab_right =             " smodi_mod_tab
    .  "  CALL_SPLIT

ABAP code example for Function Module CALL_SPLIT





The ABAP code below is a full code listing to execute function module CALL_SPLIT 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:
it_left_tab  TYPE STANDARD TABLE OF RSWSOURCET,"TABLES PARAM
wa_left_tab  LIKE LINE OF it_left_tab ,
it_right_tab  TYPE STANDARD TABLE OF RSWSOURCET,"TABLES PARAM
wa_right_tab  LIKE LINE OF it_right_tab ,
it_lineindex_left  TYPE STANDARD TABLE OF EDLINEINDX,"TABLES PARAM
wa_lineindex_left  LIKE LINE OF it_lineindex_left ,
it_lineindex_right  TYPE STANDARD TABLE OF EDLINEINDX,"TABLES PARAM
wa_lineindex_right  LIKE LINE OF it_lineindex_right ,
it_smodilog_abap_left  TYPE STANDARD TABLE OF SMODILOG,"TABLES PARAM
wa_smodilog_abap_left  LIKE LINE OF it_smodilog_abap_left ,
it_mod_tab_left  TYPE STANDARD TABLE OF SMODI_MOD_TAB,"TABLES PARAM
wa_mod_tab_left  LIKE LINE OF it_mod_tab_left ,
it_smodilog_abap_right  TYPE STANDARD TABLE OF SMODILOG,"TABLES PARAM
wa_smodilog_abap_right  LIKE LINE OF it_smodilog_abap_right ,
it_mod_tab_right  TYPE STANDARD TABLE OF SMODI_MOD_TAB,"TABLES PARAM
wa_mod_tab_right  LIKE LINE OF it_mod_tab_right .


SELECT single NAME
FROM TRDIR
INTO @DATA(ld_program_left).


SELECT single NAME
FROM TRDIR
INTO @DATA(ld_program_right).

DATA(ld_trdir_inf_left) = 'Check type of data required'.
DATA(ld_trdir_inf_right) = 'Check type of data required'.
DATA(ld_display_left) = 'some text here'.
DATA(ld_display_right) = 'some text here'.
DATA(ld_title_left) = 'some text here'.
DATA(ld_title_right) = 'some text here'.

DATA(ld_appid) = some text here
DATA(ld_ed_cursor_left) = 'Check type of data required'.
DATA(ld_ed_cursor_right) = 'Check type of data required'.

SELECT single NAME
FROM TRDIR
INTO @DATA(ld_callback_program_left).


SELECT single NAME
FROM TRDIR
INTO @DATA(ld_callback_program_right).


DATA(ld_callback_usercom_left) = some text here

DATA(ld_callback_usercom_right) = some text here

DATA(ld_callback_set_pfkey_left) = some text here

DATA(ld_callback_set_pfkey_right) = some text here

DATA(ld_callback_check_left) = some text here

DATA(ld_callback_check_right) = some text here

DATA(ld_callback_save_left) = some text here

DATA(ld_callback_save_right) = some text here

DATA(ld_callback_before_function_left) = some text here

DATA(ld_callback_before_function_right) = some text here

DATA(ld_callback_after_function_left) = some text here

DATA(ld_callback_after_function_right) = some text here

DATA(ld_callback_second_level) = some text here
DATA(ld_editor_mode_left) = 'Check type of data required'.
DATA(ld_editor_mode_right) = 'Check type of data required'.
DATA(ld_transport_key_left) = 'Check type of data required'.
DATA(ld_transport_key_right) = 'Check type of data required'.

SELECT single TRKORR
FROM E071
INTO @DATA(ld_korrnum_left).


SELECT single TRKORR
FROM E071
INTO @DATA(ld_korrnum_right).

DATA(ld_status_left) = 'some text here'.
DATA(ld_status_right) = 'some text here'.
DATA(ld_comment_ignore_flag) = 'some text here'.
DATA(ld_small_screen) = 'some text here'.

SELECT single EDC_WNDMOD
FROM RSEUMOD
INTO @DATA(ld_wnd_mode).


"populate fields of struture and append to itab
append wa_left_tab to it_left_tab.

"populate fields of struture and append to itab
append wa_right_tab to it_right_tab.

"populate fields of struture and append to itab
append wa_lineindex_left to it_lineindex_left.

"populate fields of struture and append to itab
append wa_lineindex_right to it_lineindex_right.

"populate fields of struture and append to itab
append wa_smodilog_abap_left to it_smodilog_abap_left.

"populate fields of struture and append to itab
append wa_mod_tab_left to it_mod_tab_left.

"populate fields of struture and append to itab
append wa_smodilog_abap_right to it_smodilog_abap_right.

"populate fields of struture and append to itab
append wa_mod_tab_right to it_mod_tab_right. . CALL FUNCTION 'CALL_SPLIT' EXPORTING program_left = ld_program_left program_right = ld_program_right * trdir_inf_left = ld_trdir_inf_left * trdir_inf_right = ld_trdir_inf_right * display_left = ld_display_left * display_right = ld_display_right * title_left = ld_title_left title_right = ld_title_right * appid = ld_appid * ed_cursor_left = ld_ed_cursor_left * ed_cursor_right = ld_ed_cursor_right * callback_program_left = ld_callback_program_left * callback_program_right = ld_callback_program_right * callback_usercom_left = ld_callback_usercom_left * callback_usercom_right = ld_callback_usercom_right * callback_set_pfkey_left = ld_callback_set_pfkey_left * callback_set_pfkey_right = ld_callback_set_pfkey_right * callback_check_left = ld_callback_check_left * callback_check_right = ld_callback_check_right * callback_save_left = ld_callback_save_left * callback_save_right = ld_callback_save_right * callback_before_function_left = ld_callback_before_function_left * callback_before_function_right = ld_callback_before_function_right * callback_after_function_left = ld_callback_after_function_left * callback_after_function_right = ld_callback_after_function_right * callback_second_level = ld_callback_second_level * editor_mode_left = ld_editor_mode_left * editor_mode_right = ld_editor_mode_right * transport_key_left = ld_transport_key_left * transport_key_right = ld_transport_key_right * korrnum_left = ld_korrnum_left * korrnum_right = ld_korrnum_right * status_left = ld_status_left * status_right = ld_status_right * comment_ignore_flag = ld_comment_ignore_flag * small_screen = ld_small_screen * wnd_mode = ld_wnd_mode * TABLES * left_tab = it_left_tab * right_tab = it_right_tab * lineindex_left = it_lineindex_left * lineindex_right = it_lineindex_right * smodilog_abap_left = it_smodilog_abap_left * mod_tab_left = it_mod_tab_left * smodilog_abap_right = it_smodilog_abap_right * mod_tab_right = it_mod_tab_right . " CALL_SPLIT
IF SY-SUBRC EQ 0. "All OK 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_program_left  TYPE TRDIR-NAME ,
it_left_tab  TYPE STANDARD TABLE OF RSWSOURCET ,
wa_left_tab  LIKE LINE OF it_left_tab,
ld_program_right  TYPE TRDIR-NAME ,
it_right_tab  TYPE STANDARD TABLE OF RSWSOURCET ,
wa_right_tab  LIKE LINE OF it_right_tab,
ld_trdir_inf_left  TYPE TRDIR ,
it_lineindex_left  TYPE STANDARD TABLE OF EDLINEINDX ,
wa_lineindex_left  LIKE LINE OF it_lineindex_left,
ld_trdir_inf_right  TYPE TRDIR ,
it_lineindex_right  TYPE STANDARD TABLE OF EDLINEINDX ,
wa_lineindex_right  LIKE LINE OF it_lineindex_right,
ld_display_left  TYPE STRING ,
it_smodilog_abap_left  TYPE STANDARD TABLE OF SMODILOG ,
wa_smodilog_abap_left  LIKE LINE OF it_smodilog_abap_left,
ld_display_right  TYPE STRING ,
it_mod_tab_left  TYPE STANDARD TABLE OF SMODI_MOD_TAB ,
wa_mod_tab_left  LIKE LINE OF it_mod_tab_left,
ld_title_left  TYPE STRING ,
it_smodilog_abap_right  TYPE STANDARD TABLE OF SMODILOG ,
wa_smodilog_abap_right  LIKE LINE OF it_smodilog_abap_right,
ld_title_right  TYPE STRING ,
it_mod_tab_right  TYPE STANDARD TABLE OF SMODI_MOD_TAB ,
wa_mod_tab_right  LIKE LINE OF it_mod_tab_right,
ld_appid  TYPE S38E-APP_ID ,
ld_ed_cursor_left  TYPE EDITCURSOR ,
ld_ed_cursor_right  TYPE EDITCURSOR ,
ld_callback_program_left  TYPE TRDIR-NAME ,
ld_callback_program_right  TYPE TRDIR-NAME ,
ld_callback_usercom_left  TYPE RSTXP-TDOBJECT ,
ld_callback_usercom_right  TYPE RSTXP-TDOBJECT ,
ld_callback_set_pfkey_left  TYPE RSTXP-TDOBJECT ,
ld_callback_set_pfkey_right  TYPE RSTXP-TDOBJECT ,
ld_callback_check_left  TYPE RSTXP-TDOBJECT ,
ld_callback_check_right  TYPE RSTXP-TDOBJECT ,
ld_callback_save_left  TYPE RSTXP-TDOBJECT ,
ld_callback_save_right  TYPE RSTXP-TDOBJECT ,
ld_callback_before_function_left  TYPE RSTXP-TDOBJECT ,
ld_callback_before_function_right  TYPE RSTXP-TDOBJECT ,
ld_callback_after_function_left  TYPE RSTXP-TDOBJECT ,
ld_callback_after_function_right  TYPE RSTXP-TDOBJECT ,
ld_callback_second_level  TYPE RSTXP-TDOBJECT ,
ld_editor_mode_left  TYPE EDITORMODE ,
ld_editor_mode_right  TYPE EDITORMODE ,
ld_transport_key_left  TYPE TRKEY ,
ld_transport_key_right  TYPE TRKEY ,
ld_korrnum_left  TYPE E071-TRKORR ,
ld_korrnum_right  TYPE E071-TRKORR ,
ld_status_left  TYPE STRING ,
ld_status_right  TYPE STRING ,
ld_comment_ignore_flag  TYPE STRING ,
ld_small_screen  TYPE STRING ,
ld_wnd_mode  TYPE RSEUMOD-EDC_WNDMOD .


SELECT single NAME
FROM TRDIR
INTO ld_program_left.


"populate fields of struture and append to itab
append wa_left_tab to it_left_tab.

SELECT single NAME
FROM TRDIR
INTO ld_program_right.


"populate fields of struture and append to itab
append wa_right_tab to it_right_tab.
ld_trdir_inf_left = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_lineindex_left to it_lineindex_left.
ld_trdir_inf_right = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_lineindex_right to it_lineindex_right.
ld_display_left = 'some text here'.

"populate fields of struture and append to itab
append wa_smodilog_abap_left to it_smodilog_abap_left.
ld_display_right = 'some text here'.

"populate fields of struture and append to itab
append wa_mod_tab_left to it_mod_tab_left.
ld_title_left = 'some text here'.

"populate fields of struture and append to itab
append wa_smodilog_abap_right to it_smodilog_abap_right.
ld_title_right = 'some text here'.

"populate fields of struture and append to itab
append wa_mod_tab_right to it_mod_tab_right.

ld_appid = some text here
ld_ed_cursor_left = 'Check type of data required'.
ld_ed_cursor_right = 'Check type of data required'.

SELECT single NAME
FROM TRDIR
INTO ld_callback_program_left.


SELECT single NAME
FROM TRDIR
INTO ld_callback_program_right.


ld_callback_usercom_left = some text here

ld_callback_usercom_right = some text here

ld_callback_set_pfkey_left = some text here

ld_callback_set_pfkey_right = some text here

ld_callback_check_left = some text here

ld_callback_check_right = some text here

ld_callback_save_left = some text here

ld_callback_save_right = some text here

ld_callback_before_function_left = some text here

ld_callback_before_function_right = some text here

ld_callback_after_function_left = some text here

ld_callback_after_function_right = some text here

ld_callback_second_level = some text here
ld_editor_mode_left = 'Check type of data required'.
ld_editor_mode_right = 'Check type of data required'.
ld_transport_key_left = 'Check type of data required'.
ld_transport_key_right = 'Check type of data required'.

SELECT single TRKORR
FROM E071
INTO ld_korrnum_left.


SELECT single TRKORR
FROM E071
INTO ld_korrnum_right.

ld_status_left = 'some text here'.
ld_status_right = 'some text here'.
ld_comment_ignore_flag = 'some text here'.
ld_small_screen = 'some text here'.

SELECT single EDC_WNDMOD
FROM RSEUMOD
INTO ld_wnd_mode.

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