SAP Function Modules

TMS_TP_SHOW_BUFFER SAP Function module







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

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


Pattern for FM TMS_TP_SHOW_BUFFER - TMS TP SHOW BUFFER





CALL FUNCTION 'TMS_TP_SHOW_BUFFER' "
  EXPORTING
    iv_system_name =            " stpa-sysname
*   iv_count_only =             " stpa-flag
*   iv_maxrc_only =             " stpa-flag
*   iv_read_locks =             " stpa-flag
*   iv_clear_locks =            " stpa-flag
*   iv_prid_text =              " stpa-message
*   iv_prid_min = 0             " i
*   iv_prid_max = 100           " i
  IMPORTING
    ev_tp_cmd_strg =            " stpa-cmdstring
    ev_tp_ret_code =            " stpa-retcode
    ev_tp_message =             " stpa-message
    ev_tp_version =             " stpa-version
    ev_tp_alog =                " stpa-file
    ev_tp_slog =                " stpa-file
    ev_tp_pid =                 " stpa-pid
    ev_counter =                " stpa-counter
    ev_tot_count =              " stpa-counter
    ev_stopmark =               " stpa-flag
    ev_ctc_active =             " stpa-flag
    ev_some_active =            " stpa-flag
    ev_proj_active =            " stpa-flag
    es_tpstat =                 " tpstat
    et_lock_req =               " tmstlockrs
    et_lock_pro =               " tmstlockps
* TABLES
*   tt_stdout =                 " tpstdout
*   tt_buffer =                 " tpbuffer
*   tt_bufcnt =                 " tpbufcnt
*   tt_client =                 " t000
  EXCEPTIONS
    PERMISSION_DENIED = 1       "
    TP_CALL_FAILED = 2          "
    TP_INTERFACE_ERROR = 3      "
    TP_REPORTED_ERROR = 4       "
    .  "  TMS_TP_SHOW_BUFFER

ABAP code example for Function Module TMS_TP_SHOW_BUFFER





The ABAP code below is a full code listing to execute function module TMS_TP_SHOW_BUFFER 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_tp_cmd_strg  TYPE STPA-CMDSTRING ,
ld_ev_tp_ret_code  TYPE STPA-RETCODE ,
ld_ev_tp_message  TYPE STPA-MESSAGE ,
ld_ev_tp_version  TYPE STPA-VERSION ,
ld_ev_tp_alog  TYPE STPA-FILE ,
ld_ev_tp_slog  TYPE STPA-FILE ,
ld_ev_tp_pid  TYPE STPA-PID ,
ld_ev_counter  TYPE STPA-COUNTER ,
ld_ev_tot_count  TYPE STPA-COUNTER ,
ld_ev_stopmark  TYPE STPA-FLAG ,
ld_ev_ctc_active  TYPE STPA-FLAG ,
ld_ev_some_active  TYPE STPA-FLAG ,
ld_ev_proj_active  TYPE STPA-FLAG ,
ld_es_tpstat  TYPE TPSTAT ,
ld_et_lock_req  TYPE TMSTLOCKRS ,
ld_et_lock_pro  TYPE TMSTLOCKPS ,
it_tt_stdout  TYPE STANDARD TABLE OF TPSTDOUT,"TABLES PARAM
wa_tt_stdout  LIKE LINE OF it_tt_stdout ,
it_tt_buffer  TYPE STANDARD TABLE OF TPBUFFER,"TABLES PARAM
wa_tt_buffer  LIKE LINE OF it_tt_buffer ,
it_tt_bufcnt  TYPE STANDARD TABLE OF TPBUFCNT,"TABLES PARAM
wa_tt_bufcnt  LIKE LINE OF it_tt_bufcnt ,
it_tt_client  TYPE STANDARD TABLE OF T000,"TABLES PARAM
wa_tt_client  LIKE LINE OF it_tt_client .


DATA(ld_iv_system_name) = some text here

DATA(ld_iv_count_only) = some text here

DATA(ld_iv_maxrc_only) = some text here

DATA(ld_iv_read_locks) = some text here

DATA(ld_iv_clear_locks) = some text here

DATA(ld_iv_prid_text) = some text here
DATA(ld_iv_prid_min) = 'Check type of data required'.
DATA(ld_iv_prid_max) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_tt_stdout to it_tt_stdout.

"populate fields of struture and append to itab
append wa_tt_buffer to it_tt_buffer.

"populate fields of struture and append to itab
append wa_tt_bufcnt to it_tt_bufcnt.

"populate fields of struture and append to itab
append wa_tt_client to it_tt_client. . CALL FUNCTION 'TMS_TP_SHOW_BUFFER' EXPORTING iv_system_name = ld_iv_system_name * iv_count_only = ld_iv_count_only * iv_maxrc_only = ld_iv_maxrc_only * iv_read_locks = ld_iv_read_locks * iv_clear_locks = ld_iv_clear_locks * iv_prid_text = ld_iv_prid_text * iv_prid_min = ld_iv_prid_min * iv_prid_max = ld_iv_prid_max IMPORTING ev_tp_cmd_strg = ld_ev_tp_cmd_strg ev_tp_ret_code = ld_ev_tp_ret_code ev_tp_message = ld_ev_tp_message ev_tp_version = ld_ev_tp_version ev_tp_alog = ld_ev_tp_alog ev_tp_slog = ld_ev_tp_slog ev_tp_pid = ld_ev_tp_pid ev_counter = ld_ev_counter ev_tot_count = ld_ev_tot_count ev_stopmark = ld_ev_stopmark ev_ctc_active = ld_ev_ctc_active ev_some_active = ld_ev_some_active ev_proj_active = ld_ev_proj_active es_tpstat = ld_es_tpstat et_lock_req = ld_et_lock_req et_lock_pro = ld_et_lock_pro * TABLES * tt_stdout = it_tt_stdout * tt_buffer = it_tt_buffer * tt_bufcnt = it_tt_bufcnt * tt_client = it_tt_client EXCEPTIONS PERMISSION_DENIED = 1 TP_CALL_FAILED = 2 TP_INTERFACE_ERROR = 3 TP_REPORTED_ERROR = 4 . " TMS_TP_SHOW_BUFFER
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 ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 4. "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_tp_cmd_strg  TYPE STPA-CMDSTRING ,
it_tt_stdout  TYPE STANDARD TABLE OF TPSTDOUT ,
wa_tt_stdout  LIKE LINE OF it_tt_stdout,
ld_iv_system_name  TYPE STPA-SYSNAME ,
ld_ev_tp_ret_code  TYPE STPA-RETCODE ,
it_tt_buffer  TYPE STANDARD TABLE OF TPBUFFER ,
wa_tt_buffer  LIKE LINE OF it_tt_buffer,
ld_iv_count_only  TYPE STPA-FLAG ,
ld_ev_tp_message  TYPE STPA-MESSAGE ,
it_tt_bufcnt  TYPE STANDARD TABLE OF TPBUFCNT ,
wa_tt_bufcnt  LIKE LINE OF it_tt_bufcnt,
ld_iv_maxrc_only  TYPE STPA-FLAG ,
it_tt_client  TYPE STANDARD TABLE OF T000 ,
wa_tt_client  LIKE LINE OF it_tt_client,
ld_iv_read_locks  TYPE STPA-FLAG ,
ld_ev_tp_version  TYPE STPA-VERSION ,
ld_iv_clear_locks  TYPE STPA-FLAG ,
ld_ev_tp_alog  TYPE STPA-FILE ,
ld_iv_prid_text  TYPE STPA-MESSAGE ,
ld_ev_tp_slog  TYPE STPA-FILE ,
ld_iv_prid_min  TYPE I ,
ld_ev_tp_pid  TYPE STPA-PID ,
ld_iv_prid_max  TYPE I ,
ld_ev_counter  TYPE STPA-COUNTER ,
ld_ev_tot_count  TYPE STPA-COUNTER ,
ld_ev_stopmark  TYPE STPA-FLAG ,
ld_ev_ctc_active  TYPE STPA-FLAG ,
ld_ev_some_active  TYPE STPA-FLAG ,
ld_ev_proj_active  TYPE STPA-FLAG ,
ld_es_tpstat  TYPE TPSTAT ,
ld_et_lock_req  TYPE TMSTLOCKRS ,
ld_et_lock_pro  TYPE TMSTLOCKPS .


"populate fields of struture and append to itab
append wa_tt_stdout to it_tt_stdout.

ld_iv_system_name = some text here

"populate fields of struture and append to itab
append wa_tt_buffer to it_tt_buffer.

ld_iv_count_only = some text here

"populate fields of struture and append to itab
append wa_tt_bufcnt to it_tt_bufcnt.

ld_iv_maxrc_only = some text here

"populate fields of struture and append to itab
append wa_tt_client to it_tt_client.

ld_iv_read_locks = some text here

ld_iv_clear_locks = some text here

ld_iv_prid_text = some text here
ld_iv_prid_min = 'Check type of data required'.
ld_iv_prid_max = '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 TMS_TP_SHOW_BUFFER or its description.