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

Similar Messages

  • 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[].

  • SM69 error-Can't exec external program (Permission denied).with exit code 1

    Hi All,
    I am trying to execute UNIX script via creating commend line in SM69.
    But i am getting following error:
    "Can't exec external program (Permission denied)
    External program terminated with exit code 1"
    Can any one guide me what could be the cause of this error.
    Any Help will be appreciated.
    Thanks & Regards

    First use SU53, to see if you have all SAP-authoritys.
    But I think, you have no authority to execute UNIX-programs.
    or your UNIX-script is not executable?

  • SXPG_COMMAND_EXECUTE Can't exec external program (No such file or directory

    Hi Experts,
    I need to launch or terminate an external application (i.e. command prompt, notepad, etc.) in background job by using FM SXPG_COMMAND_EXECUTE. However, I am unable to proceed because of the following error occured after executing the command in SM69.
    Can't exec external program (No such file or directory)
    External program terminated with exit code 1
    I was using the following sample code. Can someone tell me what might be the cause of the problem?
    DATA: lv_status TYPE extcmdexex-status,
          lt_output TYPE TABLE OF btcxpm,
          lv_opsys  TYPE sy-opsys.
    lv_opsys = 'WINDOWS NT'.
    CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
      EXPORTING
        commandname                   = 'ZIEXPLORE'
        additional_parameters         = '/c'
        operatingsystem               = lv_opsys
      IMPORTING
        status                        = lv_status
      TABLES
        exec_protocol                 = lt_output
      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.
    ZIEXPLORE command
    Operating system command: cmd
    Parameters for operating system command: taskkill /f /im iexplore.exe
    Thanks and Regards,
    Louie

    Hi Louie,
    I am not able to assume the reason of the problem, If you say that its not getting executed in SM49 then the problem lies there.
    So I am providing you a link which might be helpful, just go through it and cross check. There is a parameter called "trace" in the fm mentioned.
    Secton Microsoft Windows NT - [Prerequisites for Running External Commands and External Programs|http://help.sap.com/saphelp_nw70/helpdata/en/c4/3a7fbb505211d189550000e829fbbd/content.htm]
    [Analyzing Problems with External Commands and Programs|http://help.sap.com/saphelp_nw70/helpdata/en/c4/3a80c4505211d189550000e829fbbd/content.htm]
    May be you can post this question in [SAP AS General|SAP NetWeaver Application Server; also.

  • Can't exec external program (Permission denied)-

    Hi All
    We have mentioned external command in SM69 and executed the command in SM49, I am getting the below error message.
    Command executed:      
    /home/ SMIME/run/signand.sh :
    Target host:            dt02
    Can't exec external program (Permission denied)
    External program terminated with exit code 1
    Program wise also I am unable to execute the command & I am getting sy-subrc eq 1. Please help me which authorization object is missing to run the external command.
    u_comm =  /home/ SMIME/run/signand.sh
      CALL 'SYSTEM'
      ID 'COMMAND' FIELD u_comm
      ID 'TAB'     FIELD rt-sys.
    Please confirm.

    Can you please check the permission for /home/ SMIME/run/signand.sh, perform below command
    chmod 755 /home/ SMIME/run/signand.sh
    and retry.

  • Calling an external shell script program from ABAP.

    Hi,
      Can i call an external shell script program from abap which is there on application server.
    The FM WS_EXECUTE i know can be used for calling this purpose.
    But i am getting a doubt that how can i call the external program from there.
    Please clear my doubts.
    Thanks in advance.
    Vikash

    search in SCN for sm49 and sm69 Tr. you will surely find solutions for it, with a simple search.

  • Reset or Clear SAP user context by external RFC caller program

    Hello,
    I have a SAP system with performance problems due to a SAP user context starts using a lot of memory.
    This user context comes from an External RFC caller program written in Delphi and which uses the SAP RFC SDK provided by SAPGUI 6.40: SAP Automation library, SAPFuntionsOCX, I mean, using methods in the object "SAPFunctions" in SAPFunctionsOCX in file "wdtfuncU.ocx", in SAPGUI directory.
    Everytime we have performance problems, this RFC SAP user context is using near 1400 Mb of extended memory, although there is a lot of free physical RAM memory available, there are free dialog processes and CPU load is low (no more than 30%).
    This performance problem is solved by closing the external program (written in Delphi) which connects to SAP via RFC.
    This external program works for the warehouse management and connects to SAP several times per minute. Due to connection performance and the high frequency with which this external program must connect to SAP, the connection to SAP is not closed after each call to RFC SAP function modules.
    The extended memory used by this SAP RFC user is growing along time. I detected, using ST03 transaction, that these user sessions have always the same transaction code hash, I mean, although the external programs call the same SAP RFC funcion modules several times (¡¡¡ always clearing the variables at the beginning and at the end of de ABAP code, with ABAP commands like REFRESH and FREE ¡¡¡¡) the technical transaction code is the same and I suppose the user context (in extended memory) is not deleted.
    I think it is better than the external program close the context memory (similar to "/n" okcode in SAPGUI).
    But we don't want to close the connection, because the external program connects to SAP with a high frequency, and the logon process is expensive.
    Is there any way to send something similar to "/n" (end of transaction) from the external program? Is there any command in the SAP RFC SDK library (SAPFuntionsOCX or something similar?
    I cannot find any method to do that in the object "SAPFunctions" in SAPFunctionsOCX in file "wdtfuncU.ocx", in SAPGUI directory.
    Old information for Object Classes "SAPFunctions" in SAPFunctionsOCX in file "wdtfuncU.ocx", in SAPGUI directory, is described in the following URL:
    http://help.sap.com/saphelp_45b/helpdata/en/39/7e00d1ac6011d189c60000e829fbbd/frameset.htm
    But I cannot find anything related to something similar to a "/n" in SAPGUI.
    As I have the SAPGUI installed on my desktop, I can see all SAP RFC classes and methods from Excel, by opening the Visual Basic editor.
    I am only asking a way to send to SAP a command to free the user context used for an open RFC session in order to avoid the memory used to be continuously growing, without having to close the RFC session.
    The external program only calls a certain SAP function module periodically and we want to free the user context between calls without logging off. This is the same, very similar, as if we called that function from SAPGUI and we used "/n" in SAPGUI between calls.
    Anyone can help me?
    Thanks and best regards.

    Hello,
    I don't know if this will solve your problem, but you may be using MF 'RFC_CONNECTION_CLOSE' between each call of you RFC function.
    Regards
    Brice
    Edited by: blsapsdn on Apr 15, 2011 5:27 PM

  • Error Message: External program terminated with exit code 2

    Hi ALL
    We are doing REORG tablespace in DB13 and i am getting below error message. Please help us to resolve the issue.
    20100430     113234     DB6PM     000     Reorg_Tbspc:Command DB6CLP failed on server
    20100430 103959 DB6PM 000 Reorg_Tbspc:Exitcode:Error
    20100430 103959 DB6PM 000 Reorg_Tbspc:ERRORMESSAGE: An SQL error occured. Will print output of the command
    20100430 103959 DB6PM 000 Reorg_Tbspc:External program terminated with exit code 2
    20100430 103959 DB6PM 000 REASON=C call failed
    Regards
    K.Gunasekar
    Edited by: KGUNASEKAR on Apr 30, 2010 6:55 AM

    Exitcode 2, if returned from the OS, means "No such file or directory". Note that as of SAP kernel release 7, you usually do not have DB6CLP any more. Can you check if the executable is available in the SAP exe directory ?
    If running SAÜ kernel 700 or higher, I suggest to apply a recent SP level.
    Malte

  • Aperture API to Call External Image Manipulation Program

    Does the Aperture API allow someone to write a plugin to call an external image manipulation program (the one I'm thinking about is command line only) for image manipulations that would then take the manipulated image back into the library as a version of the original?

    That should be possible, but you'd have to make sure that the remapped result was saved back into the same file that was sent to it, and that the command-line tool can cope with 16-bit images.
    By the way, are you using a PanoTools-variant or something else for the defishing?
    Ian

  • FUNCTION SXPG_COMMAND_EXECUTE External program terminated with exit code 2

    HI,
    I am using the below Function Module
    gv_ap = '/nfs/ficheiros/FicheiroExtraccaoSIF/outbox'
    CALL FUNCTION 'SXPG_COMMAND_EXECUTE'                 
          EXPORTING                                       
               commandname                   = 'Z_LS'     
               additional_parameters         = gv_ap      
          TABLES                                          
               exec_protocol                 = t_fich     
          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.        
    with this folder '/nfs/ficheiros/FicheiroExtraccaoSIF/outbox' return the error:
    /nfs/ficheiros/FicheiroExtraccaoSIF/outbox not found and
    External program terminated with exit code 2
    but if i map other directory the function return the files and folders that directory have.
    Anyone could help me.
    Thanks and Regards.
    Eduardo Paiva

    Hi,
    Yes i have read access to this directory and the command 'Z_LS' exists.
    Best Regards,
    Eduardo Paiva

  • Adobe AIR - java is not recognized as an internal or external command operable program or batch file

    Hi,
    I've done everything as in the HelloWorld tutorial but when i run this cmd: adt
    it gives me the following error java is not recognized as an internal or external command operable program or batch file
    I've installed the AIR runtime v2
    Downloaded the SDK v2 and placed in D:\Www\air
    Modified the path variable with D:\Www\air\bin
    And then i open a new cmd console and simply write adt and gives me that error.
    I've updated to the latest version of Java, but it did solve it.
    But what's strage it's that the adl command work, but i'm not being able to pack my application.
    I'm running Windows 7 on x64 platform.
    Sincerely,
    Alex

    I think the 32bit version will work, but it sounds like you'll need to add the Java bin folder to your system path.  This is usually done by the Java installer, so I'm not sure what failed, did you run the installer located at www.java.com?  Either way, this document might be able to help you out:
    How do I set or change the PATH system variable
    Add the Java "bin" folder to your path, you might also need to add the CLASSPATH.
    Please let me know how it goes!

  • How can I connect to MySQL external database

    Hello.
    I have a SAP system running in SQL Server 2003.
    I need to connect to external MySQL DB., to operate with this information in ABAP program.
    I have done the step necesary... I mean I go to DBCO transaction and configure the connection like this:
    DB CONNECTION --> AFIS
    DBMS --> MSS
    user name --> xxxxxx
    DBpass -->xxxxxx / xxxxxx
    Conn Info -->MSSQL_SERVER=192.168.1.233 MSSQL_DBNAME=alliance OBJECT_SOURCE=alliance
    I do a test program, when I do the statement CONNECT TO, sy-subrc 0 and connection = DEFAULT... I mean, with this form I cannot connect to MySQL Database...
    Can you help me to do this?? I think the problem it's the connection string in DBCO... but I'm not sure...,
    Would be possible to connect by MySQL ODBC??? I mean , installing the ODBC driver in my SAP server, and using this in ABAP Program??
    Thks.
    DATA: BEGIN OF wa,
    cod_modelo(20),
    END OF wa.
    DATA: dbs TYPE dbcon-con_name.
    DATA: con(20) TYPE c.
    DATA : ls_wa LIKE wa.
    con = 'AFIS'. "DB Connection in DBCO above
    EXEC SQL.
    CONNECT TO :con
    ENDEXEC.
    WRITE sy-subrc. ---> The result it's 4
    EXEC SQL.
    GET CONNECTION :con
    ENDEXEC.
    WRITE : con. --> The result it's DEFAULT
    EXEC SQL.
    SET CONNECTION DEFAULT
    ENDEXEC.
    write : con. --> The result it's DEFAULT

    > It's for it, that when I go to DBCO... in DBMS ---... I can select Oracle, MSSQLServer, DB2... for this Databases..., exists the library (lib_dbsl)???
    yes, for all those databases exists the database interface library.
    > In resume:
    >  IT'S NOT POSSIBLE CONNECT TO MYSQL!!! ... I cannot believe it!!!...
    Well - as far as I remember there were some times ago efforts to port SAP applications to MySQL. That would explain why there's also a file "DDLMYS.TPL" created if you execute R3ldctl during a system copy - amongst DDL files for all other databases. I believe this was at the time MySQL was promoting SAPDB/MaxDB.
    MySQL is historically not a database engine for software, that requires transactional integrity; there were extensions to support that (InnoDB or others) and there was no customer demand in getting MySQL as engine for SAP applications. And only develop an interface to be able to connect to an external MySQL engine is not worth the effort.
    However, there is hope Some BusinessObjects applications also run with and against MySQL engines, depending on how the strategy to integrate those into the SAP software stack there may (or may not) be an interface for that database in the future.
    Markus

  • Started to run recovery disc assistant on a backup hard drve-stopped when it said it would erase all data-but now can't inialize the external drive nor repair it with disc utility?

    started to run recovery disc assistant on a backup hard drve-stopped when it said it would erase all data-but now can't inialize the external drive nor repair it with disc utility. what to do?

    Activity Monitor – Monitor Performance Problems  
    Performance Guide
    Why is my computer slow
    Why your Mac runs slower than it should
    Slow Mac After Mavericks
    Things you can do to resolve slowdowns  see post by Kappy
    Try running this program and then copy and paste the output in a reply. The program was created by Etresoft, a frequent contributor.  Please use copy and paste as screen shots can be hard to read.
    Etrecheck – System Information

  • I have the new version of iMovie, and when i try to start the program, i can't because it says that it is looking for some movie files from the Iphoto, so all the program is locked up... how can i do to restart the program??

    i have the new version of iMovie, and when i try to start the program, i can't because it says that it is looking for some movie files from the Iphoto, so all the program is locked up... how can i do to restart the program??

    Hi
    Did You ever use - iPhoto ?
    Did You may be direct iPhoto to a different Photo Library
    As iMovie tries to find the appropriate photo library - it can get lost if iPhoto direct it into a Library on a not connected external hard disk or to a strange location - And iMovie HANGS.
    Do - When no other program is running that might interfere
    • Start iPhoto - BUT NOW KEEP alt-key (option key) DOWN during the full Start-Up process
    • Now iPhoto let's You select Photo Library
    • Select the one in Your Account / Home folder / Pictures ! !
    • Then iPhoto should start up OK
    • Now Quit iPhoto
    • START iMovie
    Does it still hangs - then I would suspect - iMovie Pref. file
    If it Run's OK - Then HURRAY !
    Yours Bengt W

  • Can time machine make an external HD bootable?

    Hi,
    I'm not really familiar with Time Machine, and I really want to make a copy of my HD onto an external HD, so I can boot off of it in the case that my computer goes haywire. Can Time Machine make my external HD bootable? Or, would one of those other programs (CCC or SuperDuper) be better suited for the task?
    Thanks!
    -Dan

    use Superduper or CCCloner for that. Time Machine backups are not bootable. You can create a bootable drive from a TM backup but it's a lengthy process. You need to boot from the install DVD and use the system restore utility from the utilities menu. plus you'd need an extra external drive.

Maybe you are looking for

  • External hard drive disconnect--photos disappeared!

    My external hard drive (with my iphoto library stored on it) was disconnected when iphoto was open, and when i reconnected the drive and reopened iphoto, the display claimed there were no photos and didn't give me the window to find the library. All

  • How do I know which block has been changed in Master/Detail

    Hi, I have master detail blocks. How do I know which block has been changed? I used :SYSTEM.FORM_STATUS. It only gave me "Changed" or "Query". but didn't tell me which block has been changed in MASTER or DETAIL.

  • Subscription to India not activated?

    Dear, Today I recharge India 800 min(7.49 Euro),but my account it is not showing & i can not call any India number.My payment histry i attached in below,please take necessary action as early as possible. For your safety and protection, please never,

  • SAP XI and R/3 Version...

    Hi Experts.... I have a simple question about XI and r?3 version ! Can i use the SAP XI in SAP 4.6 ??? or only the SAP R/3 5 ??? Best Regards... MBoni.

  • Error message: pluin container for Firefox has stopped working

    I got this message while downloading photo to an e-mail I was sending.