SAP SHOW_PROTOCOLS_DB2 Function Module for DB16 Show JCL and Protocols (Selection Screen)
SHOW_PROTOCOLS_DB2 is a standard show protocols db2 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for DB16 Show JCL and Protocols (Selection Screen) processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for show protocols db2 FM, simply by entering the name SHOW_PROTOCOLS_DB2 into the relevant SAP transaction such as SE37 or SE38.
Function Group: S390
Program Name: SAPLS390
Main Program: SAPLS390
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function SHOW_PROTOCOLS_DB2 pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'SHOW_PROTOCOLS_DB2'"DB16 Show JCL and Protocols (Selection Screen).
EXPORTING
BEG = "
FUNCTION = "
RC = "
ACTID = "
* SYNC = "One character
* ALV_SWITCH = "Single-character flag
* GLOBAL_LINE = "Text Line for DBA Logs
* GLOBAL_BUTTON = "Single-character flag
IMPORTING Parameters details for SHOW_PROTOCOLS_DB2
BEG -
Data type: SDBADDB2-BEGOptional: No
Call by Reference: No ( called with pass by value option)
FUNCTION -
Data type: SDBADDB2-FUNCTOptional: No
Call by Reference: No ( called with pass by value option)
RC -
Data type: SDBAH-RCOptional: No
Call by Reference: No ( called with pass by value option)
ACTID -
Data type: SDBAH-ACTIDOptional: No
Call by Reference: No ( called with pass by value option)
SYNC - One character
Data type: DB2DB13C-CHAR1Optional: Yes
Call by Reference: No ( called with pass by value option)
ALV_SWITCH - Single-character flag
Data type: CHAR1Optional: Yes
Call by Reference: No ( called with pass by value option)
GLOBAL_LINE - Text Line for DBA Logs
Data type: SDBA_TEXTOptional: Yes
Call by Reference: No ( called with pass by value option)
GLOBAL_BUTTON - Single-character flag
Data type: SDBA_TEXTOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for SHOW_PROTOCOLS_DB2 Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_beg | TYPE SDBADDB2-BEG, " | |||
| lv_function | TYPE SDBADDB2-FUNCT, " | |||
| lv_rc | TYPE SDBAH-RC, " | |||
| lv_actid | TYPE SDBAH-ACTID, " | |||
| lv_sync | TYPE DB2DB13C-CHAR1, " | |||
| lv_alv_switch | TYPE CHAR1, " | |||
| lv_global_line | TYPE SDBA_TEXT, " | |||
| lv_global_button | TYPE SDBA_TEXT. " |
|   CALL FUNCTION 'SHOW_PROTOCOLS_DB2' "DB16 Show JCL and Protocols (Selection Screen) |
| EXPORTING | ||
| BEG | = lv_beg | |
| FUNCTION | = lv_function | |
| RC | = lv_rc | |
| ACTID | = lv_actid | |
| SYNC | = lv_sync | |
| ALV_SWITCH | = lv_alv_switch | |
| GLOBAL_LINE | = lv_global_line | |
| GLOBAL_BUTTON | = lv_global_button | |
| . " SHOW_PROTOCOLS_DB2 | ||
ABAP code using 7.40 inline data declarations to call FM SHOW_PROTOCOLS_DB2
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| "SELECT single BEG FROM SDBADDB2 INTO @DATA(ld_beg). | ||||
| "SELECT single FUNCT FROM SDBADDB2 INTO @DATA(ld_function). | ||||
| "SELECT single RC FROM SDBAH INTO @DATA(ld_rc). | ||||
| "SELECT single ACTID FROM SDBAH INTO @DATA(ld_actid). | ||||
| "SELECT single CHAR1 FROM DB2DB13C INTO @DATA(ld_sync). | ||||
Search for further information about these or an SAP related objects