SAP Knowledge Base Article - Preview

1891781 - An error occurs when executing an external command


While executing an external command/program from job step or T-code: SM49/SM69 or ABAP program, it failed and the following log can be seen in the system log(T-code:sm21) and the workprocess trace file:

LC  2 Error 1006 when executing external command ... ...

M  *
M  *  LOCATION    SAP-Gateway on host <HOST> / <gateway service>
M  *  ERROR       timeout during allocate
M  *
M  *  TIME        <timestamp>
M  *  RELEASE     <version>
M  *  COMPONENT   SAP-Gateway
M  *  VERSION     <XX>
M  *  RC          242
M  *  MODULE      gwr3cpic.c
M  *  LINE        <line number>
M  *  DETAIL      no connect of TP sapxpg from host <XXX> after <XXX> sec



  • SAP NetWeaver
  • SAP Web Application Server for SAP S/4HANA
  • ABAP PLATFORM - Application Server ABAP


ABAP platform all versions ; SAP NetWeaver all versions ; SAP Web Application Server for SAP S/4HANA all versions


sapxpg, job failed, timeout, LC2 ,external program, SXPG_COMMAND_EXECUTE, SXPG_COMMAND_EXECUTE_LONG, TARGETSYSTEM, RFC_TCPIP_CONNECTION_OPEN, %_TCPIP_%n, rsh or ssh, RSBDCOS0, /usr/bin/ssh <target host> -l <SID>ADM hostname, sapxpg -s -stdout n hostname, /usr/bin/ssh <Target Host> -l <SID>ADM niping -v -H <Target Host> -S sapgwXX, external command, SM49, SM69, , KBA , BC-CCM-BTC-EXT , External and Logical Commands , BC-CCM-BTC , Background Processing , BC-CST-GW , Gateway/CPIC , Problem

About this page

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

Search for additional results

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