String program

Hello every body,
i need some help on this program suppose string str="computer"
i want output like
computer
omputerc
mputerco
putercom
utercomp
tercompu
ercomput
rcompute
computer
plz help me
with regards,
Anil.m

public class Test {
     public static void main(String[] args) {
          String c ="computer";
          for(int i=0;i<c.length();i++){
               String s="";
               c=s.concat(c.substring(1,c.length())).concat(c.substring(0,1));
               System.out.println(c);          
}-TC
Message was edited by:
DAmm man.. slow connection again

Similar Messages

  • Need String program

    Hi This is Sunil, i'm new to java,
    i wanted one string program i.e.
    Ex: input something like String str = "asdfghjlk";
    wanted output like "asd" , "ahj" and revesre of input..
    please do needful,,,

    sabre150 wrote:
    sunil054 wrote:
    I'm not excepting anything sir,
    this program asked in one interview, i didt cleared so wanted output of this program.This is the 'New To Java' forum so I find it very hard to believe that such a trivial 'Java test' was part of a job interview; even for a very very very junior programmer. It is just the sort of question posted here by students requiring homework solutions.No students. Lazy highschool kids calling themselves students maybe, but no students.
    Students study, that's where the word originates. These kids don't study, they vegetate.

  • How to find out the hard coded Z program in my server

    Hi,
    I have more than 5000 program in the server in that i need to find out how many programs being hardcoded by developer . If hardcoded what feild they hardcoded Like BUKRS , WERKS like that.
    Is there any standard program to find out ? Please let me know.
    Thanks !
    Regards,
    Nallu

    So many Utilities are there in SAP to find it out a particular string.
    Experiment all and choose more appropriate one for your requirement.
    Program Name : RPR_ABAP_SOURCE_SCAN - Search for a particular string
    Program Name : AFX_CODE_SCANNER - Scans Report/Funct. Group/Class Code
    Transcation code : EWK1 - Cust.Development: Curr.in Report Txt
    Program Name : RKCTSEAR - String search in Programs
    Program Name : RSRSCAN1 - Find a String in a ABAP program
    Even you can use code inspector also

  • How i invoke the c program?

    My question is occured during the program call the cmd.exe in windows or gnome-terminal in linux.I want the program to invoke a terminal and then execute the command on the terminal later defined by the program.The process is like that a you compile and executive a exe file . Visual c++ will executive your exe file in a terminal and in the terminal you can input the required value and get the result.The executive process is like that you run the exe file straightly in the terminal,it can provide a prompt to input the new value and it can output the result too. In my option ,I want to obstain the goal. I had tried it with Runtime.exec() but failed at last.
    So i'm very puzzled about how to obstain the aim.

    if it must be run in a completely separate terminal, you could use this in windows
    String program = ...
    String[] cmd = {"cmd", "/c", "start", "/MIN", program};
    Runtime.getRuntime().exec(cmd);Otherwise you could use the input/output streams from the process to get/send information to the program

  • How do I run multiple java apps in one JVM to reduce memory use?

    Hi all,
    I saw an article either on the web or in a magazine not too long ago about how to "detect" if the app is already running, and if so, it hands off the new instance to the already running JVM, which then creates a thread to run the Java app in. As it turns out, my app will be used in an ASP environment, through Citrix. We may have as many as 50 to 100 users running the same app, each with their own unique user ID, but all using the same one server to run it on. Each instance eats up 25MB of memory right now. So the question is if anybody knows of a URL or an app like this that can handle the process of running the same (or even different Java) apps in one JVM as separate threads, instead of requring several instances of the JVM to run? I know this article presented a fully working example, and I believe I know enough to do it but I wanted ot use the article as a reference to make sure it is done right. I know that each app basically would use the same one "launcher" program that would on first launch "listen" to a port, as well as send a message through the port to see if an existing launcher was running. If it does, it hands off the Java app to be run to the existing luancher application and shuts down the 2nd launching app. By using this method, the JVM eats up its normal memory, but each Java app only consumes its necessary memory as well and doesn't use up more JVM instance memory.
    Thanks.

    <pre>
    import java.util.Properties;
    import java.io.FileInputStream;
    import java.io.IOException;
    import java.lang.reflect.Method;
    import java.lang.reflect.InvocationTargetException;
    import java.util.Enumeration;
    import java.util.NoSuchElementException;
    public class RunProg implements Runnable, Cloneable
    private String iProg;
    private String iArgs[];
    public static void main(String args[])
    new RunProg().main();
    // first step is to start main program itself
    private void main()
    Properties properties = System.getProperties();
    try
    properties.load(new FileInputStream("RunProg.properties"));
    catch(IOException e)
    System.setProperties(properties);
    int i = 0;
    System.out.println("enter main, activeCount=" + Thread.activeCount());
    while(true)
    String program = properties.getProperty("Prog" + i);
    if(program == null)
    break;
    StringTokenizer st = new StringTokenizer(program);
    String[] args = new String[st.countTokens() - 1];
    try
    RunProg rp = (RunProg)this.clone();
    rp.iProg = st.nextToken();
    for(int j = 0; st.hasMoreTokens(); j++)
         args[j] = st.nextToken();
    rp.iArgs = args;
    Thread th = new Thread(rp);
    th.setName("prog" + i + "=" + program);
    th.start();
    System.out.println("prog" + i + "=" + program + ", started");
    catch(CloneNotSupportedException e)
    System.out.println("prog" + i + "=" + program + ", can't start");
    i++;
         System.out.println("end of main, activeCount=" + Thread.activeCount());
    // next step is to start all others one by one
    public void run()
    try
    Class c = Class.forName(iProg);
    Class p[] = new Class[1];
    p[0] = String[].class;
    Method m = c.getMethod("main", p);
    Object o[] = new Object[1];
    o[0] = iArgs;
    m.invoke(null, o);
    catch(ClassNotFoundException e)
    System.out.println(iProg + "ClassNotFoundException");
    catch(NoSuchMethodException e)
    System.out.println(iProg + "NoSuchMethodException");
    catch(InvocationTargetException e)
    System.out.println(iProg + "NoSuchMethodException");
    catch(IllegalAccessException e)
    System.out.println(iProg + "NoSuchMethodException");
    System.out.println(Thread.currentThread().getName() + ", ended");
    System.out.println("exit run, activeCount=" + Thread.activeCount());
    // setup SecurityManager to disable method System.exit()
    public RunProg()
         SecurityManager sm = new mySecurityManager();
         System.setSecurityManager(sm);
    // inner-class to disable method System.exit()
    protected class mySecurityManager extends SecurityManager
         public void checkExit(int status)
              super.checkExit(status);
              Thread.currentThread().stop();
              throw new SecurityException();
    * inner-class to analyze StringTokenizer. This class is enhanced to check double Quotation marks
    protected class StringTokenizer implements Enumeration
    private int currentPosition;
    private int maxPosition;
    private String str;
    private String delimiters;
    private boolean retTokens;
    * Constructs a string tokenizer for the specified string. All
    * characters in the <code>delim</code> argument are the delimiters
    * for separating tokens.
    * <p>
    * If the <code>returnTokens</code> flag is <code>true</code>, then
    * the delimiter characters are also returned as tokens. Each
    * delimiter is returned as a string of length one. If the flag is
    * <code>false</code>, the delimiter characters are skipped and only
    * serve as separators between tokens.
    * @param str a string to be parsed.
    * @param delim the delimiters.
    * @param returnTokens flag indicating whether to return the delimiters
    * as tokens.
    public StringTokenizer(String str, String delim, boolean returnTokens)
    currentPosition = 0;
    this.str = str;
    maxPosition = str.length();
    delimiters = delim;
    retTokens = returnTokens;
    * Constructs a string tokenizer for the specified string. The
    * characters in the <code>delim</code> argument are the delimiters
    * for separating tokens. Delimiter characters themselves will not
    * be treated as tokens.
    * @param str a string to be parsed.
    * @param delim the delimiters.
    public StringTokenizer(String str, String delim)
    this(str, delim, false);
    * Constructs a string tokenizer for the specified string. The
    * tokenizer uses the default delimiter set, which is
    * <code>"&#92;t&#92;n&#92;r&#92;f"</code>: the space character, the tab
    * character, the newline character, the carriage-return character,
    * and the form-feed character. Delimiter characters themselves will
    * not be treated as tokens.
    * @param str a string to be parsed.
    public StringTokenizer(String str)
    this(str, " \t\n\r\f", false);
    * Skips delimiters.
    protected void skipDelimiters()
    while(!retTokens &&
    (currentPosition < maxPosition) &&
    (delimiters.indexOf(str.charAt(currentPosition)) >= 0))
    currentPosition++;
    * Tests if there are more tokens available from this tokenizer's string.
    * If this method returns <tt>true</tt>, then a subsequent call to
    * <tt>nextToken</tt> with no argument will successfully return a token.
    * @return <code>true</code> if and only if there is at least one token
    * in the string after the current position; <code>false</code>
    * otherwise.
    public boolean hasMoreTokens()
    skipDelimiters();
    return(currentPosition < maxPosition);
    * Returns the next token from this string tokenizer.
    * @return the next token from this string tokenizer.
    * @exception NoSuchElementException if there are no more tokens in this
    * tokenizer's string.
    public String nextToken()
    skipDelimiters();
    if(currentPosition >= maxPosition)
    throw new NoSuchElementException();
    int start = currentPosition;
    boolean inQuotation = false;
    while((currentPosition < maxPosition) &&
    (delimiters.indexOf(str.charAt(currentPosition)) < 0 || inQuotation))
    if(str.charAt(currentPosition) == '"')
    inQuotation = !inQuotation;
    currentPosition++;
    if(retTokens && (start == currentPosition) &&
    (delimiters.indexOf(str.charAt(currentPosition)) >= 0))
    currentPosition++;
    String s = str.substring(start, currentPosition);
    if(s.charAt(0) == '"')
    s = s.substring(1);
    if(s.charAt(s.length() - 1) == '"')
    s = s.substring(0, s.length() - 1);
    return s;
    * Returns the next token in this string tokenizer's string. First,
    * the set of characters considered to be delimiters by this
    * <tt>StringTokenizer</tt> object is changed to be the characters in
    * the string <tt>delim</tt>. Then the next token in the string
    * after the current position is returned. The current position is
    * advanced beyond the recognized token. The new delimiter set
    * remains the default after this call.
    * @param delim the new delimiters.
    * @return the next token, after switching to the new delimiter set.
    * @exception NoSuchElementException if there are no more tokens in this
    * tokenizer's string.
    public String nextToken(String delim)
    delimiters = delim;
    return nextToken();
    * Returns the same value as the <code>hasMoreTokens</code>
    * method. It exists so that this class can implement the
    * <code>Enumeration</code> interface.
    * @return <code>true</code> if there are more tokens;
    * <code>false</code> otherwise.
    * @see java.util.Enumeration
    * @see java.util.StringTokenizer#hasMoreTokens()
    public boolean hasMoreElements()
    return hasMoreTokens();
    * Returns the same value as the <code>nextToken</code> method,
    * except that its declared return value is <code>Object</code> rather than
    * <code>String</code>. It exists so that this class can implement the
    * <code>Enumeration</code> interface.
    * @return the next token in the string.
    * @exception NoSuchElementException if there are no more tokens in this
    * tokenizer's string.
    * @see java.util.Enumeration
    * @see java.util.StringTokenizer#nextToken()
    public Object nextElement()
    return nextToken();
    * Calculates the number of times that this tokenizer's
    * <code>nextToken</code> method can be called before it generates an
    * exception. The current position is not advanced.
    * @return the number of tokens remaining in the string using the current
    * delimiter set.
    * @see java.util.StringTokenizer#nextToken()
    public int countTokens()
    int count = 0;
    int currpos = currentPosition;
    while(currpos < maxPosition)
    * This is just skipDelimiters(); but it does not affect
    * currentPosition.
    while(!retTokens &&
    (currpos < maxPosition) &&
    (delimiters.indexOf(str.charAt(currpos)) >= 0))
    currpos++;
    if(currpos >= maxPosition)
    break;
    int start = currpos;
    boolean inQuotation = false;
    while((currpos < maxPosition) &&
    (delimiters.indexOf(str.charAt(currpos)) < 0 || inQuotation))
    if(str.charAt(currpos) == '"')
    inQuotation = !inQuotation;
    currpos++;
    if(retTokens && (start == currpos) &&
    (delimiters.indexOf(str.charAt(currpos)) >= 0))
    currpos++;
    count++;
    return count;
    </pre>
    RunProg.properties like this:
    Prog1=GetEnv 47838 837489 892374 839274
    Prog0=GetEnv "djkfds dfkljsd" dsklfj

  • Assign a matrix to a JTable?  Possible?

    OK. I will not know the incomming data matrix untill it is assigned. Is there anyway to put the following matrix into a JTable without a headache? All I see are examples of Object class variables assigned to JTables. If anyone knows how to make this work I will appreciate it very much. Here is what I have come up with as an idea:
            String[][] originalDMatrix;
            // Assigned String Matrix.
            if(Program.printDataMatrix.isSelected()) {
                originalDMatrix = new String[Program.matrix.length][];
                for(int i = 0; i < Program.matrix.length; i++) {
                    originalDMatrix[i] = new String[Program.matrix.length];
    for (int j = 0; j < Program.matrix[i].length; j++) {
    originalDMatrix[i][j] = Program.matrix[i][j];
    // Create the table and give it the matrix THIS IS WHERE IT WONT WORK.
    final JTable originalDMatrixT = new JTable(originalDMatrix);
    [/code[
    ERROR OUTPUT:
    cannot resolve symbol
    symbol : constructor JTable (java.lang.String[][])
    location: class javax.swing.JTable
    final JTable originalDMatrixT = new JTable(originalDMatrix);
    ^
    1 error
    Errors compiling Results.

    Changing to strings gave same result but with Object:
    symbol  : constructor JTable (java.lang.Object[][])
    location: class javax.swing.JTable
            final JTable originalDMatrixT = new JTable(originalDMatrix);
                                            ^
    1 error

  • Using getRuntime().exec() with Serlvet to run applications in Solaris

    I am currently doing a project which requires the execution of Solaris applications through the use of Java Servlet with this Runtime method - Runtime.getRuntime.exec()
    This means that if the client PC tries to access the servlet in the server PC, an application is supposed to be executed and launched on the server PC itself. Actually, the servlet part is not an issue as the main problem is the executing of applications in different platforms which is a big headache.
    When I tried running this program on a Windows 2000 machine, it works perfectly fine. However, when I tried it on a Solaris machine, nothing happens. And I mean nothing... no errors, no nothing. I really don't know what's wrong.
    Here's the code.
    public void doPost(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException
    response.setContentType("text/html");
    PrintWriter out = response.getWriter();
    Process process; Runtime runtime = Runtime.getRuntime();
    String com= "sh /opt/home/acrobat/";
    String program = request.getParameter("program");
    try
    process = runtime.exec(com);
    catch (Exception e)
    out.println(e);
    It works under Windows when com = "c:\winnt\system32\notepad.exe"
    When under Solaris, I have tried everything possible. For example, the launching of the application acrobat.
    com = "/opt/home/acrobat"
    com = "sh /opt/home/acrobat"I have also tried reading in the process and then printing it out. It doesn't work either. It only works when excuting commands like 'ls'
    BufferedReader read = new BufferedReader(new InputStreamReader(process.getInputStream()));Why is it such a breeze to execute prgrams under Windows while there are so many problems under Solaris.
    Can some experts please please PLEASE point out the errors and give me some advice and help to make this program work under Solaris! Please... I really need to do this!!
    My email address - [email protected]
    I appreciate it.
    By the way, I'm coding and compiling in a Windows 2000 machine before ftp'ing the .class file to the Solaris server machine to run.

    Hi!
    I'm no expert, but I think I remember doing something similar a few months ago, and I think the problem was that the UNIX server does not know which shell to use. The solution was this:
    Create a script that starts the program on the server, and be sure to include a first row saying:
    #!/bin/ksh
    to specify which shell to use (in this case Korn shell). Then call the script from Runtime.getRuntime().exec()

  • How to execute an application in Solaris using Runtime.getRuntime.exec() ?

    I am currently doing a project which requires the execution of Solaris applications through the use of Java Servlet with this Runtime method - Runtime.getRuntime.exec()
    This means that if the client PC tries to access the servlet in the server PC, an application is supposed to be executed and launched on the server PC itself. Actually, the servlet part is not an issue as the main problem is the executing of applications in different platforms which is a big headache.
    When I tried running this program on a Windows 2000 machine, it works perfectly fine. However, when I tried it on a Solaris machine, nothing happens. And I mean nothing... no errors, no nothing. I really don't know what's wrong.
    Here's the code.
    public void doPost(HttpServletRequest request, HttpServletResponse response)
         throws ServletException, IOException
         response.setContentType("text/html");
         PrintWriter out = response.getWriter();
              Process process;                                                       Runtime runtime = Runtime.getRuntime();
              String com= "sh /opt/home/acrobat/";
              String program = request.getParameter("program");
              try
                        process = runtime.exec(com);
              catch (Exception e)
                   out.println(e);
    It works under Windows when com = "c:\winnt\system32\notepad.exe"
    When under Solaris, I have tried everything possible. For example, the launching of the application acrobat.
    com = "/opt/home/acrobat"
    com = "sh /opt/home/acrobat"I have also tried reading in the process and then printing it out. It doesn't work either. It only works when excuting commands like 'ls'
    BufferedReader read = new BufferedReader(new InputStreamReader(process.getInputStream()));Why is it such a breeze to execute prgrams under Windows while there are so many problems under Solaris.
    Can some experts please please PLEASE point out the errors and give me some advice and help to make this program work under Solaris! Please... I really need to do this!!
    My email address - [email protected]
    I appreciate it.
    By the way, I'm coding and compiling in a Windows 2000 machine before ftp'ing the .class file to the Solaris server machine to run.

    it is possible that you are trying to run a program that is going to display a window on an X server, but you have not specified a display. You specifiy a display by setting the DISPLAY environment variable eg.
    setenv DISPLAY 10.0.0.1:0
    To check that runtime.exec is working you should try to run a program that does not reqire access to an X Server. Try something like
    cmd = "sh -c 'ls -l > ~/testlist.lst'";
    alternatively try this
    cmd = "sh -c 'export DISPLAY=127.0.0.1:0;xterm '"
    you will also need to permit access to the X server using the xhost + command

  • Invoking a call to a window executable fails when request output to file

    Hi,
    When invoking a call to a window executable it fails(returns 1 instead of 0) when requesting output to file by using "> filename.txt". This nornally works when run directly within a
    windows command prompt, and it also works if I don't add the "> filename.txt" at the end. Also instead of outputting to a file I would like the same called executable to output to a memory variable that I can extract data without going to a external text file.
    Below is the .java file
    package com.insequence.gv;
    public class Jinvoker {
              public static int invoke(String program) throws java.io.IOException, java.lang.InterruptedException
                   System.out.println("invoking program: " + program);
                   Process p = Runtime.getRuntime().exec(program);
                   int exitValue = p.waitFor();
                   return exitValue;
              public static void main(String[] argv)
                   try
                   System.out.println("invoker start");
    //               int retval = invoke("c:\\tvalesky\\java\\invoker\\targetexe arg1 arg2 arg3");
    //               int retval = invoke("C:\\Program Files\\FWTools1.1.0\\bin\\gdalinfo.exe C:\\data\\EarthData2005\\Ortho\\no_collaged.tif");
                   String arg1 = "C:\\data\\EarthData2005\\Ortho\\no_collaged.tif > c:\\testing.txt";
    //               String arg1 = "C:\\data\\EarthData2005\\Ortho\\no_collaged.tif";
                   int retval = invoke("C:\\Program Files\\FWTools1.1.0\\bin\\gdalinfo.exe " + arg1);
    //               int retval = invoke("C:\\Program Files\\FWTools1.1.0\\bin\\gdalinfo.exe");
    //               String arg1 = "-s_srs epsg:26915 -t_srs epsg:4326 C:\\data\\EarthData2005\\Ortho\\no_collaged.tif C:\\data\\EarthData2005\\Ortho\\no_collaged2.tif";
    //               int retval = invoke("C:\\Program Files\\FWTools1.1.0\\bin\\gdalwarp.exe " + arg1);
    //               int retval = invoke("C:\\testing.bat C:\\data\\EarthData2005\\Ortho\\no_collaged2.tif");
                   System.out.println("invoker end: returned " + retval);
                   catch(java.io.IOException e)
                        System.out.println("IOException caught: " + e);
                   catch(java.lang.InterruptedException e)
                        System.out.println("InterruptedException caught: " + e);
    Thanks,
    John Mitchell

    Well, if you ultimately want the output from the process, you don't need to redirect it to a file first. Just read from the standard output of the process. See [url http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Process.html#getInputStream()]Process.getInputStream and Process.getErrorStream. You'll need to read from both simultaneously so you'll need to create two threads. You could also use [url http://java.sun.com/j2se/1.5.0/docs/api/java/lang/ProcessBuilder.html]ProcessBuilder if you're using Java 1.5

  • Using JavaCompiler Class for Debugging Info Only

    Hello everyone,
    Before I get started into the problem, I'll tell you what it is I'd like to do. I'm building an educational applet that'll allow students learning Java programming to write code on a Web page. My goal is to simulate a compiler environment without having it actually compile code (i.e. I want to tell them if there are any syntactic errors in their code). I've searched around the Web quite a bit for how to do this, and I thought I had something by using the JavaCompiler class. It works perfectly in a command-line version I've developed, but in the applet, when I invoke the compiler, the applet freezes. I've isolated it to the compiler call itself. Here is the init method (yes, I know it's a better idea to do the hard work and GUI building in a separate class; but right now, I'm just checking if it all works).
    @Override
    public void init()
    output = new JTextArea(5, 30);
    this.getContentPane().add(output);
    PrintWriter out = new PrintWriter(new TextAreaWriter(output));
    out.print("Hello!");
    JavaCompiler compiler = ToolProvider.getSystemJavaCompiler();
    String program = "class Test{" + " public static void main (String [] args){"
    + " System.out.printl (\"Hello, World\");"
    + " System.out.println (args.length);" + " }" + "}";
    Iterable<? extends JavaFileObject> fileObjects;
    fileObjects = getJavaSourceFromString(program);
    compiler.getTask(null, null, null, getOptions(), null, fileObjects).call();
    If I exclude the bold line of code, the applet runs. Otherwise it hangs and does nothing. I imagine this has something to do with the execution environment, permissions, etc. If you'd like to see more of the code I'm using, let me know.
    My questions are these: is there an easier way to go about this? Is there a way to invoke the compiler to get its output only, WITHOUT directly compiling a class? Is there a Magic Library designed for this that I've somehow overlooked? I know JDB only works on already-compiled class files; there's a tool called Checkstyle that seems to be more for formatting and subtle issues of style (hence, the name) than actual error checking (not to mention, it requires compiled code as well).
    Any thoughts would be greatly appreciated, all. :) Let me know if you need more info.

    >
    I checked the console after the freeze; it's handing me a NullPointerException for that line, which would be understandable except all of the arguments to call() can deal with null values. ( http://download.oracle.com/javase/6/docs/api/javax/tools/JavaCompiler.html )
    From the javadoc for ToolProvider.getSystemJavaCompiler():
        Returns:
            the compiler provided with this platform or null if no compiler is providedSo it's definitely possible that compiler.getTask(null, null, null, getOptions(), null, fileObjects) returns null.
    Indeed that's what I would expect from a browser's JVM (which includes only a JRE, and not a JDK).
    Edited by: jduprez on Apr 29, 2011 2:56 PM
    Ah, ah, I missed your latest edit while I was reading the API Javadoc :o)
    Glad you found out!

  • Get any Spoken Text from the OS as text out of applescript

    Hi I would like to get any words that are spoken from the os as text using applescript. Is it possible to grab it somehow?
    In my case i want to get the moves as they are spoken by the computer in the Apple Chess application.
    Any ideas? I am looking now at the speech scripts, but no luck yet.
    Best,
    Tim

    You could save the game:
    and read the xml-output...
    looks like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    <key>Black</key>
    <string>Computer</string>
    <key>BlackType</key>
    <string>program</string>
    <key>City</key>
    <string>Berlin</string>
    <key>Country</key>
    <string>Germany</string>
    <key>Event</key>
    <string>Casual Game</string>
    <key>Holding</key>
    <string>[QBBNNRRPPPPPPP] [QBBNNRRPPPPPPPP]</string>
    <key>Moves</key>
    <string>a2a3
    b7b5
    c2c3
    h7h6
    b2b3
    g8f6
    g1f3
    e7e5
    f3e5
    f8a3
    a1a3
    b8c6
    e5c6
    d7c6
    a3a7
    a8a7
    d2d4
    d8d4
    d1d4
    f6e4
    d4e4
    e8d8
    c1h6
    h8h6
    e4c6
    h6h2
    h1h2
    a7a4
    b3a4
    b5a4
    c6c7
    d8c7
    g2g4
    c8g4
    b1d2
    g4e2
    f1e2
    g7g5
    f2f4
    g5f4
    d2e4
    a4a3
    e2d3
    a3a2
    h2a2
    f4f3
    e4f6
    f3f2
    a2f2
    c7b6
    d3a6
    b6a6
    f2b2
    a6a5
    b2b4
    a5a6
    b4b5
    a6b5
    c3c4
    b5c4
    f6d5
    c4d5
    </string>
    <key>Position</key>
    <string>8/5p2/8/3k4/8/8/8/4K3 w - - 0 32</string>
    <key>Result</key>
    <string>1-0</string>
    <key>StartDate</key>
    <string>2009.10.10</string>
    <key>StartTime</key>
    <string>16:47:19</string>
    <key>Variant</key>
    <string>losers</string>
    <key>White</key>
    <string>Computer</string>
    <key>WhiteType</key>
    <string>program</string>
    </dict>
    </plist>

  • List of reports using custom OM object

    Hi Experts,
    I have a requirement to retrieve all the reports and interfaces which are using a custom OM object. Since I cannot do a where used list for the custom object in HRP 1000, which approach I should use ?
    Thanks in advance.
    Regards,
    Megha

    Megha,
    You can use SAP program RS_ABAP_SOURCE_SCAN to search for your custom object used in SAP programs. In this report you can specify the search string, program name (can be Z*) and other selection criteria.
    This program will give the list of all the SAP objects where your string is being used. This program may take some time for processing depending on your selection criteria.

  • Rfc_Call_Transaction parameters

    Hi:
    I'm trying to perform a transaction with the RFC function Rfc_Call_Transaction, I put all the parameters: Transaction, Screen, dynpro, etc. But I'm missing something, I'm reciving 'Start screen does not exist in batch input data'
    ¿Can anyone help me?
    Thanks.

    Yes, it's solved (i can´t mark it, don't know why)
    Ok, I made a funtion to create a record on the DBCDATA structure, simple:
            private BDCDATA FillBDCDATA(string Program,
                                        string Dynbegin,
                                        string Dynpro,
                                        string Fnam,
                                        string Fval)
                BDCDATA st_DATA = new BDCDATA();
                st_DATA.Program = Program;
                st_DATA.Dynbegin = Dynbegin;
                st_DATA.Dynpro = Dynpro;
                st_DATA.Fnam = Fnam;
                st_DATA.Fval = Fval;
                return st_DATA;
    This result will be added in the tblBDCDATA table (this can be done in .NET based languages, thanks to the garbage collector, in other languages something like this could be very dangerous)
    The calling funtion works like this, take special attention on the sequence sended to the above function, this order is exactly the same of a transaction register generated inside SAP, hope is usefull.
            private void button3_Click(object sender, System.EventArgs e)
                SAPProxy proxy = null;
                txtMsg.Text = "";
                try
                    proxy = new SAPProxy("ASHOST="  + txtHost.Text +
                        " SYSNR="  + txtSysnr.Text +
                        " CLIENT=" + txtMand.Text +
                        " LANG="   + txtLang.Text +
                        " USER="   + txtUser.Text +
                        " PASSWD=" + txtPass.Text);
                catch(Exception excpt)
                    txtMsg.Text = excpt.Message;
                if (proxy == null)
                    return;
                BDCDATATable tblBDCDATA = new BDCDATATable();
                MESSAGEINF infMessage = new MESSAGEINF();
                // call to FillBDCDATA(    Program,   Dynbegin, Dynpro, Fnam, Fval)
                tblBDCDATA.Add(FillBDCDATA("SAPMKBUA",     "X", "0111", null, null));
                tblBDCDATA.Add(FillBDCDATA(      null, null,   null, "BDC_OKCODE", "/00"));
                tblBDCDATA.Add(FillBDCDATA(      null, null,   null, "BPDY-BLDAT", "30.12.2004"));
                tblBDCDATA.Add(FillBDCDATA(      null, null,   null, "BPDY-VERSN", "0"));
                tblBDCDATA.Add(FillBDCDATA(      null, null,   null, "FMPS-FIKRS", "ente"));
                tblBDCDATA.Add(FillBDCDATA(      null, null,   null, "BPDY-JAHR",  "2005"));
                tblBDCDATA.Add(FillBDCDATA("SAPMKBUA",  "X", "0320", null, null));
                tblBDCDATA.Add(FillBDCDATA(      null, null,   null, "BDC_OKCODE", "=PERI"));
                tblBDCDATA.Add(FillBDCDATA(      null, null,   null, "ERFA_ZEILE_IN", "1"));
                tblBDCDATA.Add(FillBDCDATA(      null, null,   null, "BPFMPS-FISTL(01)", "GRCOMW"));
                tblBDCDATA.Add(FillBDCDATA(      null, null,   null, "BPFMPS-FIPOS(01)", "G90230615"));
                tblBDCDATA.Add(FillBDCDATA(      null, null,   null, "BPAK-WERT(01)", "2"));
                tblBDCDATA.Add(FillBDCDATA("SAPLKBPP",  "X", "0600", null, null));
                tblBDCDATA.Add(FillBDCDATA(      null, null,   null, "BDC_OKCODE", "=CLOS"));
                tblBDCDATA.Add(FillBDCDATA(      null, null,   null, "BPDY-PERI1(01)", "350953.44"));
                tblBDCDATA.Add(FillBDCDATA(      null, null,   null, "BPDY-PERI1(02)", "350953.44"));
                tblBDCDATA.Add(FillBDCDATA("SAPMKBUA",  "X", "0320", null, null));
                tblBDCDATA.Add(FillBDCDATA(      null, null,   null, "BDC_OKCODE", "=BUCH"));
                try
                    proxy.Rfc_Call_Transaction("FR33" /"FM9J"/,"", out infMessage, ref tblBDCDATA);
                catch(Exception excpt)
                    txtMsg.Text = excpt.Message;
                /Document 0500106943 posted/
                txtMsg.Text = infMessage.Msgtx;

  • Is it possible to open / Launch a client/Destop Application from Web UI ?

    Hi All,
    I am using SAP CRM 7.0 EHP 1. I need to launch a custom .NET application ( .exe file ) from desktop, say. How could I do that?.
    1. I tried using the following code
    data program type string.
    data commandline type string.
    program = 'C:\Windows\notepad.exe'
    call method cl_gui_frontend_services=>execute
    exporting
      application = program
      parameter   = commandline.
    Which work fine from SAP GUI not from Web UI. I try to call it (the above code) from Transaction Launcher BOR methed, also didn't work!, I dont know if it is a standard feature !!.
    2. I I tried javascript ,, it works,, but we don't want to do it that way as it demands lowering security !!!.
    Now, can you tell me if there is any alternatives ???..
    Any help/hint highly appreciated,,
    Thanks, Sudeep..

    In the report use the code
    CALL METHOD cl_gui_frontend_services=>execute
    EXPORTING
      application = program
      parameter = COMMANDLINE
      maximized = 'X'
      operation = 'OPEN'
    create z transaction code and while creating transaction launcher put the Tcode in caps and try.
    Rgds,
    Shobhit

  • Start screen does not exist in batch input data

    I'm using .NET Connector calling Rfc_Call_Transaction funtion throught a proxy, i stablished all the params as you can see in the code below, but i get the message cited in the subject 'Start screen does not exist in batch input data'.
    What do you think is happening? or Where can i get the samples needed for perform this type of request?
            private BDCDATA FillBDCDATA(string Program,
                                        string Dynbegin,
                                        string Dynpro,
                                        string Fnam,
                                        string Fval)
                BDCDATA st_DATA = new BDCDATA();
                st_DATA.Program = Program;
                st_DATA.Dynbegin = Dynbegin;
                st_DATA.Dynpro = Dynpro;
                st_DATA.Fnam = Fnam;
                st_DATA.Fval = Fval;
                return st_DATA;
            private void button3_Click(object sender, System.EventArgs e)
                SAPProxy proxy = null;
                try
                    proxy = new SAPProxy("ASHOST="  + txtHost.Text +
                        " SYSNR="  + txtSysnr.Text +
                        " CLIENT=" + txtMand.Text +
                        " LANG="   + txtLang.Text +
                        " USER="   + txtUser.Text +
                        " PASSWD=" + txtPass.Text);
                catch(Exception excpt)
                    txtMsg.Text = excpt.Message;
                if (proxy == null)
                    return;
                BDCDATATable tblBDCDATA = new BDCDATATable();
                MESSAGEINF infMessage = new MESSAGEINF();
                //BDCDATA st_DATA = new BDCDATA();
                tblBDCDATA.Add(FillBDCDATA("SAPMKBUA", "0111", "0111", "BDC_OKCODE", "/00"));
                tblBDCDATA.Add(FillBDCDATA("SAPMKBUA", "0111", "0111", "BPDY-BLDAT", "30.12.2004"));
                tblBDCDATA.Add(FillBDCDATA("SAPMKBUA", "0111", "0111", "BPDY-VERSN", "0"));
                tblBDCDATA.Add(FillBDCDATA("SAPMKBUA", "0111", "0111", "FMPS-FIKRS", "ente"));
                tblBDCDATA.Add(FillBDCDATA("SAPMKBUA", "0111", "0111", "BPDY-JAHR",  "2005"));
                proxy.Rfc_Call_Transaction("FM9J","", out infMessage, ref tblBDCDATA);
                txtMsg.Text = infMessage.Msgtx;

    Jose,
    I imagine you are passing, for the Dynbegin parameter of the private method FillBDCDATA, invalid values.
    Why don't you try this way:
    tblBDCDATA.Add(FillBDCDATA("SAPMKBUA", "X", "0111", " "," "));
    tblBDCDATA.Add(FillBDCDATA(" ", " ", " ", "BDC_OKCODE", "/00"));
    tblBDCDATA.Add(FillBDCDATA(" ", " ", " ", "BPDY-BLDAT", "30.12.2004"));
    tblBDCDATA.Add(FillBDCDATA(" ", " ", " ", "BPDY-VERSN", "0"));
    tblBDCDATA.Add(FillBDCDATA(" ", " ", " ", "FMPS-FIKRS", "ente"));
    tblBDCDATA.Add(FillBDCDATA(" ", " ", " ", "BPDY-JAHR", "2005"));
    I hope I could help you.
    Regards,
    Daniel Carvalho

Maybe you are looking for

  • How do i get my money off my itunes and onto another itunes

    i forgot my itunes security questions answers and put money on my itunes that i cant use but i have another itunes and would like too get the money off this itunes i need help

  • Web analysis and attributes No.2

    Hi, When doing report in web analysis as admin for my users I select my attribute dimension instead of entity (i think that when it is assigned to entity it shall has the same function as entity being chosen, right?). The numbers, percentages fits pe

  • How to access the ms access database in the JApplet?

    I am New here. Please help me. I am create one java file to access MS access the database in the JApplet. It say "Access denied". How to access the ms access database in the JApplet? Message was edited by: SVPRM

  • IMovie 09 special effects

    I've recently installed iMovie 09 and I'm curious where the special effects have gone (lighting, fog, rain, etc.). Are there any third party plug-ins that allow this. I've searched the boards and haven't come up with anything. Any help / suggestion i

  • I am unable to add my gmail account on iPad

    I had my gmail and hotmail account set up on my iPad now since 2 weeks. Suddenly today when trying to retrieve emails on gmail a pop up came up saying my password is incorrect. That's strange in the first place. But when I enter Password it says your