SAP Reports / Programs

RFCTST01 SAP ABAP Report - RFC test program







RFCTST01 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter RFCTST01 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 RFCTST01. "Basic submit
SUBMIT RFCTST01 AND RETURN. "Return to original report after report execution complete
SUBMIT RFCTST01 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: RFC test program
Text Symbol: 001 = TCPIC table entries deleted
Text Symbol: 002 = Received: &
Text Symbol: 003 = & Package: &


INCLUDES used within this REPORT RFCTST01

INCLUDE TSKHINCL.
INCLUDE PERFINCL.
INCLUDE DP_TH_DEFS.


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:

TH_ACTIVATE_RESOURCE_CHECK call function 'TH_ACTIVATE_RESOURCE_CHECK'.

TH_SET_CLIENT_ID_TRC_FLAGS call function 'TH_SET_CLIENT_ID_TRC_FLAGS' exporting sql = sql tbuf = tbuf enq = enq rfc = rfc auth = auth cmod = cmod user = user sat = sat ws = ws.

RSTR_ACTIVATE_USER_TRACE CALL FUNCTION 'RSTR_ACTIVATE_USER_TRACE' EXPORTING TRC_SQL = 'X' TRC_TBUF = 'X' TRC_ENQUE = 'X' TRC_RFC = 'X' TRC_AUTH = 'X' TRC_CMOD = 'X' TRC_USER = 'X' TRC_HTTP = 'X'.

TH_ARFC_LOCAL_RESOURCES call function 'TH_ARFC_LOCAL_RESOURCES' importing nores = nores wait = reswait maxres = maxres.

TH_NOP_0 CALL FUNCTION 'TH_NOP_0' DESTINATION DEST1.

TH_NOP_10 CALL FUNCTION 'TH_NOP_10' DESTINATION DEST1 EXPORTING IMP_INT_PAR_1 = INT_PAR_1 IMP_INT_PAR_2 = INT_PAR_2 IMP_INT_PAR_3 = INT_PAR_3 IMP_INT_PAR_4 = INT_PAR_4 IMP_INT_PAR_5 = INT_PAR_5 IMP_CHAR_PAR_1 = CHAR_PAR_1 IMP_CHAR_PAR_2 = CHAR_PAR_2 IMP_CHAR_PAR_3 = CHAR_PAR_3 IMP_CHAR_PAR_4 = CHAR_PAR_4 IMP_CHAR_PAR_5 = CHAR_PAR_5 IMPORTING EXP_INT_PAR_1 = INT_PAR_1 EXP_INT_PAR_2 = INT_PAR_2 EXP_INT_PAR_3 = INT_PAR_3 EXP_INT_PAR_4 = INT_PAR_4 EXP_INT_PAR_5 = INT_PAR_5 EXP_CHAR_PAR_1 = CHAR_PAR_1 EXP_CHAR_PAR_2 = CHAR_PAR_2 EXP_CHAR_PAR_3 = CHAR_PAR_3 EXP_CHAR_PAR_4 = CHAR_PAR_4 EXP_CHAR_PAR_5 = CHAR_PAR_5.

TH_TEST_RFC CALL FUNCTION 'TH_TEST_RFC' DESTINATION DEST1 EXPORTING OPCODE = OPCODE TEXT_IN = MSG NO_LOOPS = INO_LOOPS NO_FB = NO_FB ERR_MSG = ERR_MSG DUMP = DUMP STOP = STOP SEC_DEST = ISECDEST SEC_OPCODE = SEC_OP SEC_LOOPS = ISEC_LO endless = iendless lock = lock keep_luw = rfc_luw dur1 = dur1 dur2 = dur2 IMPORTING TEXT_OUT = TEXT_OUT TABLES TABLE = RFC_TABLE.

TH_TEST_RFC CALL FUNCTION 'TH_TEST_RFC' DESTINATION DEST1 EXPORTING OPCODE = OPCODE TEXT_IN = MSG NO_LOOPS = INO_LOOPS NO_FB = NO_FB ERR_MSG = ERR_MSG DUMP = DUMP STOP = STOP SEC_DEST = ISECDEST SEC_OPCODE = SEC_OP SEC_LOOPS = ISEC_LO lock = lock keep_luw = rfc_luw dur1 = dur1 dur2 = dur2 IMPORTING TEXT_OUT = TEXT_OUT TABLES TABLE = RFC_TABLE EXCEPTIONS COMMUNICATION_FAILURE = 1 SYSTEM_FAILURE = 2 .

TH_TEST_RFC CALL FUNCTION 'TH_TEST_RFC' DESTINATION DEST1 KEEPING LOGICAL UNIT OF WORK EXPORTING OPCODE = OPCODE TEXT_IN = MSG NO_LOOPS = INO_LOOPS NO_FB = NO_FB ERR_MSG = ERR_MSG DUMP = DUMP STOP = STOP SEC_DEST = ISECDEST SEC_OPCODE = SEC_OP SEC_LOOPS = ISEC_LO lock = lock keep_luw = rfc_luw dur1 = dur1 dur2 = dur2 IMPORTING TEXT_OUT = TEXT_OUT TABLES TABLE = RFC_TABLE.

RFC_CONNECTION_CLOSE CALL FUNCTION 'RFC_CONNECTION_CLOSE' EXPORTING DESTINATION = DEST1.

TH_TEST_RFC CALL FUNCTION 'TH_TEST_RFC' DESTINATION DEST1 STARTING NEW TASK TASKNAME PERFORMING RETURN_FORM ON END OF TASK EXPORTING OPCODE = OPCODE TEXT_IN = MSG NO_LOOPS = INO_LOOPS NO_FB = NO_FB ERR_MSG = ERR_MSG DUMP = DUMP STOP = STOP SEC_DEST = ISECDEST SEC_OPCODE = SEC_OP SEC_LOOPS = ISEC_LO lock = lock keep_luw = rfc_luw dur1 = dur1 dur2 = dur2 TABLES TABLE = RFC_TABLE.

TH_TEST_RFC CALL FUNCTION 'TH_TEST_RFC' DESTINATION DEST1 STARTING NEW TASK TASKNAME EXPORTING OPCODE = OPCODE TEXT_IN = MSG NO_LOOPS = INO_LOOPS NO_FB = NO_FB ERR_MSG = ERR_MSG DUMP = DUMP STOP = STOP SEC_DEST = ISECDEST SEC_OPCODE = SEC_OP SEC_LOOPS = ISEC_LO lock = lock keep_luw = rfc_luw dur1 = dur1 dur2 = dur2 TABLES TABLE = RFC_TABLE.

TH_TEST_RFC CALL FUNCTION 'TH_TEST_RFC' DESTINATION DEST2 EXPORTING OPCODE = OPCODE TEXT_IN = MSG NO_LOOPS = INO_LOOPS NO_FB = NO_FB ERR_MSG = ERR_MSG DUMP = DUMP STOP = STOP SEC_DEST = ISECDEST SEC_OPCODE = SEC_OP SEC_LOOPS = ISEC_LO lock = lock keep_luw = rfc_luw dur1 = dur1 dur2 = dur2 IMPORTING TEXT_OUT = TEXT_OUT TABLES TABLE = RFC_TABLE.

RFC_CONNECTION_CLOSE CALL FUNCTION 'RFC_CONNECTION_CLOSE' EXPORTING DESTINATION = DEST2.

TH_TEST_RFC CALL FUNCTION 'TH_TEST_RFC' DESTINATION DEST3 EXPORTING OPCODE = OPCODE TEXT_IN = MSG NO_LOOPS = INO_LOOPS NO_FB = NO_FB ERR_MSG = ERR_MSG DUMP = DUMP STOP = STOP SEC_DEST = ISECDEST SEC_OPCODE = SEC_OP SEC_LOOPS = ISEC_LO lock = lock keep_luw = rfc_luw dur1 = dur1 dur2 = dur2 IMPORTING TEXT_OUT = TEXT_OUT TABLES TABLE = RFC_TABLE.

RFC_CONNECTION_CLOSE CALL FUNCTION 'RFC_CONNECTION_CLOSE' EXPORTING DESTINATION = DEST3.

TH_TEST_RFC CALL FUNCTION 'TH_TEST_RFC' STARTING NEW TASK TASKNAME DESTINATION IN GROUP MYGROUP PERFORMING RETURN_FORM ON END OF TASK EXPORTING OPCODE = OPCODE TEXT_IN = MSG NO_LOOPS = INO_LOOPS NO_FB = NO_FB ERR_MSG = ERR_MSG DUMP = DUMP STOP = STOP SEC_DEST = ISECDEST SEC_OPCODE = SEC_OP SEC_LOOPS = ISEC_LO lock = lock keep_luw = rfc_luw dur1 = dur1 dur2 = dur2 TABLES TABLE = RFC_TABLE EXCEPTIONS COMMUNICATION_FAILURE = 1 SYSTEM_FAILURE = 2 RESOURCE_FAILURE = 3.

TH_TEST_RFC CALL FUNCTION 'TH_TEST_RFC' STARTING NEW TASK TASKNAME DESTINATION IN GROUP MYGROUP EXPORTING OPCODE = OPCODE TEXT_IN = MSG NO_LOOPS = INO_LOOPS NO_FB = NO_FB ERR_MSG = ERR_MSG DUMP = DUMP STOP = STOP SEC_DEST = ISECDEST SEC_OPCODE = SEC_OP SEC_LOOPS = ISEC_LO lock = lock keep_luw = rfc_luw dur1 = dur1 dur2 = dur2 TABLES TABLE = RFC_TABLE EXCEPTIONS COMMUNICATION_FAILURE = 1 SYSTEM_FAILURE = 2 RESOURCE_FAILURE = 3.

SYSTEM_RESET_RFC_CONNECTION





CALL FUNCTION 'SYSTEM_RESET_RFC_CONNECTION' EXPORTING DESTINATION = DEST1.

RZL_SLEEP call function 'RZL_SLEEP' exporting seconds = tmp.

TH_RPC_TEST call function 'TH_RPC_TEST' exporting send_mode = 1 message = 'test' message_len = 4.

TH_REDISPATCH call function 'TH_REDISPATCH'.

TH_SET_AUTO_LOGOUT call function 'TH_SET_AUTO_LOGOUT' destination dest1 exporting auto_logout = logout.

RSTR_DEACTIVATE_USER_TRACE CALL FUNCTION 'RSTR_DEACTIVATE_USER_TRACE'.

TH_DEACTIVATE_RESOURCE_CHECK call function 'TH_DEACTIVATE_RESOURCE_CHECK'.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING PERCENTAGE = i TEXT = 'wait a moment'.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING PERCENTAGE = loopcount TEXT = 'wait a moment'.

RFC_PING call function 'RFC_PING' destination 'SAPGUI'.



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