How should i execute file transfer via batch job scheduling

Hi guys,
    i want to call unix transfer script via batch job scheduling. Executing the system commands witin ABAP is as below:
         DATA: BEGIN OF ITAB occurs 0,
                     LINE(200),
                    END OF ITAB.
        UNIXCOMM = '/usr/sap/trans/data/*******'
        CALL 'SYSTEM' ID 'COMMAND' FIELD UNIXCOMM
                ID 'TAB'     FIELD itab-sys.
Now i plan to assign application server ('Exec Target') to it and let it implement in the background.
  Should i do it via batch job?
Any info is appreciated very much.

Instead of using
CALL 'SYSTEM' u can use FM..
SXPG_COMMAND_EXECUTE  .. in which u have to pass a command name which u can create or get from SM49...
In CALL 'SYSTEM' .. u can not catch exceptions.. but in FM given above u can check
SY-SUBRC, STATUS and EXITCODE  for successful  command execution..
for successful command execution..
sy-subrc = 0
STATUS = 'O'  " Capital O
exitcode = 0
For batch scheduling, you can use this FM in a report  with one parameter for additional parameter which u need to pass to this FM  and create a JOB for that report and schedule it..
I've used it and  find it useful even for batch scheduling..
Reward if useful
Regards
Prax

Similar Messages

  • Which protocol we should use for file transfer in ios ?

    which protocol we should use for file transfer in ios ?

    My friend that's definitively a Lotus Domino question, you'll probably ask in the Domino's forums if it generates wsdl, or simple http services you're ready to consume those services in Flex.

  • How to open PSD file recieved via email on iPad using Photoshop Touch without Creative Cloud?

    Hi, how to open PSD file recieved via email on iPad using Photoshop Touch without the need of using Creative Cloud? Thanks.

    Hi Super Nemo
    Currently the only way to open psd files on Photoshop touch is via the creative cloud. Also, the layers you created from Photoshop on your desktop machine will be flattened when opened with Photoshop touch on your iPad. But you can retain the layers from the touch app when opening the psdx file on your desktop photoshop.
    This link might help you: http://forums.adobe.com/docs/DOC-1336
    -Sharon

  • Can't find how to shut off File Transfer Mode with...

    I've spent the better part of two hours searching the Internet for information on how to turn off File Transfer Mode since my phone started refusing to connect to my home computer, today.
    The pdf user's guide doesn't say how to find it.  I've been digging through the menu on the phone trying to find anything that resembles File Transfer Mode so I can click it off.
    The other FAQ and discussion groups I've located are irrelavent as the information they contain doesn't transfer to my Nokia 820 (they suggest options which don't exist on my phone).
    Please, where does one start looking for File Transfer Mode on this phone so they can shut it off, and why isn't that information printed in the troubleshooting documents and self help files for these phones?
    I connect through the USB cable to my PC.  I have downloaded and installed Nokia PC Suite v.7.1.180.94 this morning in hopes that it would fix the connectivity problem, but unless I can get File Transfer Mode shut off somehow, my new phone's going to wind up being useless.
    Nokia Lumia 820, Windows 8 phone
    HP Pavilion Slimline s52021, Windows 7 Home

    have you searched these forums and tried a soft reset (pressing the volume down and power buttons together until the phone vibrates)? Bear in mind that no, Nokia Suite, or Nokia PC Suite do not work with Windows Phone 8 devices at all, only the Windows Phone app does.
    See if other devices connect to your PC, and try other USB ports.

  • Delete retail material via batch job?

    Hey guys,
    is there a way to delete a retail material via batch job? I know with transaction MM16 you can schedule a job to do that. But how can i do that without using transaction MM16. Is it possible to this via IDoc?
        thx,
          Wei-Ming

    Check OSS 35615 & 93732.
    Cheers

  • How to run a ABAP Program in Batch JOB

    How to run a ABAP Program in Batch JOB ?

    Hello Manish,
    Using transaction SM36 you can define the batch job along with the start conditions for that job.
    1. Transaction SM36.
    2. Give the Z name of the job in the 'Job Name' input field.
    3. Click on 'Steps' button from the application toolbar.
    4. On the 'Create Step 1' dialog box, give the name of the ABAP program in the 'ABAP Program' section' along with the variant.
    5. Click on 'Check Input' button from the dialog box.
    6. Click on 'Save' button from the dialog box once the check is successful.
    7. One list will be shown. Click on Back button from the standard toolbar.
    8. Click on 'Start Conditions' button from the application toolbar. Specify the start condition e.g. immediate. Click on save.
    9. The job staus is now scheduled.
    10.Click on Save button from the standard toolbar of SM36. The job status will be released.
    Using SM37 you can monitor the status of the job.
    This will sort out your problem.
    PS If the answer solves your query, plz reward points.
    Regards

  • Unable to execute Copy or Delete from Job Scheduler job

    I am executing a COPY command and also a DEL command via the job scheduler and am receiving an "ORA-27370: job slave failed to launch a job of type EXECUTABLE ORA-27300: OS system dependent operation:accessing execution agent failed with status 233 ORA-27301:OS failure message:No process is on the other end of the pipe.ORA-27302:failure occurred at:sjsec 9 ORA-27303:additional information:No process is on the other end of the pipe." Any idea what is happening here? I receive the same error on any DEL or COPY command.
    Thanks,
    Susan

    Hi Susan,
    There are two possible issues here.
    - first make sure the scheduler extjob service is running, and try restarting it. That may fix the problem.
    - the second possibility is that the DEL or COPY are built-in commands and cannot be called directly. The Scheduler can only execute Windows executables, not built-in commands or batch scripts. The job_action (or program_action) must be of the form c:\path\program.exe .
    If the second is the case, you may need to use c:\windows\...\cmd.exe as your job_action and then as arguments, use
    /q
    /c
    del
    filename
    An example using a batch file instead of a command is
    SQL> begin
    2 dbms_scheduler.create_job('t1',
    3 job_action=>'C:\WINDOWS\SYSTEM32\CMD.EXE',
    4 number_of_arguments=>3,
    5 job_type=>'executable', enabled=>false);
    6 dbms_scheduler.set_job_argument_value('t1',1,'/q');
    7 dbms_scheduler.set_job_argument_value('t1',2,'/c');
    8 dbms_scheduler.set_job_argument_value('t1',3,'c:\temp\test2.bat');
    9 dbms_scheduler.enable('t1');
    10 end;
    11 /
    Hope this helps,
    Ravi.

  • Creation of batch job Schedule

    How to create new batch job Schedule ?
    Regards,
    Sridhar

    Hi,
    For more details about background processing go through the link provided.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/c4/3a7ede505211d189550000e829fbbd/frameset.htm
    Hope it helps you.
    Regards
    CSM Reddy

  • Batch job schedule in infoview

    Hi,
    we want to run the bunch of crystal reports at 8.30 am and at 2.00 pm in BO-Infoview.
    is there any option available to do batch job scheduling and run it at two different timings.
    thanks in advance
    Phani rayasam

    You cannot set tow different times on a single day.
    This option is not available. If you want you can schedule the same publication two times with two different times.
    Seems to be a good option but not available
    Regards
    Gowtham

  • How to run executable files via ProcessBuilder existing in another drive??

    hi,
    I was using Runtime Class to execute other programs through my application but as I'm using j2se 5 I want to make use of ProcessBuilder Class and utilize its some added features. I wanted it to run my .bat file located in some other folder than the current class file it is showing me IOException. I'm running a class file that is in the folder D:\CyberStation\classes\build\ and I want to execute the .bat file located in D:\CyberChat\build\. Any suggestion is appreciated...
    regards,
    Jay

    The following code was for the .bat file located in the same directory where I am running my .class file:
    ProcessBuilder pb=new ProcessBuilder("cmd.exe","/C","registry.bat");
    Process p=pb.start();Now what I wonder is what are the things that I need to change to make it capable of running .bat or any other executable file in some other directory. I tried:
    ProcessBuilder pb=new ProcessBuilder("cmd.exe","registry.bat");
    File basedir=new File(File_name.class.getResource(File_name.class.getName()+".class").getFile()).getParentFile().getParentFile().getParentFile().getParentFile();
    pb.directory(basedir+"CyberChat\build");
    Process p=pb.start();but didn't success.

  • How to Upload a file in a Batch Mode ?

    Hi, I want to upload a Comma separated value File via RFC to a BW system.
    The scenario is the following: From a Portal server i call the BAPI using JC0/JCA.
    The problem is that GUI_UPLOAD does not support a BATCH job. At least i get a error when calling the BAPI: Exception condition "NO_BATCH" raised. 
    How do i upload a file in a Batch Mode ?
    Thanks,
    Kai

    Hi Kai,
    Sorry for the delay. The delay was in trying to get to talk to the Basis team.
    Here is how we have it.
    On the message server of every instance, there will be a SAP admin id that is '<SID>ADM' or 'SAPSERVER<SID>' where SID is the system ID. We use the '<SID>ADM' user id.
    On the external NT fileserver, there has to be a user id created on the NT box with the same SAP admin id and this id on the NT box should have access rights do Read/Write.
    All of these have to be in the same domain (or different domains that have trust access to each other).
    So, there is basis,network and security groups involved.
    Once these are in place, we can have file access to the external fileserver box.
    We use logical filenames at our place (Transaction FILE).
    This makes all the file transfer locations well organized and manageable.
    Hope that answers your question regarding this.
    Regards,
    -Ramesh

  • How to Create Executable file for a project for Crio Platform

    hi,
    i am using CRIO 9014  platform  for my application development.
    i am controlling (   Reset  &  then Run )  FPGA   from RT application .
    Through TCP/IP  communication the  Acquired data  (   from FPGA  then followed by some Computation Logic in RT )   is sending   to HOST computer .
    during the above process  
    First i am starting the RT Application    (  the TCP  network will be continuously in listen mode )    then
     i am  starting my HOST Application   in the project .
     here i want  to build my complete project as an  executable file 
    so that i no need to start  RT Application first and then HOST Application.
    Could you please send me One sample Project           with built in simple  ADC Acquisition  loop /  logic  in FPGA  ,  then  one sample logic  / while loop   in RT   to   acquire  this ADC data from FPGA and  send to HOST    via  TCP/IP network then   the  HOST   with GUI    for  Display in the HOST .
    This  complete project should be build in  .exe  file .
    Please  complete project  files  and .exe file    as a  zip file.
    Regards,
    Venkat

    Hi,
    I might be confused but what I understand from what you have mentioned is that you want to create a project having two VI's. One running on your FPGA target and another running on you host computer.You want to build a single executable file to complete the entire operation.
    Unfortunately you cannot have both VI's in same executable file. You can build one executable file and deploy on your FPGA target that will start running as soon as the target is booted. And you can create another executable file for running VI on your host computer. And instead of using TCP to transfer data, you could use "Interface FPGA" from FPGA module to communicate between your host computer and communicate.

  • User to User file transfer via FMS or RED5 in AIR application.

    Hello!
    It is possible to make file transfer from air application via server?
    I think need to create like byte array streaming or somethink like this from sender and write the destination file on receiver user pc.
    Someone know how to do this? It is possible?
    Thanks.

    Search more on socket class you can send anything between two machines using them
    see the code snippet below:
        sc = new Socket("<IP address>",8000);
      sc.connect("<IP address>",8000);
      sc.addEventListener(ProgressEvent.SOCKET_DATA, readFromServer);
      sc.writeUTFBytes("Hi this will be sent to the IP address provided by you on port no 8000!\n");
      sc.flush();

  • Problem with file transfer via Bluetooth

    I have been trying to receive some large files (43Mb) via bluetooth from another device but always get transfer fail message. But i could receive smaller flies...
    -Does this have anything to do with the device memory limit of 15MB?
    -How can i receive larger video files from other devices using bluetooth?
    -Does the BOLD have the same problem?
    Please help.
    Thanks

    What type of errors is being generated? Are you trying to save that file on device memory or media card? try moving that file on media card.
    tanzim                                                                                  
    If your query is resolved then please click on “Accept as Solution”
    Click on the LIKE on the bottom right if the post deserves credit

  • How to Start Executable Files from JavaTM Applications?

    If it is possible to start other executable files, for example EXE or BAT, from a Java application, how can it be done in VC++??
    I can invoke executables (or whatever your OS is willing to execute) via Runtime.exec(). as per JDC member mtj or perhaps try:
    import Java.lang.*;
    import Java.io.*;
    public class RuntimeExecTest {
    public static void main(String[] args) {
    Runtime rt = Runtime.getRuntime();
    String[] callAndArgs = { "Notepad.exe",
    "D:\\TEMP\\Test.txt" };
    try {
    Process child = rt.exec(callAndArgs);
    child.waitFor();
    System.out.println("Process exit code is:
    " + child.exitValue());
    catch(IOException e) {
    System.err.println(
    "IOException starting process!");
    catch(InterruptedException e) {
    System.err.println(
    "Interrupted waiting for process!");
    But in VC++ on of the method signature is causing the problem:
    public Process exec( String command, String envp[] ) throws IOException
    If I use the above code, I get this error:
    Compiler Error J0122
    Exception 'identifier' not caught or declared by 'identifier'
    Please help
    Thanks

    Yes, it is possible to run both EXEs and BATs with exec().
    I also suggest you to look at the following article:
    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html

Maybe you are looking for