SAP Knowledge Base Article - Preview

2317074 - "timeout during allocate" when starting external programs


An external program is to be started by SAP through an RFC destination (transaction SM59) of type "TCP/IP".

Performing a "connection test" in such destination returns a "timeout during allocate" error similar to the below.

Connection Test <destination name>
Connection Type TCP/IP Connection  

Logon           Connection Error
Error Details   Error when opening an RFC connection
Error Details   ERROR: timeout during allocate
Error Details   LOCATION: SAP-Gateway on host <hostname> / sapgw<XX>
Error Details   DETAIL: no connect of TP <external program> from host <hostname>
Error Details   COMPONENT: SAP-Gateway
Error Details   COUNTER: 2
Error Details   MODULE: gwr3cpic.c
Error Details   LINE: 2164
Error Details   RETURN CODE: 242
Error Details   SUBRC: 0
Error Details   RELEASE: 721
Error Details   TIME: <date and time>
Error Details   VERSION: 2

This can occur, for example:

  • When performing transport operations (transaction STMS, destination "CALLTP_<Operating System>");
  • Executing tasks at the transaction DB13 (that use the destination "SAPXPG_DBDEST_<hostname>").



  • Product / Release independent
  • SAP NetWeaver ABAP


SAP NetWeaver all versions


Timeout during allocate, Timeout, TP, Brconnect, External program, Start external program, Sapxpg, SM59, Connection test, TCP/IP connection, TCP/IP destination, RFC destination, SM59 destination, STMS, DB13 , KBA , BC-MID-RFC , RFC , BC-DB-ORA , Oracle , BC-CST , Client/Server Technology , BC-CST-GW , Gateway/CPIC , BC-CTS-TMS , Transport Management System , BC-CTS , Change and Transport System , How To

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP ONE Support launchpad (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.