OS command syntax to run RPG program (FTP Adapter)

Hi All,
I try to run RPG program from File Adapter OS command, I do not know correct OS syntax.
RPG program will create sales order in JD, PI and JD is on IBM i5 OS.
I am able to run OS command like "mkdir" but i do not know correct syntax to run RPG program.
I try few OS command but doesn't work like:
CALL PGM(Library Name/Program Name) PARM(xx,yyy,zzz)
CALL Library Name.Progran Name(param)
With regards
Sunil

Hi,
Please check with the link:
https://www.sdn.sap.com/irj/scn/wiki?path=/display/xi/morewiththeFileAdapter
Hope it will throw some light to your solution.
Thanks.
Regards,
Vineetha.

Similar Messages

  • Command line wasn't executed in ftp adapter

    Hi,gurus:
        I met a problem when I used "Run operating system command before message processing" in a file to file scenario.After the message was processed successfully I found the command wasn't executed.However,the command(bat file) could be executed in XI server.
       The value of the parameter "command line" is  "c:\data\copyResult.bat %F %f".I want to use the bat file to delete the archived file after the message is processed successfully.But now it was not executed.The content of relavant file is below.Any ideas?Any help will be appreciated.
      ( Also I have referred to michal's blog about error catching,but it didn't work.)
    copyResult.bat
    ftp -s:copyResult.txt
    copyResult.txt
    open <ftp_host>
    <username>
    <password>
    cd /archive
    delete send.txt
    quit

    Hi,
    Have you tried to check the execution of BAT file directly on FTP server or may be you are trying with XI server. What are the results for it.
    Plesae check the log of each and every step ...in Runtime Worbench in Communication Channel on sender or receiver side.
    Thanks
    Swarup

  • FTP adapter features..

    Hi all,
    We have a requirement during FTP processing...Is it possible to define a TMP directory and a WORK directory like in most FTP tools..We need to keep a file in a TMP directory for a certain time and then move it into the WORK directory upon which it will be FTP'ed...
    Also is it possible to know the possible record count during an FTP run through the FTP adapter...
    Any help is appreciated...
    Ken

    Hi Ken,
    one way to do it (not sure if very effective - it depends) would be to use an integration process inside.
    you put a file in w TEMP directory and use ftp adapter to move the file to another location (to your WORK dir):
    /people/sap.user72/blog/2005/07/15/copy-a-file-with-same-filename-using-xi
    and then the file would get picked by another adapter from the work dir...
    inside the first BPM you could set WAIT step so that you can:
    >>>We need to keep a file in a TMP directory for a certain time
    but this is just an idea:)
    Regards,
    michal

  • Syntax Error while running "RFBILA00" program

    Hello,
    I am encountering some issues while trying to run reports that use table "FAGLFREESEL". The below error is for report "RFBILA00":
    Short Text
        Syntax error in program "RFBILA00 ".
    What happened?
        Error in the ABAP Application Program
        The current ABAP program "SAPLALDB" had to be terminated because it has
        come across a statement that unfortunately cannot be executed.
        The following syntax error occurred in program "RFBILA00 " in include "RFBILA00
         " in
        line 46:
        ""FAGLFREESEL" muß eine flache Struktur sein. Interne Tabellen, Referen"
        "zen, Strings und Strukturen sind als Komponenten verboten."
        The include has been created and last changed by:
        Created by: "SAP "
        Last changed by: "SAP "
        Error in the ABAP Application Program
        The current ABAP program "SAPLALDB" had to be terminated because it has
        come across a statement that unfortunately cannot be executed.
    Any sugestions on how to fix this would be greatly appreaciated.
    Thank you!

    Hello Constantin,
    As the message suggests, FAGLFREESEL should be a Structure. CHeck in your system whether it has been created as a sturcture.
    Have you checked SAP Service marketplace for the SAP Note. There are couple of SAP notes available for 2013 for few countries. Check whether anything applicable to your country.
    If not, raise a OSS note with SAP.
    BR
    Amitash

  • How to run command line tool in my program???

    Hi,all,I've got some tools that are usually,or take JDK for example,if we are not using an IDE,we need to open the command prompt,and then use the javac command to compile the source files and the "java "command to run the program,and both of them accept some command line params.The problem is that how could i integrate the tools in my own program,like JBuilder or some other IDE,you configure the params and compile and run in the IDE which don't need to open a command line prompt.Hope i have got my question clear:)
    Best regards..

    jesperdj ,thanks:)
    actually,i am using eclipse to run my ant tasks programmatically,but I got trouble with the AntRunner class.it seems that i should config a proper classloader for it,but i just don't know how.please lend a hand:)thanks
    robin

  • Run Object command syntax in Lookout

    In my application I want to move the CSV files saved in Lookout folder to another place in the network when a button is pressed. The command line for the run object is:
    "cmd /c move /y C:\Program Files\National Instruments\Lookout 5.1\2004\*.* \\leo-2k1\Groups\Film\Data\2004"
    It doesn't give an error, but it doesn't move the folders to the other place.
    Questions:
    -Is the command line text too long?
    -Can Lookout move the folder while the Spreadsheet object is dumping data into it?

    Hi 23r23,
    While there might be a finite limit to the number of characters in the command for the Run object, it is definitely more than your current command.
    The problem in your case sems to be the path of your files. Since you have spaces in the folder names, you will have to enclose this in two sets of double-qoutes as below:
    "cmd /c move /y ""C:\Program Files\National Instruments\Lookout 5.1\2004\*.*"" \\leo-2k1\Groups\Film\Data\2004"
    Normally, as with the DOS command prompt, you would need only one set of double qoutes with paths that have spaces. However, Lookout expects two sets of double-quotes because one set of double-qoute is part of the command.
    About moving the file while Spreadsheet object is writing to it, I don't think doing th
    is is a good idea even if the cmd allowed it. Anyways, you can try it out to see if it does.
    Regards,
    Khalid

  • How can I run my program on command line?

    I'm having some trouble trying to run my program on command line.
    I get a message saying "Exception in thread
    "main" java.lang.NoClassDefFoundError: Rectangle
    <a href="http://img145.imageshack.us/my.php?image=untitled2copylh2.jpg" target="_blank"><img src="http://img145.imageshack.us/img145/3002/untitled2copylh2.th.jpg" border="0" alt="Free Image Hosting at www.ImageShack.us" /></a>
    import java.util.Scanner;
    public class Rectangle
    public static void main(String[] args)
    int width;
    int height;
    int count = 1;
    Scanner scan = new Scanner (System.in);
    System.out.println("Please enter the width of the rectangle: ");
    width = scan.nextInt();
    System.out.println("Please enter the height of the rectangle: ");
    height = scan.nextInt();
    while (count <= width)
    if(width < 1 || width > 30)
    throw new IllegalArgumentException("The numbers must be in range");
    if(height < 1 || height > 30)
    throw new IllegalArgumentException("The numbers must be in range");
    for (int star = 1; star <= height; star++)
    System.out.print("*");
    System.out.println();
    count++;
    }

    What doesn't work?
    When you type javac Rectangle.java do you get error messages? Does it create the file Rectangle.class? If yes, type java Rectangle and your program should run. If you get an error post it but if you followed earlier advice you should be able to solve the problem yourself.

  • Running powewrpc programs from the command line

    I am trying to run a powerpc application (quicken) from the command line. I want to log into the mac over my local network and run a powerpc program, but I get the following when I try it:
    cannot execute binary file
    I am logging in via ssh, and am running the X11 package from a different unix system which also runs X11.
    How do I get the application to execute? (it runs fine from the desktop).

    I am sitting at a Sun Solaris machine (it runs X11R6
    and Matif). I want to run Quicken, which is on the
    mac mini. I log into the mac with ssh -X. I find the
    Quicken program, but the permissions are set to 644
    (read, but not execute). If I change the permissions
    and try to run the program I get teh error message
    "cannot execute binary file".
    The window interface of the Mac is not X11: so you cannot output it on another X system. Is is not like connecting to another Un*x system.
    Said that, you should be able to launch a program, but you cannot see the output. However, usually Macosx applications are bundles with some executable inside, not directly an executable file: .app files are folders, not files. In order to launch such kind of apps, you have to use the open command I suggested in the previous post.
    I have no idea what VNC is. If this is how I can do
    this, then please provide me a link to it.
    VNC is a screen sharing application, just like Windows Remote Desktop. You may install a VNC server on your mac mini, and then connecting with a VNC client you will see all your computer screen as if you were there. It is cross platform, so no matter which is your client (including mobile phones).

  • Calling RPG program from SAP running on windows platform.

    Hi
    We want to call a RPG program used for sending and receiving data to SAP System.  Our sap system running on windows platform and RPG program run iseries V5R3
    How can we do this?
    We red the redbook http://www.redbooks.ibm.com/redbooks/pdfs/sg244672.pdf. We thought it only mention about sap and externel system is as/400 and it is not related with our issue but we are not sure.
    We are waiting for an urgent suggestion.
    Best Regards...

    Hi, We also need to call RPG from ABAP via RFC. We have installed the RFC SDK on A/S400 and tried call ABAP RFC from RPG, but still don't know how to make RPG program callable from ABAP
    Any advice!
    Many thanks
    Tim

  • Running Perl prog on command line and through Con Program output varies.

    Hi,
    We have perl program which takes a text file and converts it into Excel sheet.
    We run this perl program through Host file.
    In the host file we have
    export PERL5LIB=
    $DGC_TOP/bin/Make_Excel_Detail.pl $5 > $6 2> $7
    When we run this through command line in linux it work properly.
    But the same host program through Concurrent request has total numbers mismatch.
    Any input.
    Thanks,

    Program accepts standard text file and converts it into excel sheet.
    When we run the program in linux command line it gets all the 3000 lines.
    But the same program through concurrent request, gets only 2900 lines.
    What we noticed is the missing lines have some special characters like £bacs, BACS €111.
    Thanks.

  • Hwo to run test program composed with GPIB commands directly?

    When we write test program, we usually use the function libraries which are provided by instrument vendors. But sometimes, we need to use GPIB commands directly. For example, if the instrument vendor doesn't provide library for some GPIB commands, or if I get such a program from somewhere else.
    The question is that I don't know how to edit, compile and run such programs. The attached is such a program, and please tell me how to run such a program if you knows.
    Thank you very much.
    Attachments:
    MER.txt ‏9 KB

    The file that you attached looks like an HP-BASIC or Rocky Mountain Basic program. If you're trying to take an existing program like that and compile it in Visual Studio, that is not going to work. If you're trying to figure out how to write an equivalent program in Visual Studio, our example programs for Measurement Studio would be a great place to start. For the C++ API, you can look at the example program in C:\Program Files\MeasurementStudioVS2003\VCNET\Examples\4882, or . The exact location of Measurement Studio might be different on your system depending on where it's installed, or you might have an older version of Measurement Studio, like 7.0. Note that we also have support for GPIB in .NET languages like VB and C#. You can find examples in C:\Program Files\MeasurementStudioVS2003\DotNET\Examples\GPIB for both languages.

  • Running BDC program in background for the transaction VL02N

    Hi All,
    I have coded a BDC program (call transaction method) for the transaction code VL02N. I can able to run the program manually & successfully. But if I execute the program in background(SM36), it is going to dump giving CNTL_ERROR.
    Note: I am not using any of the GUI_UPLOAD, GUI_DOWNLOAD funciton modules in the program. But I am using the FTP command funtion modules like( FTP_COMMAND, FTP_CONNECT, FTP_DISCONNECT and FTP_SERVER_TO_R/3).
    <removed_by_moderator>
    Thanks in advance.
    Ramesh.
    Edited by: Julius Bussche on Jul 8, 2008 5:55 PM

    VL02N is an enjoy transaction. You cant run it in background. Please try VL02.
    Thanks
    Romit

  • Unable to Run C Program using Xcode "Stop Executable"

    Hi All
    Have been using the Terminal to compile programs built through Xcode but now want to use Xcode itself. Everytime I press build and go it builds successfully but won't run. I found a tutorial that mentioned if you are using Xcode 3.0 (I am) you can't use build and run, for output, you have to go to run and then push console.Ok that works. I then found someone with the same issue as mine everytime you want to build and run it appears with another window saying "Stop Executable"They were told to make sure they were building the .c file in a project and not building it from a text editor and then importing. I always build new projects.
    I want to interact with the program not just see its output? so my question is can I interact with programs i.e. User can enter data or strings or, do I have to build an interface to do this through Xcode. I Also forgotten to mention I found information through the forum that said to go to First Aid through utilities and repair file permissions, this has been done but still does not work. Many thanks for your time and as you can probably tell I am new to Xcode.

    To run your command-line program in Xcode, open the debugger console by choosing Run > Console. Run your program by choosing Run > Run or Build > Build and Run. You'll have to build and run if you haven't compiled the program before. Your program will run, and you will see output in the console. You interact with the program from the console.
    If you're not able to enter input in the console, choose Run > Sync with Debugger. If doing that doesn't work, you can run your program in the Terminal application by double-clicking the program from the Finder. It's less convenient than running it in Xcode, but you'll at least be able to run the program and interact with it.

  • Error whilst running a program

    Hello all,
    I am new to java and i ran into a probelm while trying to run ALL programs that has already compiled on the Windows command prompt.
    The error i get is:
    Exception in thread "main" java.lang.NoClassDefFoundError : Motorcycle:class
    However, i have Eclipse IDE installed and when i run the same program there,it runs perfectly.
    What could be wrong.Am using j2sdk 1.5.0.
    NB
    On the command prompt,compiling the program is not the problem but running it using:
    java Motorcycle.class
    Thanks

    When running a java program, you don't call the .class-File, you call the class itself and Java decides how it wants to find that class.
    So instead of "java Motorcycle.class" you should use "java Motorcycle".
    The command you used tries to exectue a class called "class" in the package "Motorcycle" which is obviously not what you want.

  • Error while running the program

    Hello everybody
    I have installed jdk in my computer, but when I try to run the program it shows the following error
    "Unable to load the main class"
    The program is compiling properly the only problem is in running the program.
    What is the reason for this error and how can I fix this error?
    Regards

    Are you familiar with the classpath?
    It tells the JRE which directory has your *.class files.
    At the command line, you would java -cp  dir_name  class_file_nameIf you're using an IDE, check the menus at the top of the editor screen.

Maybe you are looking for

  • Borders That Won't Go Away

    I am using Captivate 4 on a computer running Windows XP. My projects begin as blanks in a 640x480 size. In the Skin Editor, I select "Show Borders" so that a black border (56 pixels) appears at the bottom of my project. When I preview it in the web b

  • How to add Change Layout Button to ALV Toolbar?

    Hi All, I am using a SAP GUI STATUS 'STANDARD' that has almost all the funcationality needed except for the change layout button. I have tried changing the GUI STATUS to 'STANDARD_FULLSCREEN' which has the button I am looking for but it does not show

  • Metdata Query Crippling the Database

    Hi All, We are using ResultSet getProcedureColumns(String catalog,                String schemaPattern,                String procedureNamePattern,                String columnNamePattern) throws SQLException; method of the interface DatabaseMetaData

  • Problem using webservice method consumer proxy with rawdata from abap

    Hello Gurus, I am struggling with an error using a proxy consumer service from ABAP. The proxy was generated using the WSDL from the web service provider. For a specific method we need to send a rawstring as seen bellow: The file to be sent on this c

  • How do I get contains to recognize two objects w/ same data as equal?

    I created an EmployeeId class that has an int field called myId. What methods and interfaces should I implement in EmployeeId so the output of the program below will be "Already Have That EmployeeId!" ? I have tried to implement the Comparable interf