Inputs for Fine tuning the program

Hi All,
Following code is taking lot of time... No i need to fine tune the same ,,,
Please give some inputs..
SELECT VBELN INTO VBUK-VBELN FROM VBUK
WHERE ( CMGST EQ 'B' OR CMGST EQ 'C' )
AND VBELN IN S_VBELN.
SELECT * FROM VBAP WHERE VSTEL IN SHP_PT
AND VBELN EQ VBUK-VBELN
AND VKGRU '101'.
SELECT VBELN POSNR EDATU FROM VBEP
INTO (VBEP-VBELN,VBEP-POSNR,VBEP-EDATU)
WHERE VBELN EQ VBAP-VBELN AND POSNR EQ VBAP-POSNR
AND LFREL EQ 'X' AND BMENG GT 0
AND EDATU BETWEEN DATE_LOW
AND DAT_HIGH
ORDER BY EDATU VBELN POSNR.
CLEAR LIPS.
PERFORM APPEND_DATA_TO_ITAB1 TABLES ITAB1
USING VBEP-VBELN VBEP-POSNR
VBEP-EDATU LIPS-VBELN
LIPS-POSNR vbap-VSTEL.
ENDSELECT.
ENDSELECT.
ENDSELECT.
Regards,
Chan
Moderator message: Please Read before Posting in the Performance and Tuning Forum
Edited by: Thomas Zloch on Nov 24, 2010 1:17 PM

HI,
Remove the select endselect the select all the entries into internal table then from tat internal table select by using for all entries into another internal table. for eq -
IF NOT s_vbeln[] IS INITIAL.
  SELECT vbeln cmgst
        INTO TABLE itvbuk
        FROM vbuk
        WHERE vbeln IN s_vbeln.
  DELETE itvbuk WHERE  cmgst NE 'B' AND cmgst NE 'C' .
ENDIF.
IF NOT itvbuk[] IS INITIAL.
  SELECT *
         FROM vbap
         INTO TABLE itvbap
         FOR ALL ENTRIES IN itvbuk
         WHERE vbeln EQ itvbuk-vbeln.
  DELETE itvbap WHERE vkgru NE '101' AND NOT vstel IN shp_pt.
ENDIF.
Like wise modify the logic and check the secondary index is available for the where clause which you will be specifing.
Regards,
Madhukar Shetty

Similar Messages

  • How to guide for Fine tuning the performance of SAP EP

    All,
    Could anyone please let me know where to locate the how to guide for fine tuning the performance of the SAP Enterprise Portal?
    thanks,
    ~L

    hi leena,
    Look into these threads...
    https://www.sdn.sap.com/irj/sdn/thread?threadID=119605
    https://www.sdn.sap.com/irj/sdn/thread?threadID=101325
    Also see,
    <a href="https://websmp103.sap-ag.de/~form/sapnet?_SHORTKEY=00200797470000073623&_OBJECT=011000358700001480992005E">this link</a>
    https://media.sdn.sap.com/public/eclasses/bwp04/PortalTuning_files/Default.htm
    Regs,
    jaga
    Message was edited by: jagadeep sampath

  • I have downloades Logic Pro 9 onto my older modfel Mac Book Pro 1,1 with OS 10.6.8 and 2 GB RAM, according to the rquirements for Logic 9. the program should run, but it won't open. Is my configutation too slow?

    I have downloades Logic Pro 9 onto my older modfel Mac Book Pro 1,1 with OS 10.6.8 and 2 GB RAM, according to the rquirements for Logic 9. the program should run on OS 10.6.8. with 2 GB RAM, 4 GB better, but it won't open. Is my configutation too slow?

    Looks as if you're just at the minimum specs - http://www.apple.com/logicpro/specs/. Says 2GB minimum, 4GB recommended. And 2GB of RAM is all the RAM the 1,1 can handle. If I were you I would call Apple's App Store service center - you have the minimum requirements, as I read it, but perhaps you need a faster processor?
    I had a 1,1 but sold it when I bought my late 2011 in March of this year - maybe it's time to look at a new machine?
    Clinton

  • I installed Elements 12 because my version of Photoshop (CS5.1) is not compatible with Yosemite. Now the Adobe Application Manager will not search for updates for any of the programs in CS5.5 that I have. How do I fix this?

    I installed Elements 12 because my version of Photoshop (CS5.1) is not compatible with Yosemite. Now the Adobe Application Manager will not search for updates for any of the programs in CS5.5 that I have. How do I fix this?

    '''Except 8.0.x version also supported version is 3.6.24 '''you can find it here:
    http://www.mozilla.org/en-US/firefox/all-older.html
    check the system requirements:
    http://www.mozilla.org/en-US/firefox/3.6.24/system-requirements/
    see also:
    [https://support.mozilla.com/en-US/kb/Installing%20a%20previous%20version%20of%20Firefox Installing a previous version of Firefox]
    thank you
    Please mark "Solved" the answer that really solve the problem, to help others with a similar problem.

  • How to process a batch input session directly from the program

    Hi,
    I have developed a program which will create a batch input session.
    When the program is executed, the session should get processed . ie. the user need not have to go to sm35 to process the session. I am facing some problem in this.
    I am using BDC_INSERT by passing the tcode . The session is getting processed, but when i go to sm35, i noticed that the session is still listed under the "New" tab instead of the "Processed" tab.
    Also I am not getting the final window with the buttons " Session overview" and "Exit Batch Input".
    Please help me out in this.

    Hi
    U have to submit the program RSBDCSUB:
    SUBMIT RSBDCSUB WITH MAPPE = <session>
                    WITH VON   = SY-DATUM
                    WITH BIS   = SY-DATUM
                    WITH FEHLER = ' '
                        EXPORTING LIST TO MEMORY
                                        AND RETURN.
    Max

  • I Just bought iMovie for yosmite and the program will not open.. I will like a fix or a refund..

    I Just bought iMovie for yosmite and the program will not open.. I will like a fix or a refund.. i am getting tired of these problems...

    Welcome to the world of downloaded software. There are no refunds.
    Back in the good old days when software was purchased on disk one could sell it (legally).
    Please describe your problem.  Give us some details to go from.   Are you using iMovie 06, or something newer?

  • After editing for a while the program slows to a crawl how do I fix this?

    After editing in iMovie for a while the programs slows down - especially when I have heavy graphics and audio in the time line.  Can anyone help me with this problem?

    How much free space do you have on your disk drive?

  • Slow starup of Java application - best practices for fine tuning JVM?

    We are having problems with a java application, which takes a long time to startup.
    In order to understand our question we better start with some background info. You will find the question(s) after that.
    Background:
    The setup is as follows:
    In a client-server solution we have a win xp, fat client running java 1.6.0.18.
    (Sun JRE). The fat client containt a lot of GUI, and connects to a server for DB access. Client machines are typical 1 to 3 years old (there are problems even on brand new machines). They have the client version of JRE - standard edition installed (Java SE 6 update 10 or better) Pretty much usual stuff so far.
    We have done a lot of profiling on the client code, and yes we have found parts of our own Java code that needs improving. we are all over this. Server side seems ok with good response times. So far, we havent found anything about shaky net connections or endless loops in the java client code or similiar.
    Still, things are not good. Starting the application takes a long time. too long.
    There are many complicating factors, but here is what we think we have observed:
    There is a problem with cold vs. varm starts of the application. Apparently, after a reboot of the client PC - things are really, really bad - and it takes (sometimes) up to 30-40 secs to start the application (until we arrive at the start GUI in our app).
    If we run our application, close it down, and then restart
    without rebooting, things are a lot better. It then usually takes
    something like 15 - 20 sec. which is "acceptable". Not good, but acceptable,
    Any ideas why?
    I have googled it, and some links seems to suggest that the reason could be disk cache. Where vital jar are already in disk cache on th warm start? Does that make any sense? Virus scanners presumable runs in both cases.
    People still think that 15 - 20 sec in start up on the warm start is an awful long time, even though there is a lot, a lot, of functionality in the application.
    We got a suggestion to use IBMs JRE - as it can do some tricks (not sure what) our SUN JRE cant do concerning the warm and cold start problem. But thats is not an option for us. And noone has come up with any really good suggestions with the SUN JRE so far?
    On the Java Quick Starter (JQS) -
    improves initial startup time for most java applets and applications.
    Which might be helpful? People on the internet seem more interested
    in uninstalling the thing than actually installing it though?
    And it seems very proprietary, where we cant give our Jar files to it?
    We could obviously try to "hide" the problem in some way and make it "seem" quicker. Where perceived performance can be just as good as actual performance. But it does seem a bad solution. So for the cold start we will probably try reading the jar files and thereby have them in disk cache before startup of our application. And see if that helps us.
    Still, ok the cold start is the real killer, but warm start isn't exactly wonderfull either.
    People have suggested that we read more on the JVM and performance.
    java.sun.com.javase/technologies/performance.jsp
    java.sun.com.docs/hotspot/gc5.0/gc_tuning_5.html
    the use of JVM flags "-Xms" "-Xmx" etc etc.
    And here comes the question .. da da ...
    Concerning various suggested reading material.
    it is very much appreciated - but we will like to ask people here - if it is possibe to get more specific pointers. to where the gold might be buried.
    I.e. in a an ideal world we would have time to read and understand all of these documents in depth. However, in this less than ideal world we are also doing a lot of very timeconsuming profiling in our own java code.
    E.g. java garbage collection is is a huge subject - and JVm settings also. Sure, in the end we will probably have to do this all very thoroughly. But for now we are hoping for some heuristics on what other people are doing when facing a problem like ours..?
    Young generation, large memory pages, garbage collection threads ect. all sounds interesting - but what would you start with?
    If you don't have info to decide - what kind of profiling would you be running and then adjust what JVM setting in your trials?
    In this pressed for time scenario. Ignorance is not bliss. But makes it hard to pinpoint the or those JVM parameters to adjust. So some good pointers from experienced JVM "configurators" will be much appreciated!
    Actually, If we can establish that finetuning of these parameters is a good idea, it will certainly also be much easier to allocate the time for doing so. - reading, experimenting etc. in our project.
    So, All in all , what kinds of performance improvements can we hope for? 5 out of 20 secs on the warm start? Or is it 10 % nitpicking? Whats the ball park figure for what we can hope to achieve here given our setup? What do you think based on above?
    Maybe someone out there have done some finetuning of JVM parameters in a similiar PC environments like, with similiar fat clients...? Finetuning so and so - gave 5 secs. So start your work with these one-two parameters?
    Something like that - some best practices? Thats what we are hoping for.
    best wishes
    -Simon

    Thanks for helpful answer from both you and kajbj.
    The app doesn't use shared network drives.
    What are you doing between main starts to get executed and the UI is
    displayed?
    Basicly, Calculating what to show in the UI. Accessing server - not so much, there are some reads from a cache, but the profiling doesnt indicate that it should be a problem. Sure, I could shift the startup time to some other slot, but sofar I havent found a place where the end-user wouldnt be annoyed.> Caching of something would seem most obvious. Normal VM stuff >seems unlikely. With profiling i basicly find that ''everything'' takes a lot longer in the cold start scenario. Some of our local java methods are going to be rewritten following our review. But what else can be tuned?You guys dont think the Java Quick Start approach, with more jars in disk cache will give something? And how should that be done/ what does people do?I.e. For the class loader I read something about
    1.Bootstrap class loader
    2.Extensions class loader
    3.System class loader
    and is wondering if this has something to do with the cold start problem?
    The extensions class loader loads the code in the extensions directories (<JAVA_HOME>/lib/ext
    So, we should move app classes to ext? Put them in one jar file? (We have many). Best practice about that?
    Otherwise it seems to me that it must be about finetuning the JVM?
    I imagine that it is a question about:
    1. the right heap size
    2. the right garbage collection scheme
    Googling heap size for XP
    CHE22 writes:
    You are right; -Xms1600M works well, but -Xms1700M bombs
    Thats one best practice or what?
    On garbage collection, there are numerous posts, and much "masters of Java black art" IMHO, And according to profiling GC is not really that much of a problem anyway? Still,
    Based on my description I was hoping for a short reply like "try setting these two parameters on your xp box, it worked for me" ...or something like that. With no takers on that one, I fear people are saying that there is nothing to be gained there?
    we read:
    [ -Xmx3800m -Xms3800m
    Configures a large Java heap to take advantage of the large memory system.
    -Xmn2g
    Configures a large heap for the young generation (which can be collected in parallel), again taking advantage of the large memory system. It helps prevent short lived objects from being prematurely promoted to the old generation, where garbage collection is more expensive.
    Unless you have problems with pauses, try granting as much memory as possible to the virtual machine. The default size (64MB) is often too small.
    Setting -Xms and -Xmx to the same value increases predictability by removing the most important sizing decision from the virtual machine. On the other hand, the virtual machine can't compensate if you make a poor choice.
    The -XX:+AggressiveHeap+ option inspects the machine resources (size of memory and number of processors) and attempts to set various parameters to be optimal for long-running, memory allocation-intensive jobs]
    So is Setting -Xms and -Xmx and -XX:AggressiveHeap
    best practice? What kind of performance improvement should we expect?
    Concerning JIT:
    I read this one
    [the impact of the JIT compiler is obvious on the graph: at startup the time taken is around 500us for the first few values, then quickly drops to 130us, before falling again to 70us, where it stays for 30 minutes,
    for this specific issue, I greatly improved my performances by configuring another VM argument: I set -XX:CompileThreshold=50]
    The size of the cache can be changed with
    -Xmaxjitcodesize
    This sounds like you should do something with JIT args, but reading
    // We disable the JIT during toolkit initialization. This
    // tends to touch lots of classes that aren't needed again
    // later and therefore JITing is counter-productiive.
    java.lang.Compiler.disable();
    However, finding
    the sweet spots for compilation thresholds has been tricky, so we're
    still experimenting with the recompilation policy. Work on it
    continues.
    sounds like there is no such straigth forward path, it all depends...
    Ok, its good, when
    [Small methods that can be more easily analyzed, optimized, and inlined where necessary (and not inlined where not necessary). Clearly delineated uses of data so that usage patterns and lifetimes are apparent. ]
    but when I read this:
    [The virtual machine is responsible for byte code execution, storage allocation, thread synchronization, etc. Running with the virtual machine are native code libraries that handle input and output through the operating system, especially graphics operations through the window system. Programs that spend significant portions of their time in those native code libraries will not see their performance on HotSpot improved as much as programs that spend most of their time executing byte codes.]
    I have the feeling that we might not able to improve performance that way?
    Any comments?
    otherwise i was wondering about
    -XX:CompileThreshold=50 -Xmaxjitcodesize (large, how large?)
    Somehow, we still feel that someone out there should have experienced similiar problems? But obviously there is no guarantee that the someone should surf by here!
    In c++ we used to just write everything ourselves. Here it does seem to be a question about the right use of other peoples stuff?
    Where you are kind of hoping for a shortcut, so you dont have to read endless number of documents, but can find a short document that actually addresses your problem ... well.
    -Simon
    Edited by: simoncpm on Mar 15, 2010 3:43 PM
    Edited by: simoncpm on Mar 15, 2010 3:53 PM

  • I just installed itune on wiodows 7 64 bits everything works very well but it wont go in full size screen ( I am not talking fullscreen for video just the program itself on my screen...I expand it but flashes rigth back to small size  Can someone help

    I just installed itunes on wiodows 7 64 bits..everything works just fine except i can not get the program to run expanded(full screen)i am not refering to FULL SCREEN  in a video ...just the program itself it wont expand  it flashes and goes right back to diminish mode hard to read and i am missing stuff on either sides of the screen  Thank You 

    Hi Jjjames,
    Thanks for posting. I'm really sorryo for the problems you've had. I can look into this for you if you wish. Drop me an email with your account details and a link to this post for reference and we'll take it from there. You'll find the address in my profile.
    Cheers
    David
    BTCare Community Mod
    If we have asked you to email us with your details, please make sure you are logged in to the forum, otherwise you will not be able to see our ‘Contact Us’ link within our profiles.
    We are sorry but we are unable to deal with service/account queries via the private message(PM) function so please don't PM your account info, we need to deal with this via our email account :-)

  • Fine Tuning The Enterprise Portal

    Hello world
    Currently i am searching about the best ways to fine tune our E Portal the below Info are the results of my search so far.
    Hope They Help You and please share any knowledge you have around this area.
    Tuning The E-Portal
    1-Tunable Parameters of SAP Web Application Server (JAVA)
    :Reducing the Network Traffic -From the Config Tool window,
    select: <instance> + services + http, and change the
    value of the following properties:
    -NeverCompressed: delete this values --> *.css, *.pdf, *.js, image,
    application/pdf, text/JavaScript
    -CacheControl: 604800
    Servlet_js p
    -EnableChunkedResponse: True
    -MinimumGZipLength:  1024
    2-SAP Web Application Server (Java) Monitoring Server
    Adjusting Log Severity Levels
    - re adjust the severty from ALL to ERROR
    3-Disabling the Distributed Statistics Service
    1.Run\usr\sap\<system_number>\JC<instance_id>\j2ee\configtool
    \offlinecfgeditor.bat
    2. Select Configurations -> cluster_data -> server -> cfg -> services->
    Propertysheet dsr-runtime -> <edit-button> -> startup-mode ->
    3. Select Custom and enter manual, and then select Apply custom .
    4. Restart the cluster.
    4- PRT Configuration
    \usr\sap\<system_id>\JC<instance_number>\j2ee\cluster\server<number>\apps\sap.com\irj
    \servlet_jsp\irj\root\WEB-INF\portal\system\properties
    SET
    -async.response.pool.size=100
    -PRT monitor  monitor.off=false
    -Log on to the portal as an administrator, and navigate to:
    System Administration -> Monitoring -> Portal
    -> Components Overview System Administration ->Monitoring ?? Portal ?? Threads Overview
      to help you identify bottlenecks in performance.
    5-Tuning the Application Server
    - Configuring JVM parameters on AS Java
    Set <-XX:SoftRefLRUPolicyMSPerMB=1000> (from default 1)
    - Avoiding session leaks - Tracing Single User Sessions
    - Tuning HTTP Provider Service
    -Enabling production mode
    6-Java Memory Analyzer Tool
    -Install Java Memory Analyzer Tool MAT
    - run performance reports using Solution Manger  // this only work if you have running solution manger on your system
    If You Have Any Tips Please Share
    Regards,
    Ahmed Salam

    Dear Ashish,
    From the Config Tool window --> Servlet_js p Tap
    -EnableChunkedResponse: True
    -MinimumGZipLength:  1024
    Read carfuly and you will find the answers
    Hope it helped
    Regards,
    Ahmed Salam.

  • For CS6 is there an easier way to redirect all my files and folders for all of the programs?

    Hey adobe people, Im wondering, I know you can setup each preference individually, but I want to redirect all the catched space, storage of brushes, and etc for all my programs into another disk volume as in changing c/ to e/. Is there a way to do this with in one program to make it easier? I don't want to accidently delete files that all the adobe programs can't find.
    The reason is I don't want to store anything other then the programs on the SSD, and in theory I want the other drive, so it can run faster.

    There is no global option for this.
    Mylenium

  • Is it possibly to change file attributes for files in the Program Files directory?

    Hi,
    I wonder if it is possible to change file time atributes for a file that is in the same folder as the exe file inside the Program File folder. I have the following code that gives System Error Code 5.
    SHGetFolderPath(0, CSIDL_PROGRAM_FILES, 0, SHGFP_TYPE_CURRENT, programpath);
    PathAppend (programpath, TEXT("Testprogram/gnsh.dat"));
    hFile = CreateFile(programpath, GENERIC_READ | GENERIC_WRITE, FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
    If this had worked, I would for instance have done like this
    GetSystemTime(&st); SystemTimeToFileTime(&st, &ft);
    timeresult = SetFileTime(hFile2, NULL, NULL, &ft);
    I am programming in C with WIndows Api.
    Thanks in advance for answer.
    Best regards

    Hi Vahmat,
    System error code 5 :
    ERROR_ACCESS_DENIED
    5 (0x5)
    Access is denied.
    I have tested your code on my side, it will get a error code 5 if you have no permission to access a file. Please try to run VS as a administrator and rebuild your project, after this , you code works well on my side.
    Best regards,
    Shu Hu
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Security Questions (3) for AppStore iPhone - the program won't allow me to save the questions, keeps kicking me back to the beginning and erasing the ones I've entered.

    Security Questions (3) for AppStore iPhone - Every time I try to enter the 3 security questions, it keeps kicking me out of the program and won't allow me to save the questions, keeps kicking me back to the beginning and erasing the ones I've entered.  I can't get passed this point to download anymore apps from the app store.
    Help!!!

    You can try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Unsync all music and resync
    - Reset all settings      
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                                
    iOS: How to back up                                                                
    - Restore to factory settings/new iOS device.             

  • Fine tuning the logging to cisco device

    Dear Netpro Community,
    I am trying to fine tune the AAA portion on the cisco device
    Here is my current configuration:
    aaa new-model
    aaa authentication login default group radius local
    aaa authentication enable default group radius enable
    If the radius server is offline, the first level is not a problem. However, the issue occurs if I want to go to enable mode. It will not use the enable password defined locally, but instead it will go to and search for radius server for authentication.
    Debug:
    test_switch>en
    Password:
    01:05:15: RADIUS: Authenticating using $enab15$
    01:05:15: RADIUS: ustruct sharecount=1
    01:05:15: RADIUS: Initial Transmit tty0 id 44 x.x.x.x:1812, Access-Request,
    len 72
    01:05:15: Attribute 4 6 AC10E10F
    01:05:15: Attribute 5 6 00000000
    01:05:15: Attribute 61 6 00000000
    01:05:15: Attribute 1 10 24656E61
    01:05:15: Attribute 2 18 69ABFDF8
    01:05:15: Attribute 6 6 00000006
    01:05:20: RADIUS: Retransmit id 44
    01:05:25: RADIUS: Retransmit id 44
    01:05:30: RADIUS: Retransmit id 44
    Password:
    01:05:35: RADIUS: Marking server x.x.x.x:1812,1813 dead
    01:05:35: RADIUS: Tried all servers.
    01:05:35: RADIUS: No valid server found. Trying any viable server
    01:05:35: RADIUS: Tried all servers.
    01:05:35: RADIUS: No response for id 44
    01:05:35: RADIUS: No response from server
    % Password: timeout expired!
    % Error in authentication.
    How do I ensure that i can access the switch in privilege mode if there is no path to the radius server?

    Jagdeep:
    With the default "radius-server retransmit" value, there are (potentially) three retransmissions that may occur if the RADIUS server doesn't respond to the first request. With a 1 sec. "radius-server timeout", this provides a four second window of opportunity for a successful response.
    If he doesn't want to use a "radius-server timeout" as low as 1 sec. (per your concern), he can use the "radius-server retransmit" command to constrain (to a reasonable period) the time required to mark an MIA RADIUS Server as dead.
    e.g.:
    radius-server host aaa.bbb.ccc.ddd auth-port 1812 acct-port 1813 timeout 2 retransmit 1 key xxxxxxxxxx
    Contrary to your statement, your approach and mine are trying to facilitate the same thing, i.e.: accommodating fall back to the enable method prior to login timeout.
    However, your recommendation only results in a successful login after 20+ sec., due to postponement of fall back, resulting from the 20 sec. spent determining that the MIA RADIUS Server is dead.
    I don't ever want to wait 20+ sec. for a login, and don't find it necessary to wait that long to conclude that an AAA server is MIA.

  • How to input 2 numbers to the program?

    Dear all,
    I am learning converting from http://java.sun.com/docs/books/tutorial/java/data/converting.html. I use netbean, and I copy and paste the code from the web. I choose "run file" in netbean. I know I need to input two numbers to run this program, However, I don't know how to do it in netbean
    Moreover, what exactly "public static void main(String[] args) " mean? especially (String[] args)
    * Main.java
    * Created on June 14, 2007, 10:50 AM
    * To change this template, choose Tools | Template Manager
    * and open the template in the editor.
    package converting;
    * @author Marco
    public class Main {
        /** Creates a new instance of Main */
        public Main() {
         * @param args the command line arguments
        public static void main(String[] args) {
            // TODO code application logic here
                if (args.length == 2) {
                   //convert strings to numbers
                float a = (Float.valueOf(args[0]) ).floatValue(); 
                float b = (Float.valueOf(args[1]) ).floatValue();
                //do some arithmetic
                System.out.println("a + b = " + (a + b) );
                System.out.println("a - b = " + (a - b) );
                System.out.println("a * b = " + (a * b) );
                System.out.println("a / b = " + (a / b) );
                System.out.println("a % b = " + (a % b) );
            } else {
               System.out.println("This program requires two command-line arguments.");

    args[] is a String array so when you do:
    // calling MyClass with 3 parameters
    java MyClass arg1 arg2 arg3you can retreive the parameters with for loop
    if(args.length < 3){
      System.out.println("use: java [options] <yourClass> param1 param2 param3");
      System.exit(0);
    }else{
      for(String str:args){
        System.out.println(str);
    ...

Maybe you are looking for

  • N-step approval process for PO in SRM 7

    Here are a couple of questions I have regarding N-Step approval configuration for PO in SRM 7 Process Controlled Workflow: 1) It's our business requirement that the last-change person of the PO is defined as the first approver in the chain. I tested

  • Basic question on a web dynpro application

    Hi All, I am new to NWDS 2004 and I just executed my first web dynpro application that is on https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/a-c/creating your first web dynpro application.pdf I have couple of q

  • Cannot change size of picture (in Ko) when saving with Preview

    Hello all, I need your help please. When I modify a picture with Preview, like resize it for example, then I want to save the picture, I cannot change the size in Ko like I used to be able to with Snow Leopard. Before, in the "Save as" menu, there wa

  • Auto Query in Master Detail Form using dynamic page doesn't work

    I created a Master-Detail form, and implement AutoQuery using a dynamic page with the following code : <HTML> <BODY> <ORACLE>DECLARE nre_ VARCHAR2(100); BEGIN nre_ := emp_nre; if nre_ is not null then net_portal.Popula_Agregados(nre_); net_portal.Pop

  • Headphone Jack Problem in OSX!

    2 different headphones 2 different mac laptops, both had a louder right speaker and a very quiet left, Anyone else notice this with Mav?