SAP Function Modules

RESET_OUTPUT_E SAP Function module







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

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


Pattern for FM RESET_OUTPUT_E - RESET OUTPUT E





CALL FUNCTION 'RESET_OUTPUT_E' "
* EXPORTING
*   callback_program =          " trdir-name
*   callback_usercom =          " rstxp-tdobject  Name of a module integrated into navigation
*   callback_set_pfkey =        " rstxp-tdobject  Name of a module integrated into navigation
*   callback_check =            " rstxp-tdobject  Name of a module integrated into navigation
*   callback_save =             " rstxp-tdobject  Name of a module integrated into navigation
*   callback_before_function =   " rstxp-tdobject  Name of a module integrated into navigation
*   callback_after_function =   " rstxp-tdobject  Name of a module integrated into navigation
*   line_name = 'RSTXP-TDLINE'  "
*   first_name = 'RSTXP-TDFIRST'  "
*   last_name = 'RSTXP-TDLAST'  "
*   total_name = 'RSTXP-TDTOTAL'  "
*   commline_name = 'RSTXP-TDCOMMLINE'  "
*   linecom_name = 'RSTXP-TDLINECOM'  "
*   mark_name = 'RSTXP-TDMARK'  "
*   mark1_name = 'RSTXP-TDMARK1'  "
*   headline_name = 'RSTXP-TDHEADLINE'  "
*   split_call = SPACE          "
*   c_handle =                  " cl_wb_editor
  TABLES
    content =                   " rswsourcet    ABAP Source Line
    content_c =                 " rswsourcet    ABAP Source Line
    page =                      " rswsourcet    ABAP Source Line
    lineindex =                 " edlineindx
    linenum =                   " edlinenum
    step =                      " edstep
    tk =                        " sedi_tk       Extended String Description of Token in ABAP Source Analysis
    stm =                       " sstmnt
    message_tab_i =             " abapsource    ABAP Source Line
    smodilog_abap =             " smodilog
    mod_tab =                   " smodi_mod_tab
  CHANGING
    edit =                      " s38e
    dynpro_lines =              " sy-index
    scanned =                   "
    new_source =                "
    overflow_area =             "
    msg =                       "
    incl =                      "
    row =                       "
    col =                       "
    wrd =                       "
    undo_exported =             "
    linecom_was_executed =      "
    content_app_id =            " s38e-app_id
    tdparam2 =                  " rstxp-tdparam  EDIC: Function parameters
    output_bottom =             "
    fcode_i =                   " tse02-progfun
    fcode_save =                "
    auto_correct =              "
    lines_appended =            " sy-index
    tdheadline =                " rstxp-tdheadline  EDIC: Header
    no_input_flag =             "
    extend_mod =                "
    control_content =           " cxtab_control
*   editor_mode =               " editormode
    cursor_i =                  "
    name_wout_namespace =       "
*   icon_dynp_akt_gen =         " smp_dyntxt
    enter_w =                   " tse04-linecomtxt
    komprmode =                 "
    case_mode =                 "
    s_modified =                "
    last_content_display =      " sy-index
    content_display =           " sy-index
    content_fill =              " sy-index
    exclude_filled =            "
    suppress_dialog_flag =      "
    edit_control =              "
    dynnr_changed =             "
    editor_content_modified =   "
    old_fcode =                 " tse02-progfun
    pcmode =                    "
    lineal_mode =               "
    mark_flag =                 "
    status_flag =               "
*   c_editor =                  " object
*   transport_key =             " trkey
    .  "  RESET_OUTPUT_E

ABAP code example for Function Module RESET_OUTPUT_E





The ABAP code below is a full code listing to execute function module RESET_OUTPUT_E 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_content  TYPE STANDARD TABLE OF RSWSOURCET,"TABLES PARAM
wa_content  LIKE LINE OF it_content ,
it_content_c  TYPE STANDARD TABLE OF RSWSOURCET,"TABLES PARAM
wa_content_c  LIKE LINE OF it_content_c ,
it_page  TYPE STANDARD TABLE OF RSWSOURCET,"TABLES PARAM
wa_page  LIKE LINE OF it_page ,
it_lineindex  TYPE STANDARD TABLE OF EDLINEINDX,"TABLES PARAM
wa_lineindex  LIKE LINE OF it_lineindex ,
it_linenum  TYPE STANDARD TABLE OF EDLINENUM,"TABLES PARAM
wa_linenum  LIKE LINE OF it_linenum ,
it_step  TYPE STANDARD TABLE OF EDSTEP,"TABLES PARAM
wa_step  LIKE LINE OF it_step ,
it_tk  TYPE STANDARD TABLE OF SEDI_TK,"TABLES PARAM
wa_tk  LIKE LINE OF it_tk ,
it_stm  TYPE STANDARD TABLE OF SSTMNT,"TABLES PARAM
wa_stm  LIKE LINE OF it_stm ,
it_message_tab_i  TYPE STANDARD TABLE OF ABAPSOURCE,"TABLES PARAM
wa_message_tab_i  LIKE LINE OF it_message_tab_i ,
it_smodilog_abap  TYPE STANDARD TABLE OF SMODILOG,"TABLES PARAM
wa_smodilog_abap  LIKE LINE OF it_smodilog_abap ,
it_mod_tab  TYPE STANDARD TABLE OF SMODI_MOD_TAB,"TABLES PARAM
wa_mod_tab  LIKE LINE OF it_mod_tab .

DATA(ld_edit) = 'Check type of data required'.
DATA(ld_dynpro_lines) = '123 '.
DATA(ld_scanned) = 'some text here'.
DATA(ld_new_source) = 'some text here'.
DATA(ld_overflow_area) = 'some text here'.
DATA(ld_msg) = 'some text here'.
DATA(ld_incl) = 'some text here'.
DATA(ld_row) = 'some text here'.
DATA(ld_col) = 'some text here'.
DATA(ld_wrd) = 'some text here'.
DATA(ld_undo_exported) = 'some text here'.
DATA(ld_linecom_was_executed) = 'some text here'.

DATA(ld_content_app_id) = some text here

DATA(ld_tdparam2) = some text here
DATA(ld_output_bottom) = 'some text here'.

SELECT single PROGFUN
FROM TSE02
INTO @DATA(ld_fcode_i).

DATA(ld_fcode_save) = 'some text here'.
DATA(ld_auto_correct) = 'some text here'.
DATA(ld_lines_appended) = '123 '.

DATA(ld_tdheadline) = some text here
DATA(ld_no_input_flag) = 'some text here'.
DATA(ld_extend_mod) = 'some text here'.
DATA(ld_control_content) = '123 '.
DATA(ld_editor_mode) = '123 '.
DATA(ld_cursor_i) = 'some text here'.
DATA(ld_name_wout_namespace) = 'some text here'.
DATA(ld_icon_dynp_akt_gen) = '123 '.

SELECT single LINECOMTXT
FROM TSE04
INTO @DATA(ld_enter_w).

DATA(ld_komprmode) = 'some text here'.
DATA(ld_case_mode) = 'some text here'.
DATA(ld_s_modified) = 'some text here'.
DATA(ld_last_content_display) = '123 '.
DATA(ld_content_display) = '123 '.
DATA(ld_content_fill) = '123 '.
DATA(ld_exclude_filled) = 'some text here'.
DATA(ld_suppress_dialog_flag) = 'some text here'.
DATA(ld_edit_control) = 'some text here'.
DATA(ld_dynnr_changed) = 'some text here'.
DATA(ld_editor_content_modified) = 'some text here'.

SELECT single PROGFUN
FROM TSE02
INTO @DATA(ld_old_fcode).

DATA(ld_pcmode) = 'some text here'.
DATA(ld_lineal_mode) = 'some text here'.
DATA(ld_mark_flag) = 'some text here'.
DATA(ld_status_flag) = 'some text here'.
DATA(ld_c_editor) = '123 '.
DATA(ld_transport_key) = '123 '.

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


DATA(ld_callback_usercom) = some text here

DATA(ld_callback_set_pfkey) = some text here

DATA(ld_callback_check) = some text here

DATA(ld_callback_save) = some text here

DATA(ld_callback_before_function) = some text here

DATA(ld_callback_after_function) = some text here
DATA(ld_line_name) = 'some text here'.
DATA(ld_first_name) = 'some text here'.
DATA(ld_last_name) = 'some text here'.
DATA(ld_total_name) = 'some text here'.
DATA(ld_commline_name) = 'some text here'.
DATA(ld_linecom_name) = 'some text here'.
DATA(ld_mark_name) = 'some text here'.
DATA(ld_mark1_name) = 'some text here'.
DATA(ld_headline_name) = 'some text here'.
DATA(ld_split_call) = 'some text here'.
DATA(ld_c_handle) = '123 '.

"populate fields of struture and append to itab
append wa_content to it_content.

"populate fields of struture and append to itab
append wa_content_c to it_content_c.

"populate fields of struture and append to itab
append wa_page to it_page.

"populate fields of struture and append to itab
append wa_lineindex to it_lineindex.

"populate fields of struture and append to itab
append wa_linenum to it_linenum.

"populate fields of struture and append to itab
append wa_step to it_step.

"populate fields of struture and append to itab
append wa_tk to it_tk.

"populate fields of struture and append to itab
append wa_stm to it_stm.

"populate fields of struture and append to itab
append wa_message_tab_i to it_message_tab_i.

"populate fields of struture and append to itab
append wa_smodilog_abap to it_smodilog_abap.

"populate fields of struture and append to itab
append wa_mod_tab to it_mod_tab. . CALL FUNCTION 'RESET_OUTPUT_E' * EXPORTING * callback_program = ld_callback_program * callback_usercom = ld_callback_usercom * callback_set_pfkey = ld_callback_set_pfkey * callback_check = ld_callback_check * callback_save = ld_callback_save * callback_before_function = ld_callback_before_function * callback_after_function = ld_callback_after_function * line_name = ld_line_name * first_name = ld_first_name * last_name = ld_last_name * total_name = ld_total_name * commline_name = ld_commline_name * linecom_name = ld_linecom_name * mark_name = ld_mark_name * mark1_name = ld_mark1_name * headline_name = ld_headline_name * split_call = ld_split_call * c_handle = ld_c_handle TABLES content = it_content content_c = it_content_c page = it_page lineindex = it_lineindex linenum = it_linenum step = it_step tk = it_tk stm = it_stm message_tab_i = it_message_tab_i smodilog_abap = it_smodilog_abap mod_tab = it_mod_tab CHANGING edit = ld_edit dynpro_lines = ld_dynpro_lines scanned = ld_scanned new_source = ld_new_source overflow_area = ld_overflow_area msg = ld_msg incl = ld_incl row = ld_row col = ld_col wrd = ld_wrd undo_exported = ld_undo_exported linecom_was_executed = ld_linecom_was_executed content_app_id = ld_content_app_id tdparam2 = ld_tdparam2 output_bottom = ld_output_bottom fcode_i = ld_fcode_i fcode_save = ld_fcode_save auto_correct = ld_auto_correct lines_appended = ld_lines_appended tdheadline = ld_tdheadline no_input_flag = ld_no_input_flag extend_mod = ld_extend_mod control_content = ld_control_content * editor_mode = ld_editor_mode cursor_i = ld_cursor_i name_wout_namespace = ld_name_wout_namespace * icon_dynp_akt_gen = ld_icon_dynp_akt_gen enter_w = ld_enter_w komprmode = ld_komprmode case_mode = ld_case_mode s_modified = ld_s_modified last_content_display = ld_last_content_display content_display = ld_content_display content_fill = ld_content_fill exclude_filled = ld_exclude_filled suppress_dialog_flag = ld_suppress_dialog_flag edit_control = ld_edit_control dynnr_changed = ld_dynnr_changed editor_content_modified = ld_editor_content_modified old_fcode = ld_old_fcode pcmode = ld_pcmode lineal_mode = ld_lineal_mode mark_flag = ld_mark_flag status_flag = ld_status_flag * c_editor = ld_c_editor * transport_key = ld_transport_key . " RESET_OUTPUT_E
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_edit  TYPE S38E ,
it_content  TYPE STANDARD TABLE OF RSWSOURCET ,
wa_content  LIKE LINE OF it_content,
ld_callback_program  TYPE TRDIR-NAME ,
ld_dynpro_lines  TYPE SY-INDEX ,
it_content_c  TYPE STANDARD TABLE OF RSWSOURCET ,
wa_content_c  LIKE LINE OF it_content_c,
ld_callback_usercom  TYPE RSTXP-TDOBJECT ,
ld_scanned  TYPE STRING ,
it_page  TYPE STANDARD TABLE OF RSWSOURCET ,
wa_page  LIKE LINE OF it_page,
ld_callback_set_pfkey  TYPE RSTXP-TDOBJECT ,
ld_new_source  TYPE STRING ,
it_lineindex  TYPE STANDARD TABLE OF EDLINEINDX ,
wa_lineindex  LIKE LINE OF it_lineindex,
ld_callback_check  TYPE RSTXP-TDOBJECT ,
ld_overflow_area  TYPE STRING ,
it_linenum  TYPE STANDARD TABLE OF EDLINENUM ,
wa_linenum  LIKE LINE OF it_linenum,
ld_callback_save  TYPE RSTXP-TDOBJECT ,
it_step  TYPE STANDARD TABLE OF EDSTEP ,
wa_step  LIKE LINE OF it_step,
ld_callback_before_function  TYPE RSTXP-TDOBJECT ,
ld_msg  TYPE STRING ,
ld_callback_after_function  TYPE RSTXP-TDOBJECT ,
it_tk  TYPE STANDARD TABLE OF SEDI_TK ,
wa_tk  LIKE LINE OF it_tk,
ld_incl  TYPE STRING ,
ld_line_name  TYPE STRING ,
ld_row  TYPE STRING ,
it_stm  TYPE STANDARD TABLE OF SSTMNT ,
wa_stm  LIKE LINE OF it_stm,
ld_first_name  TYPE STRING ,
ld_col  TYPE STRING ,
it_message_tab_i  TYPE STANDARD TABLE OF ABAPSOURCE ,
wa_message_tab_i  LIKE LINE OF it_message_tab_i,
ld_last_name  TYPE STRING ,
ld_wrd  TYPE STRING ,
it_smodilog_abap  TYPE STANDARD TABLE OF SMODILOG ,
wa_smodilog_abap  LIKE LINE OF it_smodilog_abap,
ld_total_name  TYPE STRING ,
ld_undo_exported  TYPE STRING ,
it_mod_tab  TYPE STANDARD TABLE OF SMODI_MOD_TAB ,
wa_mod_tab  LIKE LINE OF it_mod_tab,
ld_commline_name  TYPE STRING ,
ld_linecom_was_executed  TYPE STRING ,
ld_linecom_name  TYPE STRING ,
ld_content_app_id  TYPE S38E-APP_ID ,
ld_mark_name  TYPE STRING ,
ld_tdparam2  TYPE RSTXP-TDPARAM ,
ld_mark1_name  TYPE STRING ,
ld_output_bottom  TYPE STRING ,
ld_headline_name  TYPE STRING ,
ld_fcode_i  TYPE TSE02-PROGFUN ,
ld_split_call  TYPE STRING ,
ld_fcode_save  TYPE STRING ,
ld_c_handle  TYPE CL_WB_EDITOR ,
ld_auto_correct  TYPE STRING ,
ld_lines_appended  TYPE SY-INDEX ,
ld_tdheadline  TYPE RSTXP-TDHEADLINE ,
ld_no_input_flag  TYPE STRING ,
ld_extend_mod  TYPE STRING ,
ld_control_content  TYPE CXTAB_CONTROL ,
ld_editor_mode  TYPE EDITORMODE ,
ld_cursor_i  TYPE STRING ,
ld_name_wout_namespace  TYPE STRING ,
ld_icon_dynp_akt_gen  TYPE SMP_DYNTXT ,
ld_enter_w  TYPE TSE04-LINECOMTXT ,
ld_komprmode  TYPE STRING ,
ld_case_mode  TYPE STRING ,
ld_s_modified  TYPE STRING ,
ld_last_content_display  TYPE SY-INDEX ,
ld_content_display  TYPE SY-INDEX ,
ld_content_fill  TYPE SY-INDEX ,
ld_exclude_filled  TYPE STRING ,
ld_suppress_dialog_flag  TYPE STRING ,
ld_edit_control  TYPE STRING ,
ld_dynnr_changed  TYPE STRING ,
ld_editor_content_modified  TYPE STRING ,
ld_old_fcode  TYPE TSE02-PROGFUN ,
ld_pcmode  TYPE STRING ,
ld_lineal_mode  TYPE STRING ,
ld_mark_flag  TYPE STRING ,
ld_status_flag  TYPE STRING ,
ld_c_editor  TYPE OBJECT ,
ld_transport_key  TYPE TRKEY .

ld_edit = '123 '.

"populate fields of struture and append to itab
append wa_content to it_content.

SELECT single NAME
FROM TRDIR
INTO ld_callback_program.

ld_dynpro_lines = '123 '.

"populate fields of struture and append to itab
append wa_content_c to it_content_c.

ld_callback_usercom = some text here
ld_scanned = 'some text here'.

"populate fields of struture and append to itab
append wa_page to it_page.

ld_callback_set_pfkey = some text here
ld_new_source = 'some text here'.

"populate fields of struture and append to itab
append wa_lineindex to it_lineindex.

ld_callback_check = some text here
ld_overflow_area = 'some text here'.

"populate fields of struture and append to itab
append wa_linenum to it_linenum.

ld_callback_save = some text here

"populate fields of struture and append to itab
append wa_step to it_step.

ld_callback_before_function = some text here
ld_msg = 'some text here'.

ld_callback_after_function = some text here

"populate fields of struture and append to itab
append wa_tk to it_tk.
ld_incl = 'some text here'.
ld_line_name = 'some text here'.
ld_row = 'some text here'.

"populate fields of struture and append to itab
append wa_stm to it_stm.
ld_first_name = 'some text here'.
ld_col = 'some text here'.

"populate fields of struture and append to itab
append wa_message_tab_i to it_message_tab_i.
ld_last_name = 'some text here'.
ld_wrd = 'some text here'.

"populate fields of struture and append to itab
append wa_smodilog_abap to it_smodilog_abap.
ld_total_name = 'some text here'.
ld_undo_exported = 'some text here'.

"populate fields of struture and append to itab
append wa_mod_tab to it_mod_tab.
ld_commline_name = 'some text here'.
ld_linecom_was_executed = 'some text here'.
ld_linecom_name = 'some text here'.

ld_content_app_id = some text here
ld_mark_name = 'some text here'.

ld_tdparam2 = some text here
ld_mark1_name = 'some text here'.
ld_output_bottom = 'some text here'.
ld_headline_name = 'some text here'.

SELECT single PROGFUN
FROM TSE02
INTO ld_fcode_i.

ld_split_call = 'some text here'.
ld_fcode_save = 'some text here'.
ld_c_handle = '123 '.
ld_auto_correct = 'some text here'.
ld_lines_appended = '123 '.

ld_tdheadline = some text here
ld_no_input_flag = 'some text here'.
ld_extend_mod = 'some text here'.
ld_control_content = '123 '.
ld_editor_mode = '123 '.
ld_cursor_i = 'some text here'.
ld_name_wout_namespace = 'some text here'.
ld_icon_dynp_akt_gen = '123 '.

SELECT single LINECOMTXT
FROM TSE04
INTO ld_enter_w.

ld_komprmode = 'some text here'.
ld_case_mode = 'some text here'.
ld_s_modified = 'some text here'.
ld_last_content_display = '123 '.
ld_content_display = '123 '.
ld_content_fill = '123 '.
ld_exclude_filled = 'some text here'.
ld_suppress_dialog_flag = 'some text here'.
ld_edit_control = 'some text here'.
ld_dynnr_changed = 'some text here'.
ld_editor_content_modified = 'some text here'.

SELECT single PROGFUN
FROM TSE02
INTO ld_old_fcode.

ld_pcmode = 'some text here'.
ld_lineal_mode = 'some text here'.
ld_mark_flag = 'some text here'.
ld_status_flag = 'some text here'.
ld_c_editor = '123 '.
ld_transport_key = '123 '.

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