SAP Knowledge Base Article - Preview

2772985 - RFC Destination SAPXPG_DBDEST_* fails with "ERROR: rexec failed"

Symptom

  • Fom DB13 transaction, you find that scheduled Job to update database statistics is getting failed:
      SXPG_COMMAND_EXECUTE failed for BRCONNECT
    Note: This issue can also occur in other functions of BR*Tools.
  • Then, you go to transaction SM59 to test under 'TCP/IP Connections' involved RFC Destination SAPXPG_DBDEST_<DBhost>.
    Click on "Connection Test", and you get the error:
     Error when opening an RFC connection
     ERROR: rexec failed
     LOCATION: SAP-Gateway on host <hostname> / sapgw$$
     CALL: GwIRexec
     COMPONENT: SAP-Gateway
     ERROR NUMBER: 146
     ERROR TEXT: Connection refused
     MODULE: gwuxrd.c
     LINE: 310
     RETURN CODE: 637

Read more...

Environment

  • SAP NetWeaver system
  • This applies for SM59 destinations configured with "Start on Explicit Host" as the "Activation type" on the "Technical Settings" tab page in transaction SM59.

Product

SAP NetWeaver all versions

Keywords

SXPG_COMMAND_EXECUTE, rexec failed, 637, GwIRexec, sapxpg, REXEC_FAILED, rsh, gw/remsh , KBA , BC-CST-GW , Gateway/CPIC , BC-CCM-BTC-EXT , External and Logical Commands , Problem

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.