External System command is not working

Hi Experts,
I have a requirement to copy some files (K&R ) from one directory to another directory on my application server. For that I made one external operating systems command through Tcode sm69.
I took operating system as "DOS" and put the operating system command
"copy d:\usr\sap\e70-trans\data\r900425.e70 d:\usr\sap\trans\test"
and left the "Parameters for operating system command" blank. I executed it by FM SXPG_COMMAND_EXECUTE., it gives me an error message
Can't exec external program (No such file or directory)
WaitForSingleObject failedwith %d (No such device or address)
the above DOS command is working fine when i am running it directly from dos prompt.
I didn't give any RFC in above FM. and changed the operating system to DOS by default it comes as Windows NT, gave the command name. Remaining things were defaulted.
My application server is on Windows Server 2003.
Can you please let me know what I am missing?
Thanks
Yogesh Gupta

Hi,
Since you ave tried it from command prompt, simplest would be create a batch file & include your copy command in that & in SM69 define a new command say ZCOPY, give operating system command as batch file name along with full path. Test the above via SM49. If it works then just use:
  CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
         EXPORTING
            commandname            = 'zcopy'
          additional_parameters  = w_additional_parameters
            status                              = statusline
         TABLES
            exec_protocol                       = t_copy
         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
I hope this helps,
Regards
Raju Chitale
Edited by: Raju Chitale on Apr 15, 2009 8:16 AM
Edited by: Raju Chitale on Apr 15, 2009 8:18 AM

Similar Messages

  • External command is not working in File Receiver Adapter

    Hi,
       I have tried to copy the file which is mentioned in my File Adapter (Receiver) to 3 different folders thru OS command. The purpose is to save time. I have created one CC for Source(File) and one CC for target(File). After the target file is created, I want to copy this file in 3 folders. For this I have written one batch file in my system.
    File Name: copy1.bat
    @ECHO OFF
    COPY %1 C:\TEST1\arch_t1
    COPY %1 C:\TEST2\arch_t2 
    COPY %1 C:\TEST3\arch_t3
    DEL %1
    The command which I entered in the Receiver CC (File Adatper is)
    Run Operating System Command After Message Processing
    Command Line: C:\FILES\copy1.bat %F %f
    Timeout(secs): 60
    Terminate Program After Timeout - Check box is selected.
    But, this external command is not working. (because the target files are not created in those directories C:\TEST1, C:\TEST2, C:\TEST3)
       I did this scenario by refering the Michael'w weblog:
    /people/michal.krawczyk2/blog/2007/02/08/xipi-command-line-sample-functions
       In this blog, he has also given how to troubleshoot external command. I tried this also. It is not working.
        I use Windows XP OS. XI 3.0 SP 18.
       Friends, Could you kindly tell why this external command is not working? What could be the problem?
    Thanks in advance.
    Kind Regards,
    Jeg P.

    Hi, Jeg.
    As the note says, please check the java Runtime.exec behavior
    with the proper user.
    If in doubt, check if the command can be successfully run through
    the Java Runtime.exec(...) API. Also note that the command is run
    as user "<sid>adm" (Unix) / "SAPService<SID>" (Windows).
    So, Could you check the following(very dirty one!) Java in your
    XI server and check if it works? For simulating %F, create a test
    file C:\FILES\test.txt whatever the content is.
    import java.util.*;
    import java.io.*;
    public class ExecJava {
      public static void main(String args[]) {
        try {           
          Runtime rt = Runtime.getRuntime();
          Process proc = rt.exec("C:/FILES/copy1.bat C:
    FILES
    test.txt");
        } catch (Exception e) {
          e.printStackTrace();
    Good Luck.
    Sejoon

  • External USB HD does not work with HAL:

    External USB HD does not work with HAL:
    From the last 10 days the HAL auto-mount with ntfs-3g file system of my external hard drive  does not woks.
    But the manual mount procedure with the command mount -t ntfs-3g /dev/sdb* /mnt/XYZ works.
    I've followed the instructions in the wiki: http://wiki.archlinux.org/index.php/HAL and the system has worked up to the last kernel or HAL update.
    My fat32 usb-stick works without any problem.
    If I try to open the device with KDE it appears an error popup wit this message:
    TODO: have to rethink extra options
    Error: kio_media_mount_helper
    The log from the kernel.log is
    Nov 6 22:03:16 myhost usb 5-1: new high speed USB device using ehci_hcd and address 4
    Nov 6 22:03:16 myhost usb 5-1: configuration #1 chosen from 1 choice
    Nov 6 22:03:17 myhost Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
    Nov 6 22:03:17 myhost ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
    Nov 6 22:03:17 myhost Initializing USB Mass Storage driver...
    Nov 6 22:03:17 myhost scsi6 : SCSI emulation for USB Mass Storage devices
    Nov 6 22:03:17 myhost usb-storage: device found at 4
    Nov 6 22:03:17 myhost usb-storage: waiting for device to settle before scanning
    Nov 6 22:03:17 myhost usbcore: registered new interface driver usb-storage
    Nov 6 22:03:17 myhost USB Mass Storage support registered.
    Nov 6 22:03:22 myhost scsi 6:0:0:0: Direct-Access WDC WD32 00JB-00KFA0 0811 PQ: 0 ANSI: 0
    Nov 6 22:03:22 myhost sd 6:0:0:0: [sdb] 625142448 512-byte hardware sectors (320073 MB)
    Nov 6 22:03:22 myhost sd 6:0:0:0: [sdb] Test WP failed, assume Write Enabled
    Nov 6 22:03:22 myhost sd 6:0:0:0: [sdb] Assuming drive cache: write through
    Nov 6 22:03:22 myhost sd 6:0:0:0: [sdb] 625142448 512-byte hardware sectors (320073 MB)
    Nov 6 22:03:22 myhost sd 6:0:0:0: [sdb] Test WP failed, assume Write Enabled
    Nov 6 22:03:22 myhost sd 6:0:0:0: [sdb] Assuming drive cache: write through
    Nov 6 22:03:22 myhost sdb: sdb1
    Nov 6 22:03:22 myhost sd 6:0:0:0: [sdb] Attached SCSI disk
    Nov 6 22:03:22 myhost sd 6:0:0:0: Attached scsi generic sg2 type 0
    Nov 6 22:03:22 myhost usb-storage: device scan complete
    and the error.log is
    Nov 6 22:03:22 myhost sd 6:0:0:0: [sdb] Assuming drive cache: write through
    Nov 6 22:03:22 myhost sd 6:0:0:0: [sdb] Assuming drive cache: write through
    Do you have some idea ....
    Bye.

    I have done the following:
    Downloaded the patched hal version.
    used makepkg in /abs/local/trunk/ to create a pkg for pacman
    used sudo pacman -U pkgname to install it.
    used sudo nano /etc/hal/fdi/policy/preferences.fdi to create the fdi file with the following content:
    saved the file and removed my ntfs entryes from fstab and rebooted. and still there is no automount off ntfs partitions.
    have i done something wrong?
    br fjodork
    WARNING: what follows is a guide of what did work for me, I'm still in an early stage of learning linux, so please correct me if anything of what follows is wrong/dangerous/stupid. As I said, this worked for me, it's not pretty, since I was learning each step on the fly and I'm sure there are better ways to do this.
    So fjodork, you seem to have done the the necessary steps, though i couldn't get it to work until i first removed hal without dependencies
    pacman -Rd hal
    it will give you some warning about the dependencies, ignore  it since we are reinstalling hal in a few steps.
    First i tried to follow Raymano's link, obviously it showed me nothing in the browser so I thought it might be a broken link.
    So I downloaded the source tarball from here http://hal.freedesktop.org/releases/hal-0.5.10.tar.gz
    unpacked it changed the /tools/hal-storage-mount.c as per Milfadoodle's instructions.
    at first I tried to compile directly from source, the process would finish without a glitch though after reboot nothing changed, as if hal weren't
    installed, i guess there were issues with paths. anyway read on
    Then repacked the source in tarball, copied it to /var/abs/extra/system/hal and modified the PKGBUILD as follows
    makedepends=('pkgconfig' 'gperf')
    options=('!libtool')
    install=hal.install
    source=(${pkgname}-${pkgver}.tar.gz #removed url so makepkg looks in the current directory for the tarball
        hal
        hal-policy.patch
        cryptsetup_location.patch
        hal-0.5.9-hide-diagnostic.patch
        ntfs3g-valid-options.patch)
    md5sums=('6641c30a27c00485c6accac5110ff911' # replace with md5sum of your package's sourceball (run md5sum filename)
             '882f67668cb14a0a9e4a27ef22278027'
             '5ba8b610aa9763a5f42b9f7cbd7a86ad'
    then makepkg (i had to add --asroot, don't ask why
    and finally pacman -U hal-0.5.10-1-i686.pkg
    another reboot and everything worked without a glitch!:D (yeah i know i still haven't got rid of the reboot mentality )
    I have also put the policy files as per the wiki instructions.
    PS: I know this is a dirty way to getting things done but as i said, I'm just starting
    If anyone could comment/correct/explain this post I'd be more than happy, the automount issue was bothering me for about a month now (you'll say why do I need ntfs in the first place? well, I only recently switched for Linux as my primary OS, these are some relics of the M$ era

  • Host command is not working on linux

    Hi
    I m using linux for application server n windows for client. I need to create folder from client machine by cliking a button of forms10g runtime.HOST command is not working which was working fine in windows.
    Any help is appriciateable.
    kazi mokarem

    Hi
    I had the same issue on linux a few weeks back. What tuned out was, when you install the Oracle app svr it does not include the system paths by default.
    The path where mkdir is located may not be visible to the app.
    Try to hardcode the path for mkdir as /bin/mkdir .... and seee if that works.
    If the above statement works then add that path in the paths variable in default.env file located in $ORACLE_HOME/forms/server directory
    HTH
    Arvind

  • MY EXTERNAL SPEAKER PORT IS NOT WORKING for hp envy

     MY EXTERNAL SPEAKER PORT IS NOT WORKING .WHEN I CONNECTED TO A EXTERNAL SPEAKER ,THERE WERE NO SOUND AUDIBLE.SO WHEN I DISCONNECTED THE CABLE FROM PORT,I WAS ABLE TO HEAR WITH THE IN BUILT SPEAKERS.EXTERNAL SPEAKER IS I GOOD CONDITION.I CHEKED WITH MY HEAD SET ALSO.IT WAS NOT AUDIBLE.MY LAP IS HP ENVY .KINDLY HELP

    Hi ano87, welcome to the HP Forums. What is the model or product number? What version of Windows is installed?
    Guide to finding your product number
    Which Windows operating system am I running?
    TwoPointOh
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom to say “Thanks” for helping!

  • External Hard Drive does not work with Lion

    Hi
    My External Hard Drive does not work with Lion this message appears:
    NTFS-3G could not mount /dev/disk1s1
    at /Volumes/My Passport because the following problem occurred:
    /Library/Filesystems/fusefs.fs/Support/fusefs.kext failed to load - (libkern/kext) link error; check the system/kernel logs for errors or try kextutil(8).
    the MacFUSE file system is not available (71)
    can anyone help?

    Hi,
    See this Discussion:
    https://discussions.apple.com/thread/3191198?start=0&tstart=0
    Cheers,

  • 6120 classic:My voice commands do not work

    Please help.
    Don’t know if I'm just being stupid or there is something not right with my 6120c.
    My voice commands do not work.
    If I press the button for a voice command, it says that there are no voice tags saved.
    If I go into the voice command application (Which should create the voice tags on opening), I cant playback the voice tags, its give a 'voice system error' error message.
    Is there something that is not set up properly? In the voice command settings, the synthesizer is 'on'?
    Also, I don’t have voice tags on my contacts??
    I read somewhere that this is a firmware problem and the phone should be taken back to nokia. Is this the case?
    Somebody please help.

    I formated my nokia n6120 using the code *#7370#. It deletes !everything! (settings, aplications...), but I have no voice sytem error now.

  • Command S not working in Dreamweaver CS6

    Command S not working in Dreamweaver CS6

    Every time I've run into an issue like this, clearing the cache file has repaired it...
    http://forums.adobe.com/thread/494811
    As long as it's not a system wide issue that is.

  • Some commands are not working nor in illustrator nor photoshop, any advice better than Adobe?

    Illustrator is not fuctioning at 100%, some commands do not work ( eg - command open, nor place etc ) and same with photoshop....
    Any advice

    pcmyhre,
    You may try the list, possibly starting with item 7) in 5), which is a list of the usual suspects, which may disturb and confuse Illy so she fails to do even simple things.
    The following is a general list of things you may try when the issue is not in a specific file, and when it is not caused by issues with opening a file from external media, see below. You may have tried/done some of them already; 1) and 2) are the easy ones for temporary strangenesses, and 3) and 4) are specifically aimed at possibly corrupt preferences); 5) is a list in itself, and 6) is the last resort.
    If possible/applicable, you should save current artwork first, of course.
    1) Close down Illy and open again;
    2) Restart the computer (you may do that up to at least 5 times);
    3) Close down Illy and press Ctrl+Alt+Shift/Cmd+Option+Shift during startup (easy but irreversible);
    4) Move the folder (follow the link with that name) with Illy closed (more tedious but also more thorough and reversible);
    5) Look through and try out the relevant among the Other options (follow the link with that name, Item 7) is a list of usual suspects among other applications that may disturb and confuse Illy, Item 15) applies to CC, CS6, and maybe CS5);
    Even more seriously, you may:
    6) Uninstall, run the Cleaner Tool (if you have CS3/CS4/CS5/CS6/CC), and reinstall.
    http://www.adobe.com/support/contact/cscleanertool.html
    External media: It is always recommended here to open/save from/to own hard disk, and to copy from/to networks and removable media. You may be lucky (for a while), but the chances of file corruption and other unpleasantnesses are immensely greater when you use anything but the harddisk, and it is better to be safe than sorry.
    In addition to the (far greater) risk of file corruption, some issues are mentioned here:
    http://helpx.adobe.com/illustrator/kb/illustrator-support-networks-removable-media.html

  • Shudown command is not working in Solaris 10

    I have two Sun Fire V890 server with Solaris 10 Operating System. In both the servers shutdown command is not working. if i am giving shutdown -y -g0 command means server is not responding, at the same time its proceeding init commands.. if i am giving init5 means, server is getting powered off. please give a solution. Thanks in Advance,

    Note: This thread was originally posted in the [Servers - General Discussion|http://forums.sun.com/forum.jspa?forumID=830] forum, but moved to this forum for closer topic alignment.

  • Commands is not working

    Dear All,
    During power failure when system up then some command is not working.
    iostat -En
    format
    but cat command is working please give me exact solution.

    It sounds like the system did not come up cleanly. Did you see any error messages? Quite often you will need to fsck a filesystem or two after a hard crash like that.
    Check your logs or see if you can do a dmesg and look for errors.

  • Sqlplus -prelim command is not working.

    Hi ,
    sqlplus -prelim command is not working for me. It is giving me the below error.
    oracle@xyz: /app/oracle/product/10.2.0/bin $*sqlplus -prelim*
    SQL*Plus: Release 10.2.0.3.0 - Production on Fri Aug 7 10:31:54 2009
    Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
    Enter user-name: oracle
    Enter password:
    ERROR:
    ORA-24300: bad value for mode.
    I am solaris 5.10 and database is 10g.
    Thanks
    Naveen.

    what -prelim command?
    sqlplus -help
    SQL*Plus: Release 10.2.0.4.0 - Production
    Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.
    Usage 1: sqlplus -H | -V
        -H             Displays the SQL*Plus version and the
                 usage help.
        -V             Displays the SQL*Plus version.
    Usage 2: sqlplus [ [<option>] [<logon>] [<start>] ]
      <option> is: [-C <version>] [-L] [-M "<options>"] [-R <level>] [-S]
        -C <version>   Sets the compatibility of affected commands to the
                 version specified by <version>.  The version has
                 the form "x.y[.z]".     For example, -C 10.2.0
        -L             Attempts to log on just once, instead of
                 reprompting on error.
        -M "<options>" Sets automatic HTML markup of output.  The options
                 have the form:
                 HTML [ON|OFF] [HEAD text] [BODY text] [TABLE text]
                 [ENTMAP {ON|OFF}] [SPOOL {ON|OFF}] [PRE[FORMAT] {ON|OFF}]
        -R <level>        Sets restricted mode to disable SQL*Plus commands
                 that interact with the file system.     The level can
                 be 1, 2 or 3.  The most restrictive is -R 3 which
                 disables all user commands interacting with the
                 file system.
        -S             Sets silent mode which suppresses the display of
                 the SQL*Plus banner, prompts, and echoing of
                 commands.
      <logon> is: (<username>[/<password>][@<connect_identifier>] | /)
               [AS SYSDBA | AS SYSOPER] | /NOLOG
        Specifies the database account username, password and connect
        identifier for the database connection.  Without a connect
        identifier, SQL*Plus connects to the default database.
        The AS SYSDBA and AS SYSOPER options are database administration
        privileges.
        The /NOLOG option starts SQL*Plus without connecting to a
        database.
      <start> is: @<URL>|<filename>[.<ext>] [<parameter> ...]
        Runs the specified SQL*Plus script from a web server (URL) or the
        local file system (filename.ext) with specified parameters that
        will be assigned to substitution variables in the script.
    When SQL*Plus starts, and after CONNECT commands, the site profile
    (e.g. $ORACLE_HOME/sqlplus/admin/glogin.sql) and the user profile
    (e.g. login.sql in the working directory) are run.  The files may
    contain SQL*Plus commands.
    Refer to the SQL*Plus User's Guide and Reference for more information.

  • External USB keyboard does not work with T60 after BIOS upgrade

    External USB keyboard does not work properly with T60 after 2.26-1.07 BIOS upgrade.
    It does the same with or without the docking station.
    Anyone else bumped into this problem yet? 
    Has someone found any fixes for this?
    t

    Hi and welcome the forum!
    Try uninstalling all USB hub devices from the device manager and reinstalling them again, particularly the keyboard's.
    v2.26 is supposed to fix the issue according to lenovo:- http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-63024
    Hope it helps.
    Maliha (I don't work for lenovo)
    ThinkPads:- T400[Win 7], T60[Win 7], IBM 240[Win XP]
    IdeaPad: U350
    Apple:- Macbook Air [Snow Leopard]
    Did someone help you today? Compliment them with a Kudos!
    Was your question answered today? Mark it as an Accepted Solution! 
      Lenovo Deutsche Community     Lenovo Comunidad en Español 
    Visit my YouTube Channel

  • External hard drive is not working on airport time capsule even after 7.7.2 firmware update.

    External hard drive is not working on airport time capsule even after 7.7.2 firmware update.
    I have the latest Airpor Time capsule 2gb. I specifically bought it so that I could have an external hardrive set up to wirelessly house my itunes library and movies. When i connect the drive, all i get is that the disk needs to be repaired.
    the drive can works fine when connected to the macbook pro and I have run the verify and repair features in disk utility. I have also reset the airport timecapsule as well following these changes and still no change.
    The 7.7.2 update says that it addressed the usb issue of not showing the drives but there are still problems as I cannot get it to appear.
    Please help.
    Thanks

    How is the hard drive formatted?
    Have you tried using a powered USB hub with the drive when it is connected to the Time Capsule?
    (The USB port on the Time Capsule is borderline as far as power is concerned....you may need to use a powered hub.....even if the hard drive has its own power supply)
    If the drive is formatted correctly....and....it has ample power, it will "show up" when you open AirPort Utility, click Edit, then click the Disks tab at the top of the next window.
    In the example below, my Time Capsule drive is named "Backups" and another drive named "WD Drive" is connected to the USB port on the Time Capsule.
    You should see the name of your Time Capsule drive (named "Data" unless you have changed the name) and the name of the USB drive if you perform the same check.
    What do you see?

  • HP Pavilion dv6-6181TX. System Recovery is not working From HP Recovery Manager.

    HP Pavilion dv6-6181TX
    Product No. A3U49PA
    Genuine Windows 7 Home Premium 64
    (but i upgraded it to windows 7 ultimate)
    System Recovery is not working From HP Recovery Manager. so i cant restore my laptop to its original factory condition. (Genuine Windows 7 Home Premium).
    so when i restart my computer and press Esc and then choose F11 i get this message :
    "Windows failed to start. A recent hardware or software change might be the
    cause. To fix the problem:
    1. Insert your Windows installation disc and restart your computer.
    2. Choose your language settings, and then click "Next."
    3. Click "Repair your computer."
    If you do not have this disc, contact your system administrator or computer
    manufacturer for assistance.
    File: \Boot\BCD
    Status: 0xc0000225
    Info: An error occured while attempting to read the boot configuration data."
    i saw this from the forum
    http://h30434.www3.hp.com/t5/Notebook-Recovery/Hp-recovery-manager-problems/m-p/2395473/highlight/tr...
    Had the C partition been split/shrunk to form a new partition previously?
    Does disk management show the HDD as basic or dynamic? (Start>Right-click Computer>Manage>disk management on the left).
    If it has been switched to dynamic (Windows does this automatically when more than 4 partitions are present on the disk), then the F11 recovery partition won't function until it is restored to basic, but I would like to confirm that is the scenario before providing those steps.
    The Disk management shows that my HDD as Dynamic, what should i do then if this is the case and the possible solution to my problem?
    please help me & Thank you for your time,
    This question was solved.
    View Solution.

    If you have more than 4 partitions you will need to delete the extra partition/partitions, then convert the hdd back to Basic.
    Older versions of Partiton Wizard Free work: 
    http://www.sevenforums.com/tutorials/26829-convert-dynamic-disk-basic-disk.html
    ******Clicking the Thumbs-Up button is a way to say -Thanks!.******
    **Click Accept as Solution on a Reply that solves your issue to help others**

Maybe you are looking for

  • Statistic on throughput of data loader utility

    Hi All Can you guys share some statistics on throughput of data loader utility ? If you are looking for number of records you may consider 1 Million, how long it would take to import this ?. I need these number to make a call on using Web Service or

  • Block or handle message alert in WebBroswer container

    Hi, I am trying to make an application for collecting data from the Web by using WebBrowser container and .NET technique. In a cases, the web page had no data and showed a popup message (message warning dialog) from the server (not the dialog due to

  • How to prevent saving images

    Hi, I want to prevent users from (right click & save images) saving images in my website.How can i do this?Please help me. Thanks.

  • Modern Warfare 2 - Strict Nat

    Ok, not a router or network brainiac. With that said, I am using a PC to play the game, I have a cable modem as well as running a VPN (for work). I have the Linksys WRT310N. My settings are as follows: Dynamic IP Upnp enabled Nat enabled I was playin

  • Camcorder Panasonic PV-GS300: "Communication Error" when connecting it..?

    I have a Panasonic PV-GS300 camcorder, which I have connected to my iMac through a Firewire 4/9pin, but all I get when opening iMovie is "Communication Error" on a blue screen. I believe the Mac does not recognize the camera and I can not import the