Error in FM: SXPG_COMMAND_EXECUTE

Hi,
I am using FM: SXPG_COMMAND_EXECUTE to encrypt file for appication server but i am getting below errors:
- Can't exec external program (Unknown error)
- WaitForSingleObject failedwith %d (No such device or address)
Can you please suggest me on this?
Below parameter passing into FM:
w_addparam = 'C:\usr\sap\DIE\SYS\src\ABC.txt'.  ( Appication server TXT file path Name)
w_finalencrpt = 'C:\Desktop1\abc1.txt'. (local drive path name)
w_status = space (No value).
w_exitparam = space (No value).
CONCATENATE w_addparam w_finalencrpt
INTO l_encrtpt_ap SEPARATED BY space.
CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
  EXPORTING
    commandname                = 'ZIFI_ENCRYPT'
    additional_parameters      = l_encrtpt_ap
  IMPORTING
    status                     = w_status
    exitcode                   = w_exitparam
  TABLES
    exec_protocol              = t_exec_protocol
  EXCEPTIONS
    no_permission              = 1
    command_not_found          = 2
    parameters_too_long        = 3
    security_risk              = 4
    wrong_check_call_interface = 5
    program_start_error        = 6
    program_termination_error  = 7
    x_error                    = 8
    parameter_expected         = 9
    too_many_parameters        = 10
    illegal_command            = 11
    OTHERS                     = 12.
IF sy-subrc EQ 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.

Try to get the log from the called system, like in the following sample
      REFRESH lt_protocol.
      CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
        EXPORTING
          commandname           = lv_command
          additional_parameters = lv_parameters
        IMPORTING
          exitcode              = lv_exitcode
        TABLES
          exec_protocol         = lt_protocol.
      IF exitcode NE 0.
        cl_db6_backend=>set_attribute( id = cl_db6_backend=>id_caller
                                      value  = cl_db6_backend=>val_caller_cockpit ).
        CALL FUNCTION 'DB6_SHOW_SXPG_ERROR'
          EXPORTING
            command       = lv_command
            PARAMETERS    = lv_parameters
            server        = sy-host
            return_code   = sy-subrc
            exitcode      = exitcode
          TABLES
            exec_protocol = lt_protocol
          EXCEPTIONS
            OTHERS        = 0.
      ENDIF.
Regards,
Raymond

Similar Messages

  • Regards the issue on the db13 error is like SXPG_COMMAND_EXECUTE failed

    dear all,
    we are using
    os: windows 2003
    databse :oracle  10.2.0.4
    sap version: ecc 6.0
    & on the production system is on the cluster environment
    the issue is when ever i am firing any thing from the db13 it is throwing an error like
    SXPG_COMMAND_EXECUTE failed for BRBACKUP - Reason: program_start_error: For More Information, See SYS
    Job started
    Step 001 started (program RSDBAJOB, variant &0000000000013, user ID BASIs)
    Execute logical command BRBACKUP On host xxx
    Parameters:-u / -jid TAPIN20100403132120 -i force -c force -n 1 -v SCRATCH
    SXPG_STEP_XPG_START: is_local_host: rc = 403
    SXPG_STEP_XPG_START: host = xxx
    SXPG_STEP_XPG_START: is_local_r3_host: rc = 802
    SXPG_STEP_XPG_START: RFC_TCPIP_CONNECTION_OPEN: rc = 1003
    SXPG_STEP_COMMAND_START: SXPG_STEP_XPG_START returned: 1.003
    SXPG_COMMAND_EXECUTE(LONG)
    <timestamp> = 20100403132151
    COMMANDNAME = BRBACKUP
    ADDITIONAL_PARAMETERS =
    -u / -jid TAPIN20100403132120 -i force -c force -n
    1 -v SCRATCH
    LONG_PARAMS
    OPERATINGSYSTEM = ANYOS
    TARGETSYSTEM = xxx
    DESTINATION
    SY-SUBRC = 1003
    SXPG_COMMAND_EXECUTE failed for BRBACKUP - Reason: program_start_error: For More Information, See SYS
    Job cancelled after system exception ERROR_MESSAGE
    it had became very critical
    go live is very near for us
    so, kindly help me soon......................
    thanks in advance
    praveen kumar

    Hi,
    You have to install a  standalone gateway
    follow Note 657999 - Installing a Standalone Gateway in an MSCS Environment
    -Joel

  • Error in db13 SXPG_COMMAND_EXECUTE failed

    Hi
    I have ecc6 ehp4 with oracle on windows this is cluster environment, I have installed standalone gateway on node2 successfully as per note 657999 and its up & running
    When I keep db and application on separate nodes I cannot schedule any job in db13 I am getting error as below
    Job started
    Step 001 started (program RSDBAJOB, variant &0000000000039, user ID TABRAYZ)
    Execute logical command BRCONNECT On host SAPFNP
    Parameters: -u / -jid CHECK20110727155211 -c -f check
    Can't exec external program (No such file or directory)
    WaitForSingleObject failedwith %d (No such deviceor address)
    SXPG_COMMAND_EXECUTE failed for BRCONNECT - Reason: unknown
    Job cancelled after system exception ERROR_MESSAGE
    Please help me guys.
    Thanks
    Abdul Tabrayz

    Hi,
    there are two things that you need to make sure:
    1) Make sure your RFC for sxpg should run on gateway host of virtual db in SM59.
    2) Please make sure that you should have set additional env variable as per SAP note 378648 for user <sid>adm.
    Thanks
    Sunny

  • Getting Error after executing SXPG_COMMAND_EXECUTE.

    After execution of Function module SXPG_COMMAND_EXECUTE following message is displayed:-
    " Can't execute external program(Exec format error)
    External Program terminated with exit code 1"
    please suggest the cause why we are getting the message.

    Hi
       In my case operating system command is not wrong.  I am just giving for test mv ( to move file from one dir to other) still its giving me same error.  If it works, then I can try for decripting the file.
    I have tried below ways  for testing in SM49.  don't know what was causing the problam.  Please help me in this.
    Command name              ZMV2
    Operating system          HP-UX   /  Windows NT / Unix / anyos
    Operating system command
    mv
    Parameters for operating system command
    Additional parameters
    D:\usr\sap\DEC\DVEBMGS00\work\usra.out D:\usr\sap\DEC\DVEBMGS00\work\usra_r.out
                 OR
    usr\sap\DEC\DVEBMGS00\work\usra.out
    usr\sap\DEC\DVEBMGS00\work\usra_r.out
    executin Target :  selected Local
    Error I am getting in SM49 : Can't exec external program (No such process)                                                                                WaitForSingleObject failedwith %d (No such device or address)
    It will be very greatfull, If you can help me on this.

  • SM69-Can't exec external program (Exec format error)

    Hi All,
    I am executing UNIX script on HP-UX system via SM69.
    But getting following error:
    u201CCan't exec external program (Exec format error)
    External program terminated with exit code 1u201D
    Also getting same error with FM-SXPG_COMMAND_EXECUTE & SXPG_COMMAND_EXECUTE
    Can any one guide what is the cause of error.
    Any help will be appreciated.
    Regards

    Check the Sample program. You can test or check the Unix commands using the below program.
    You can use the commands Like LS to list all the files.
    REPORT ZUNIX line-size 400
                    no standard page heading.
    data: unixcom like   rlgrap-filename.  
    "7 full perimission to read
    "7 full permission to change
    "7 full permission to delete
    unixcom = 'CHMOD 777 fillfullpath'.
    data: begin of tabl occurs 500,
            line(400),
          end of tabl.
    data: lines type i.
    start-of-selection.
      refresh tabl.
      call 'SYSTEM' id 'COMMAND' field unixcom
                    id 'TAB'     field tabl[].

  • Fail SXPG_COMMAND_EXECUTE para BRCONNECT - program_start_error

    Hi,
    I have a issue with jobs in DBA Planning.
    In all task i get the error
    Ha fallado SXPG_COMMAND_EXECUTE para BRCONNECT - Causa: program_start_error: ViewSYSLOG
    DEV_RD
    R3ALLC: wait for connect
    GwListInsert: insert elem 36 into conn_search_list (at begin)
    GwListInsert: 1 elems in conn_search_list
    GwICheckSecInfo: check tp=sapxpg, user=ADMIN       , host=*, addr=10.4.33.64
    GwICheckSecInfo: check entry tp=, lu=
    GwICheckSecInfo: entry found, finish search, access=PERMIT
    GwISendConnReq: CONV: >78811344<
    NiHsLGetHostName: found address 10.4.33.64 in cache
    NiIGetHostName: addr 10.4.33.64 = hostname 'pbmdeaqbds01'
    GwISendConnReq: LU: >pbmdeaqbds01<
    GwIRemoteShell: start programm sapxpg on host pbmdeaqbds01 (/usr/bin/ssh)
    PRNG is not seeded
    GwStartProgram: started /usr/bin/ssh, pid=1101996
    : /usr/bin/ssh
    : pbmdeaqbds01
    : sapxpg
    : pbmdeaqcib01
    : sapgw01
    : 78811344
    : GWHOST=pbmdeaqcib01
    : GWSERV=sapgw01
    : CONVID=78811344
    : pf=/usr/sap/BQ1/SYS/profile/BQ1_DVEBMGS01_pbmdeaqcib01
    : CPIC_TRACE=2
    : IDX=36
    : SNC_MODE=0
    GwReadReqIndex: (process_id: -1)
    GwReadReqIndex: no filled request-index-block
    child (pid=1101996) exited with exit code 255
    DEV_Wx
    Mon Apr 25 14:42:47 2011
    LOCATION    SAP-Gateway on host pbmdeaqcib01 / sapgw01
    ERROR       timeout during allocate
    TIME        Mon Apr 25 14:42:47 2011
    RELEASE     701
    M  *  COMPONENT   SAP-Gateway
    M  *  VERSION     2
    M  *  RC          242
    M  *  MODULE      gwr3cpic.c
    M  *  LINE        2066
    M  *  DETAIL      no connect of TP sapxpg from host pbmdeaqbds01 after 20 sec
    M  *  COUNTER     1520
    M  *
    M  *****************************************************************************
    M
    A  RFC 1485  CONVID 74789811
    A   * CMRC=27 DATA=0 STATUS=0 SAPRC=242 ThSAPOCMINIT
    A  RFC> ABAP Programm: RSRFCPIN (Transaction: SM59)
    A  RFC> User: ADMIN (Client: 300)
    A  RFC> Destination: SAPXPG_DBDEST_PBMDEAQBDS01 (handle: 2, , )
    A  *** ERROR => RFC ======> CPIC-CALL: 'ThSAPOCMINIT' : cmRc=27 thRc=242
    Timeout al intentar establecer una comunicación (¿ interlocutor ok ?)
    A  *** ERROR => RFC Error RFCIO_ERROR_SYSERROR in abrfcpic.c : 1501
    CPIC-CALL: 'ThSAPOCMINIT' : cmRc=27 thRc=242
    Timeout al intentar establecer una comunicación (¿ interlocutor ok ?)
    DEST =SAPXPG_DBDEST_PBMDEAQBDS01
    HOST =pbmdeaqbds01
    PROG =sapxpg
    A  TH VERBOSE LEVEL FULL
    A  ** RABAX: end RX_GET_MESSAGE
    C
    Dev_rfc
    ======> CPIC-CALL: 'ThSAPOCMINIT' : cmRc=27 thRc=242
    Timeout al intentar establecer una comunicación (¿ interlocutor ok ?)
    ABAP Programm: RSRFCPIN (Transaction: SM59)
    User: ADMIN (Client: 300)
    Destination: SAPXPG_DBDEST_PBMDEAQBDS01 (handle: 2, , )
    Error RFCIO_ERROR_SYSERROR in abrfcpic.c : 1501
    CPIC-CALL: 'ThSAPOCMINIT' : cmRc=27 thRc=242
    Timeout al intentar establecer una comunicación (¿ interlocutor ok ?)
    DEST =SAPXPG_DBDEST_PBMDEAQBDS01
    HOST =10.4.33.64
    PROG =sapxpg
    The Database is in other host. The installation is distributed.
    Any suggestion?
    Many Thanks
    William Neira

    Hi Juan
    dev_xpg
    Name:       dev_xpg
    Trace file of external program (trace level 3)
    < Function: BtcTrcInit> Function: BtcXpgStart  External program: SAPXPG
      Process id: 553162
      Parent process id: 663780
      Rearrange StdErr to be collected in memory
      Rearrange StdOut to be collected in memory
    dev_cp
    Directory:  /usr/sap/BQ1/DVEBMGS01/work
    Name:       dev_cp
    Trace file of control program (trace level 3)
    < Function: BtcTrcInit> Function: main  SAPXPG 720
    2011-04-26--14-13-15 : Before BtcXpgDetach
      > Function: BtcXpgDetach  < Function: BtcXpgDetach  Accept RFC connection from R/3 system
    2011-04-26--14-13-15 : Before RfcAccept
    2011-04-26--14-13-15 : RfcAccept returned OK
    Begin of check_if_security_list
    security check switched OFF
    End of check_if_security_list
    Begin of check_trace_option
    End of check_trace_option
      Install RFC call SAPXPG_START_XPG
      Install RFC call SAPXPG_START_XPG_LONG
      Install RFC call SAPXPG_END_XPG
      Wait for RFC call SAPXPG_START_XPG or SAPXPG_START_XPG_LONG
    2011-04-26--14-13-15 : Before first call of RFCDispatch
    Security: rfcexec_logon_check
      rfcexec_logon_check: logon_user = ADMIN
      sapxpg_logon_check: rfc_attr.user = ADMIN
      rfcexec_logon_check: client = 300
    2011-04-26--14-13-15 : After first call of RFCDispatch
    2011-04-26--14-13-15 : Before call of RfcClose (sequencing error)
    2011-04-26--14-13-15 : After call of RfcClose (sequencing error)
    < Function: main
    2011-04-26--14-13-15 : End of SAPXPG: main
    Many thanks
    William Neira

  • SM69-Can't exec external program ( External program terminated with ecode1)

    Hi All,
    Client requirement is to Move File from Presentation Server to Application Server.
    I am executing UNIX script on AIX OS via SM69.
    But I am getting the  following error:
    Can't exec external program (No such file or directory)
    External program terminated with exit code 1
    Also getting same error with FM-SXPG_COMMAND_EXECUTE .
    Below is the code..
    data: l_exitcode type btcxpgexit,
            l_parms type btcxpgpar,
            l_status type btcxpgstat.
    data: lt_protocol type standard table of btcxpm,
            l_protocol type btcxpm.
    concatenate 'C:\Venkat1\PARBIND.BMP'
                          'D:\Venkat2\PARBIND.BMP'
                          into l_parms
                          separated by space.
    * External command:
    * - Unix - mv
    call function 'SXPG_COMMAND_EXECUTE'
      exporting
        commandname                   = 'Z_MV'
        additional_parameters         = l_parms
      importing
        status                        = l_status
        exitcode                      = l_exitcode
      tables
        exec_protocol                 = lt_protocol
      exceptions
        no_permission                 = 1
        command_not_found             = 2
        parameters_too_long           = 3
        security_risk                 = 4
        wrong_check_call_interface    = 5
        program_start_error           = 6
        program_termination_error     = 7
        x_error                       = 8
        parameter_expected            = 9
        too_many_parameters           = 10
        illegal_command               = 11
        wrong_asynchronous_parameters = 12
        cant_enq_tbtco_entry          = 13
        jobcount_generation_error     = 14
        others                        = 15.
    if sy-subrc ne 0
    endif.
    Can any one guide what is the cause of error....
    Any help will be appreciated.
    Regards
    Arbind

    Hi Paul,
    Thanks.
    But still Basis Consultants are telling it is correct from there side.
    Is there any other way to move files from Presentaion Server to Application Server in Background Processing.
    I have used CL_GUI_FRONTEND_SERVICES=>FILE_COPY
    It is working fine in Foreground but in Background Proceesing, it is not working.
    Can u provide any solution ?
    Thanks
    Arbind

  • Error BT616 when calling function module SXPG_COMMAND_EXECUTE in background

    Hi All,
    We use function module SXPG_COMMAND_EXECUTE with a custom command we defined in SM69 to move files in unix (mv command).
    The function module call has worked fine for almost a year and recently we have been seeing an error (BT616) in our job lob (SM37) when the program is run in background. We have not been able to reproduce the error in foreground mode and it seems to be occuring only periodically in the background. (The appropriate SAP authorization objects where assigned to the batch job ID and the steps on the batch job.) We are in the process of setting up the trace flag and performing analysis on the trace log via ST11 to help identify the issue.
    After perform analysis on SXPG_COMMAND_EXECUTE, the error is occurring when calling function module SAPXPG_END_XPG for exception 2, system failure, yet function module SAPXPG_END_XPG does not exist. I assume this is a program at the operating system level and is just a signature of the parameters to be passed to the operating system program.
    Below is part of the SAP function module SXPG_COMMAND_EXECUTE that is failing.
    * Now we have to wait for the termination of the external
    * command if the caller wants us to.
        IF TERMINATIONWAIT = 'X'.
          CALL FUNCTION 'SAPXPG_END_XPG'
            DESTINATION DESTINATION
            IMPORTING   EXITSTAT = STATUS
                        EXITCODE = EXITCODE
            TABLES      LOG      = LOG
            EXCEPTIONS  COMMUNICATION_FAILURE = 1 MESSAGE MSG
                        SYSTEM_FAILURE        = 2 MESSAGE MSG.
    I performed a where used on function module SXPG_COMMAND_EXECUTE, and most of SAP programs call the function module with the parameter TERMINATIONWAIT = 'X', so I assume we should pass ‘X’ as well.
    Any ideas on what could be causing this issue?
    Mike Vondran

    I also remember I have this kind of issue, as I have some UNIX script at OS( UNIX) level . The problem was with the ID , as it don’t have proper authorization at OS level ( UNIX ) . Please check this ID authorization. This could be the one of reasons if you’re sure from SAP standpoint.
    Hope this’ll give you some guide line..
    Thanks
    Bye

  • SXPG_COMMAND_EXECUTE - returns an error

    Hi All,
    I am using the FM SXPG_COMMAND_EXECUTE to run a unix script which fetches a pdf file written from ABAP code into
    application server.
    I have written the pdf file, and while run separately the Unix script is working fine.
    But the FM which calls the unix script, SXPG_COMMAND_EXECUTE, returns errors which say that the pdf file could not be opened. I have written the pdf file in binary form on the application server.
    Please help.
    This is my code:
    CALL FUNCTION 'CONVERT_OTF'
        EXPORTING
          format                = 'PDF'
          max_linewidth         = 132
        IMPORTING
          bin_filesize          = gv_bin_filesize
          bin_file              = gt_bin
        TABLES
          otf                   = gt_otf
          lines                 = gt_pdf_tab
        EXCEPTIONS
          err_max_linewidth     = 1
          err_format            = 2
          err_conv_not_possible = 3
          OTHERS                = 4.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
        WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      data:    mstr_print_parms LIKE pri_params,
               gv_file type string value '/usr/sap/ABAP-TMP/',
               wa_pdf_tab like line of gt_pdf_tab,
               it_docs TYPE STANDARD TABLE OF docs,
               it_lines TYPE STANDARD TABLE OF tline,
               gv_frontfile type string ,
               wa_lines type tline.
    concatenate gv_file wa_final-pernr '.pdf' into gv_file.
    open dataset gv_file for output in binary mode.
    transfer gt_bin to gv_file.
    close dataset gv_file.
    CONSTANTS: c_extcom    TYPE sxpgcolist-name VALUE 'ZHRPAYSLIP',
               c_oper      TYPE syopsys VALUE 'Linux'.
    DATA: v_dir_input      TYPE sxpgcolist-parameters.  " Input Directory
    DATA: t_result         TYPE STANDARD TABLE OF btcxpm.
    concatenate wa_final-pernr
                gs_reclist-receiver
                '93210951'
                into v_dir_input
                separated by space.
    CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
      EXPORTING
        commandname                   = c_extcom
        additional_parameters         = v_dir_input
        operatingsystem               = c_oper
      TABLES
        exec_protocol                 = t_result
      EXCEPTIONS
        no_permission                 = 1
        command_not_found             = 2
        parameters_too_long           = 3
        security_risk                 = 4
        wrong_check_call_interface    = 5
        program_start_error           = 6
        program_termination_error     = 7
        x_error                       = 8
        parameter_expected            = 9
        too_many_parameters           = 10
        illegal_command               = 11
        wrong_asynchronous_parameters = 12
        cant_enq_tbtco_entry          = 13
        jobcount_generation_error     = 14
        OTHERS                        = 15.
    Thanks,
    Anita

    Hi guys,
    Issue has been resolved. I was writing the pdf file in the application server, wheras the Unix script had some other directory as its present working directory.
    As we are using the same directory for the purpose, this directory and folder name was hard coded in the Unix script as well,
    so that the confusion of path is resolved.
    Thus this issue was resolved from the Unix script itself.
    Thanks.
    Anita Jeyan.

  • SXPG_COMMAND_EXECUTE error

    Hi All,
    Jobs in db13 are failing with below error.
    04.08.2010     05:00:46     Job started
    04.08.2010     05:00:47     Step 001 started (program RSDBAJOB, variant &0000000000059, user ID xxxxx)
    04.08.2010     05:00:47     Execute logical command BRCONNECT On host dbSID
    04.08.2010     05:00:47     Parameters: -u / -jid STATS20100609000000 -c -f stats -t ALL
    04.08.2010     05:01:27     External communication error at program start (see system log)
    04.08.2010     05:01:27     SAPXPG_START_XPG_LONG: sy-subrc ne 0
    04.08.2010     05:01:27     destination = SAPXPG_DBDEST_DBSID
    04.08.2010     05:01:28     SXPG_STEP_XPG_START: execute_sapxpg: rc = 1.003
    04.08.2010     05:01:28     SXPG_STEP_COMMAND_START: SXPG_STEP_XPG_START returned: 1.003
    04.08.2010     05:01:28     SXPG_COMMAND_EXECUTE(LONG)
    04.08.2010     05:01:28     COMMANDNAME = BRCONNECT
    04.08.2010     05:01:28     OPERATINGSYSTEM = ANYOS
    04.08.2010     05:01:28     TARGETSYSTEM = dbSID
    04.08.2010     05:01:28     DESTINATION = SAPXPG_DBDEST_DBSID
    04.08.2010     05:01:28     SXPG_COMMAND_EXECUTE failed for BRCONNECT - Reason: program_start_error: For More Information, See SYS
    04.08.2010     05:01:28     Job cancelled after system exception ERROR_MESSAGE
    And SAPXPG_DBDEST_DBSID  rtc connection failed with timeout error.
    Logon     Connection Error
    Error Details     Error when opening an RFC connection
    Error Details     ERROR: timeout during allocate
    Error Details     LOCATION: SAP-Gateway on host ciSID.ncsbe.eu.jnj.com / sapgw52
    Error Details     DETAIL: no connect of TP sapxpg from host dbSID.ncsbe.eu.jnj.com after 20 sec
    Error Details     COMPONENT: SAP-Gateway
    Error Details     COUNTER: 98
    Error Details     MODULE: gwr3cpic.c
    Error Details     LINE: 2030
    Error Details     RETURN CODE: 242
    Error Details     SUBRC: 0
    Error Details     RELEASE: 701
    Error Details     TIME: Wed Aug  4 13:41:27 2010
    Error Details     VERSION: 2
    System log is showing " Error1005 when executing external command brtools on SAPXPG_DBDEST_DBSID (in=R,out=M,err=M,trc=0,trm=C. strtstat=,xpgid=0,convid=. msg :Error when openi)".
    When i check detail logs also it is throwing error " SXPG_COMMAND_EXECUTE failed for BRCONNECT - Reason: program_start_error: For More Information, See SYS ".
    DB and CI are on different hosts.
    SAP : SAP EHP 1 for SAP NetWeaver 7.0
    DB : Oracle 10.2.0.4.0
    OS : HP-UX
    Gateway is running, I see gateway profiles exist at OS level in /usr/sap/SID/SYS/profile.
    But gateway profiles haven't been created in RZ10.
    Is this causing the issue. Can you please help me out here.
    Thanks in advance.
    Edited by: SAP Basis on Aug 4, 2010 7:59 AM

    Error Details Error when opening an RFC connection
    Error Details ERROR: timeout during allocate
    Error Details LOCATION: SAP-Gateway on host ciSID.ncsbe.eu.jnj.com / sapgw52
    It's using RFC to connect so check SM59 -> TCP/IP Connections -> SAPXPG_DBDEST_<SID>
    Make sure the Technical Settings are correct and you can do a successful "Connection Test".
    Nelis

  • DB13 job failed due to SXPG_COMMAND_EXECUTE error

    Hi,
    I received an error when I try run the BRCONNECT Database Action Calendar (tx. DB13), either it's a Database check, statistics updates, etc. The error messages are as follows:
    Job started
    Step 001 started (program RSDBAJOB, variant &0000000000166, user ID SETIR0)
    No application server found on database host - rsh/Gateway will be used
    Execute logical command BRCONNECT On host tdcwsxd1
    Parameters: -u / -c -f check
    SXPG_COMMAND_EXECUTE failed for BRCONNECT - Reason: program_start_error: For More Information, See SYS
    Job cancelled after system exception ERROR_MESSAGE
    FYI, we're using DB instance (DB) and Central Instance (CI) on each separate box in the unix environments. SAP Basis rel. 620 with SP level SAPKB62053.
    If I execute the command directly in DB instance, it works fine but not from SAP trx DB13.
    Command: brconnect -u / -c -f check.
    Thanks and best regards,
    Mark

    Hi Mark,
    Sorry I see you are running on Unix, I am only familiar with Windows environment, but however on Windows I would do the following:
    1) Install a so called Standalone Gateway on the DB-host.
    2) copy the sapxpg executable to the directory where the gateway is installed.
    2) Change the SAPXPG_DBDEST... RFC connection to point to, or use this gateway (gateway options).
    That's all....
    (How to Install a standalone gateway or Gateway instance is normally described in the SAP installation guide).
    But as I sad, I am not sure if this is possible under Unix also, and the way to go...
    Regards
    Rolf

  • Error on SXPG_COMMAND_EXECUTE

    Hi all,
    I want to execute a DIR on a external system and I've created a SM69 commant named ZTEST_DIR to do it.
    The code of the DIR is RUNRMTCMD CMD('dir t:\docs\cdphtesp ') RMTLOCNAME(XXXXX *IP) RMTUSER(XXXX) RMTPWD('XXX') and it works fine. (with two slash but it does not show)
    The probles is that the directory must be variable so, I need to user the additional parameters ( the flag to allow that is checked ).
    Then the code of the command is RUNRMTCMD CMD('dir ') RMTLOCNAME(IXXXX *IP) RMTUSER(XXXX) RMTPWD('XXXX') and on the additional parameteres I put the directory as 't:\docs\cdphtesp' (with two slash but it does not show) but it does not work fine it returns an error String '\DOCS\CDPH' contains a character that is not valid.
    I've created also a test program to execute it on the SXPG_COMMAND_EXECUTE (I paste the code at bottom) but with the same result.
    Can anybody help me?
    Thanks in advance.
    DATA: d_commandname LIKE sxpgcolist-name,
          d_exit_code LIKE extcmdexex-exitcode,
          d_status LIKE extcmdexex-status,
          d_aditional_parameters like SXPGCOLIST-PARAMETERS.
    DATA: li_execution LIKE btcxpm OCCURS 0 WITH HEADER LINE.
    d_commandname = 'ZTEST_DIR'.
    d_aditional_parameters = 't:\docs\cdphtesp'. (again two slashes)
    CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
      EXPORTING
        commandname                         = d_commandname
        ADDITIONAL_PARAMETERS               = d_aditional_parameters
        terminationwait                     = 'X'
    IMPORTING
       status                              = d_status
       exitcode                            = d_exit_code
    TABLES
       exec_protocol                       = li_execution
    EXCEPTIONS
       no_permission                       = 1.
    Edited by: Legoles_ dlb on Jun 10, 2009 3:56 PM
    Edited by: Legoles_ dlb on Jun 10, 2009 3:58 PM

    Finally the problem was resolved; Special characters must be escaped.

  • Error while executing a JOB

    Post Author: rkolturu
    CA Forum: Data Integration
    I tried to execute a job which is compiled and error free but get the error below has any one of you any workaround for this problem
    5308 4880 PAR-010102 12.12.2007 08:44:52 |SessionJOB_XYZ
    5308 4880 PAR-010102 12.12.2007 08:44:52 Syntax error at line : 00297-182
    5308 4880 PAR-010102 12.12.2007 08:44:52 0-189393172: near found expecting .
    5308 4880 PAR-010102 12.12.2007 08:44:52 Syntax error at line : <>: near found .
    5308 4880 PAR-010102 12.12.2007 08:44:52 2 error(s), 0 warning(s).
    5308 4880 PAR-010102 12.12.2007 08:44:52 . Please check and fix the syntax and retry the operation.

    Hi,
    If  CI & DB are on different host this error normally occures.SAP return codes 236 means no connection to gateway, can you check it?
    Also check whether TCP/IP RFC connection SAPXPG_DBDEST_*  is working fine or not.If it is not working fine then please check whether you have mentioned below details
    Program              sapxpg
    Target Host          DB Host name
    Gateway Host    DB host/gateway host
    Gateway service sapgw##
    Also refer SAP Note  108777 - CCMS: Message 'SAPXPG failed for BRTOOLS' & Note 446172 - SXPG_COMMAND_EXECUTE (program_start_error) in DB13
    Hope this helps.
    Thanks,
    Sushil

  • Error while executing a job via dbacockpit

    Hi,
    I encountered the below errores while trying to execute a dba job (cleanup log, backup redo log...)
    What could be the cause ? Could it be the SAPPROD_00 windows service that's not working ?
    Please advise. TIA !
    SAP-Basis System: Operating system call        connect failed (error no. 10061)
    SAP-Basis System: Communication error, CPIC return code 017, SAP return code 236
    SAP-Basis System: > CPI-C function:  CMINIT(SAP)
    Background processing: Error1005 when executing external command brconnect on SAPXPG_DBDEST_BELLSERVER (in=R,out=M,err=M,trc=0,trm=C. strtstat=,xpgid=0,convid=. msg:Error when openi                                               )

    Hi,
    If  CI & DB are on different host this error normally occures.SAP return codes 236 means no connection to gateway, can you check it?
    Also check whether TCP/IP RFC connection SAPXPG_DBDEST_*  is working fine or not.If it is not working fine then please check whether you have mentioned below details
    Program              sapxpg
    Target Host          DB Host name
    Gateway Host    DB host/gateway host
    Gateway service sapgw##
    Also refer SAP Note  108777 - CCMS: Message 'SAPXPG failed for BRTOOLS' & Note 446172 - SXPG_COMMAND_EXECUTE (program_start_error) in DB13
    Hope this helps.
    Thanks,
    Sushil

  • Error while schedulingg update stat in db13

    Dear Experts,
    Please look into my issue we are facing an error while scheduling update statistics in db13 and I tried to open detailed log
    It is given
    SXPG_COMMAND_EXECUTE failed for BRTOOLS - Reason: program_start_error: For More Information, See SYS
    Please help me how to solve this my error
    Regards

    Hi,
    Check the owner for BRBACKUP, BRARCHIVE, and BRCONNECT in kernel,
    these files should be with SIDADM, if not change the owner to SIDADM and rerun the update stats.
    and also Refer the note 446172
    Regards,
    Ram

Maybe you are looking for

  • Creation of Source System

    Dear all,   i am new to BI 7.0. can you help me how to create source system.

  • Blank field getting converted into wrong date

    Dear All, I have one date field in SAP table in which there are some entries and some blank entries. when Proxy is sending this data from ECC blank entries are converted into 00000000 and through XI in file this 00000000 entry for date getting conver

  • Help please! Video too dark to review and make clips!

    Bought a new imac G5 for video editing as this was recommended by the mac store. Just captured my first short film, filmed on panasonic dvx 100B in 24pA. Not only are the day scenes fuzzy, but the night scenes are black and I can't see them to even m

  • SAP Scripts for Stock Removal and Stock Placement ?

    Hi All,   Can you please let me know what are the SAP script names and Transaction codes for  Stock Removal and Stock Placements ? Thanks, Raj

  • VC220 IP Address / Connectivity Problem

    I received a VC220 Dome camera and cannot connect to it.  I held the reset button for 10 seconds and let it reboot.  There is a DHCP server on my subnet serving a 64.102.x.x IP address, but FindIT says the Camera is 192.168.1.99.  I cannot find the c