SAP Reports / Programs

RSGWLST SAP ABAP Report - List of all gateways addressed by this system







RSGWLST is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Determines all SAP gateways that can be used for outbound connections (RFC or CPI-C)...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

If you would like to execute this report or see the full code listing simply enter RSGWLST into the relevant SAP transactions such as SE38 or SE80


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT RSGWLST. "Basic submit
SUBMIT RSGWLST AND RETURN. "Return to original report after report execution complete
SUBMIT RSGWLST VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Currently effective content of secinfo file of &0....................
Title: List of all gateways addressed by this system
Text Symbol: 032 = Secinfo file is not active
Text Symbol: 033 = Secinfo file exists
Text Symbol: 035 = Required due to existing destination entries:
Text Symbol: 036 =
Text Symbol: 037 =
Text Symbol: 038 =
Text Symbol: 039 =
Text Symbol: 040 = Unknown host name
Text Symbol: 041 = Unknown service
Text Symbol: 042 = No connection to gateway
Text Symbol: 043 = No information available, gateway not reached
Text Symbol: 044 = No entries exist (empty secinfo file)
Text Symbol: 045 = No entries can be proposed
Text Symbol: 046 = Remote query rejected (gw/monitor <> 2)
Text Symbol: 050 = No server programs are currently registered
Text Symbol: 051 = "&" is not currently registered
Text Symbol: 052 = Program ID (shortended to 32 char.)
Text Symbol: 053 = HostName
Text Symbol: 054 = IP address
Text Symbol: 055 = last
Text Symbol: 060 = Determining registered server programe
Text Symbol: 061 = Not all gateways have been checked yet
Text Symbol: 062 = Should all listed gateways be checked or only the
Text Symbol: 063 = active instance gateways?
Text Symbol: 064 = All gateways
Text Symbol: 065 = Only instances
Text Symbol: 031 = Empty secinfo file exists
Text Symbol: 000 = Gateways that can be reached from this system (&)
Text Symbol: 001 = SNA Gateway
Text Symbol: 002 = Instance gateway
Text Symbol: 003 = CPIC destination
Text Symbol: 004 = RFC Destination, Type 3 (SAP System)
Text Symbol: 005 = RFC destination, type 2 (R/2 System)
Text Symbol: 006 = RFC destination, type T (ext. TCP prog.)
Text Symbol: 007 = RFC destination, type L (Link, reference)
Text Symbol: 008 = RFC destination, type S (ext. SNA prog.)





Text Symbol: 009 = RFC destination, type X (via ABAP)
Text Symbol: 010 = RFC destination, type M (CMC connection)
Text Symbol: 011 = RFC destination
Text Symbol: 012 = (via routing)
Text Symbol: 014 = Reading the destinations from DB tables...
Text Symbol: 015 = Determining the active instance gateways...
Text Symbol: 016 = Evaluating the CPIC destination entries...
Text Symbol: 017 = Evaluating the RFC destination entries...
Text Symbol: 018 = Formatting the collected data...
Text Symbol: 019 = Gateway status query...
Text Symbol: 020 = Analysis of the destination specifications for secinfo...
Text Symbol: 021 = Gateway query: Registered servers...
Text Symbol: 022 = Warning: Time-consuming step
Text Symbol: 023 = & gateways to be checked
Text Symbol: 024 = Should this check (which may be time-consuming) start now?
Text Symbol: 025 = All gateways already checked
Text Symbol: 029 =
Text Symbol: 030 = Entry missing
001 User User host Host Program (shortened to 64 characters)


INCLUDES used within this REPORT RSGWLST

No INCLUDES are used within this REPORT code!


TABLES used within REPORT and the associated SELECT statement:

No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING PERCENTAGE = 0 TEXT = 'Einlesen der Destinationen aus DB-Tabellen...'(014).

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING PERCENTAGE = 0 TEXT = 'Ermittlung der aktiven Instanzen-Gateways...'(015).

TH_SERVER_LIST CALL FUNCTION 'TH_SERVER_LIST' * EXPORTING * SERVICES = 255 TABLES LIST = SRVLIST EXCEPTIONS NO_SERVER_LIST = 1 OTHERS = 2.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING PERCENTAGE = 0 TEXT = 'Auswertung der CPIC-Destinationseinträge...'(016).

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING PERCENTAGE = 0 TEXT = 'Auswertung der RFC-Destinationseinträge...'(017).

RFCDES2RFCDISPLAY CALL FUNCTION 'RFCDES2RFCDISPLAY' EXPORTING IMPORT_RFCDES = IT_RFCDES IMPORTING EXPORT_RFCDISPLAY = RFCDISPLAY EXCEPTIONS OTHERS = 1.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING PERCENTAGE = 0 TEXT = 'Aufbereitung der gesammelten Daten...'(018).

RS_TREE_LIST_DISPLAY CALL FUNCTION 'RS_TREE_LIST_DISPLAY' EXPORTING CALLBACK_PROGRAM = MYSELF STATUS = 'OWN' CALLBACK_USER_COMMAND = 'USER_COMMAND'.

ENQUEUE_ESRFCDES





CALL FUNCTION 'ENQUEUE_ESRFCDES' EXPORTING MODE_RFCDES = 'X' RFCDEST = DEST * X_RFCDEST = ' ' * _SCOPE = '2' * _WAIT = ' ' * _COLLECT = ' ' EXCEPTIONS FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2 OTHERS = 3.

RFCDES_DISPLAY CALL FUNCTION 'RFCDES_DISPLAY' EXPORTING RFCDES_EXPORT = IT_RFCDES * importing * modified = * rfcdes_import = EXCEPTIONS OTHERS = 1.

DEQUEUE_ESRFCDES CALL FUNCTION 'DEQUEUE_ESRFCDES' EXPORTING MODE_RFCDES = 'X' RFCDEST = DEST * X_RFCDEST = ' ' * _SCOPE = '3' * _SYNCHRON = ' ' * _COLLECT = ' ' EXCEPTIONS OTHERS = 1.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING PERCENTAGE = 0 TEXT = 'Gateway-Statusabfrage...'(019).

GWY_REFRESH_SECURITY CALL FUNCTION 'GWY_REFRESH_SECURITY' EXPORTING GWHOST = CURRENT_GW-GWHOST GWSERV = CURRENT_GW-GWSERV EXCEPTIONS GWY_UNKNOWN_OPCODE = 1 GWY_COMMUNICATION_FAILURE = 2 GWY_GET_OPCODE_FAILED = 3 GWY_GET_GWHOST_FAILED = 4 GWY_GET_GWSERV_FAILED = 5 OTHERS = 6.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING PERCENTAGE = 0 TEXT = 'Gatewayabfrage: registrierte Server...'(021).

GWY_READ_CONNECTED_SYSTEMS CALL FUNCTION 'GWY_READ_CONNECTED_SYSTEMS' EXPORTING GWHOST = ITAB-GWHOST GWSERV = ITAB-GWSERV TABLES CONNECTED_SYSTEMS = CONN_SYS EXCEPTIONS OTHERS = 9.

RS_TREE_CONSTRUCT CALL FUNCTION 'RS_TREE_CONSTRUCT' * EXPORTING * INSERT_ID = '000000' * RELATIONSHIP = ' ' TABLES NODETAB = TREELIST EXCEPTIONS TREE_FAILURE = 1 ID_NOT_FOUND = 2 WRONG_RELATIONSHIP = 3 OTHERS = 4.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING PERCENTAGE = 0 TEXT = 'Gateway-Statusabfrage...'(019).

RS_TREE_SET_NODE CALL FUNCTION 'RS_TREE_SET_NODE' EXPORTING NODE_INFO = TREELIST.

POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' EXPORTING DEFAULTOPTION = 'N' TEXTLINE1 = TEXT TEXTLINE2 = 'Soll diese (möglicherweise zeitintensive) Prüfung jetzt starten?'(024) TITEL = 'Warnung: zeitintensiver Arbeitsschritt'(022) * START_COLUMN = 25 * START_ROW = 6 CANCEL_DISPLAY = ' ' IMPORTING ANSWER = ANSWER.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING percentage = percentage TEXT = TEXT.

RS_TREE_SET_NODE CALL FUNCTION 'RS_TREE_SET_NODE' EXPORTING NODE_INFO = TREELIST.

TH_CHECK_GATEWAY CALL FUNCTION 'TH_CHECK_GATEWAY' EXPORTING GW_HOST = ITAB-GWHOST GW_SERV = ITAB-GWSERV IMPORTING SUBRC = RC.

GWY_READ_SECURITY CALL FUNCTION 'GWY_READ_SECURITY' EXPORTING GWHOST = ITAB-GWHOST GWSERV = ITAB-GWSERV TABLES EXSEC = GWSEC EXCEPTIONS GWY_UNKNOWN_OPCODE = 1 GWY_COMMUNICATION_FAILURE = 2 GWY_GET_TAB_FAILED = 3 GWY_NEWLINE_FAILED = 4 GWY_TABLEN_TOO_SHORT = 5 GWY_GET_OPCODE_FAILED = 6 GWY_GET_GWHOST_FAILED = 7 GWY_GET_GWSERV_FAILED = 8 OTHERS = 9.

GWY_READ_PARAMETER CALL FUNCTION 'GWY_READ_PARAMETER' EXPORTING GWHOST = ITAB-GWHOST GWSERV = ITAB-GWSERV TABLES PARAMETER = GWPARAMS EXCEPTIONS GWY_UNKNOWN_OPCODE = 1 GWY_COMMUNICATION_FAILURE = 2 GWY_GET_TAB_FAILED = 3 GWY_NEWLINE_FAILED = 4 GWY_TABLEN_TOO_SHORT = 5 GWY_GET_OPCODE_FAILED = 6 GWY_GET_GWHOST_FAILED = 7 GWY_GET_GWSERV_FAILED = 8 OTHERS = 9.

RS_TREE_SET_NODE CALL FUNCTION 'RS_TREE_SET_NODE' EXPORTING node_info = treelist.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING PERCENTAGE = 0 TEXT = 'Analyse der Destinationsangaben für secinfo...'(020).

RFCDES2RFCDISPLAY CALL FUNCTION 'RFCDES2RFCDISPLAY' EXPORTING IMPORT_RFCDES = IT_RFCDES IMPORTING EXPORT_RFCDISPLAY = RFCDISPLAY EXCEPTIONS OTHERS = 1.

POPUP_TO_DECIDE CALL FUNCTION 'POPUP_TO_DECIDE' EXPORTING * DEFAULTOPTION = '1' TEXTLINE1 = 'Bislang wurden noch nicht alle Gateways überprüft.'(061)




AUTHORITY_CHECK_TCODE CALL FUNCTION 'AUTHORITY_CHECK_TCODE' EXPORTING TCODE = TCODE EXCEPTIONS OK = 0 NOT_OK = 1 OTHERS = 2.



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.

The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name RSGWLST or its description.