Is it good way of using this?

Hi Experts,
                 Is it using inside loop ,  select single -
statement,  is it good way of using this during performance? Pls suggest me

//Is it using inside loop , select single -
statement, is it good way of using this during performance? Pls suggest me
See
loop at itab.
       select single ...
       endloop.
This is as good as executing the select statement the number of times as the entries in table itab.
You can use this but when it comes to performance then say suppose 10000 entries are there then select is executed 10000 times .
If u do a Sql trace ST05 on the code it will show u in minute(s) .
So if i do a select and read all the entries into an internal table and now compare this with the Read statement then the performance will be high .
Regards,
vijay.

Similar Messages

  • I received a goggle play gift card for Christmas.  Is there a way to use this card in the ITune store ?  Or is there a way to convert the google card credit into Itune credit ?

    I received a google play gift card for Christmas.  Is there a way to use this card in the App store or Itune store ?  Or is there a way to convert the google credit into itune credit ?

    No - sorry.
    GB

  • What's a good way to do this?

    I'm an old C programmer learning Java. As an exercise, I'm writing a
    fairly simple astronomy program, and one of the things it needs to do is
    to convert between two different coordinate systems, (altitude, azimuth)
    and (hour angle, declination).
    As it happens, it's possible to write a single conversion function that
    works in both directions. In C, the prototype might look like
    void convert( double latitude, double fromX, double fromY,
    double toX, double toY );
    and I could call this two different ways.
    convert( lat, alt, az, &ha, &dec );
    convert( lat, hr, dec, &alt, &az );
    Is there an elegant way to implement this in Java? Everything I can
    think of feels kinda kludgy and slow (convert() can easily be called
    millions of times).
    I know I could represent the coordinate pairs as double[] and have
    public static void convert( double lat, double[] from, double[] to )
    but I'm not real happy with that. I'd have to use double[] in the rest
    of the program, which would mean things like
    star[ i ].EqCoord[ 0 ]
    star[ i ].AACoord[ 1 ]
    instead of the more concise and self-documenting
    star[ i ].ha
    star[ i ].az
    Or I could wrap the calls to convert() with something like
    double[] result = new double[ 2 ];
    convert( lat, star[ i ].alt, star[ i ].az, result );
    star[ i ].ha = result[ 0 ];
    star[ i ].dec = result[ 1 ];

    Thanks kglad! I think I'm getting the logic looking at a
    number of examples.
    Would I head in this direction?
    onClipEvent (load) {
    moveTo(ball_mc._x,ball_mc._y);
    _root.onEnterFrame = function(){
    lineTo(ball_mc._x, ball_mc._y);
    lineStyle(3, 0xee3355, 100);
    Or this direction:
    onClipEvent (load) {
    /* x & y co-ordinate for the movieclip code.*/
    x1 = _parent.ball_mc._x;
    y1 = _parent.ball_mc._y;
    moveTo(x1,y1);
    lineStyle(3, 0xee3355, 100);
    onClipEvent (enterFrame) {
    lineTo(_parent.code._x, _parent.code._y);

  • I'm using Parallels 7 on an imac with Windows 7.  Both OSX and Windows (and especially quicken on Windows) runs very slow.  Is there a good way to fix this?

    Since installing Parallels 7 and Windows 7 (to use Quicken), my imac and the virtual computer run very slow.  Is there a good fix?

    Start up while holding Command R and run Disk Utility, check the SMART status and repair your hard drive.

  • What's a good way to handle this conversion to a QUAN field?

    Good day everyone,
    I developed an RFC that receives data from XI.  I assign this data to a BAPI, and one of the fields is a field with a data type of QUAN(length 13, decimals 3).  All works fine if XI passes me a numeric value in this field.
    Here's the problem:  In running some test cases through XI and into the RFC, we ran a test case where the quantity field had a value of "test" (e.g. no numeric value).  Incredibly, XI transforms the text value of "test" into the value of 4534 and sends it to my RFC.  So my RFC thinks everything's fine when, in fact, that number was derived from a text field and is completely wrong.
    What we need to do is change the field to something that will "kick out" in XI when it tries to call my RFC.  I thought I could change it to a type of NUMC, but that doesn't let me use decimals.  We've already sent out the file layout to vendors, so we expect them to include numeric values with decimal places if need be.
    Is my best bet changing this to a character field with a length of 17, then checking to make sure it consists only of 0-9, a space, or a decimal?  I then need to assign it to the BAPI's field with the data type of QUAN(13,3) -- am I going to have issues trying to do this from a character field?  Do I need to worry whether or not they include a decimal (it might be implied -- in other words, they might just say quantity is "20" which becomes "20.000" to the BAPI).  Is there a nifty routine I can use to do all this easily?
    Thanks everyone.  Points awarded as always for ALL helpful answers.

    Ravi, that's kinda what I was thinking, but if it's true (i.e. a proper amount) can I just move the contents directly to my QUAN field?  Will SAP automatically do the conversion for me such that it ends up in the right place?  I've yet to have to worry about such conversions -- this is the first time I've had to deal with it -- and I want to make sure that the right value gets assigned, whether that value is "20", "54.1", "1000.25", or "986.500".

  • TS3090 Is there any good way for using a network account locally on the server?

    We have a bunch of macs at home. I want to be able to login to a laptop and have my account (home dir) in sync with de desktop account in a noninvasive way. 
    For achieving this I thought  promoting one imac to be a network profile server would be a good solution.
    This way we can work on any machine and sync portable home directories (phd) with our laptops.
    The server should also be usable as a workstation.
    One problem is: is possible to login on the server (locally) and work in a network account?
    I know it is possible, but this article describes issues.
    Also i am concerned about perfomance because files wil be mounted over afp rather than being on the harddisk. (one workaround would be to have a phd on the desktop, this would however not be possible on the server itsself (unless you have two copies of the home directory there))
    Does anyone have any experience with a simular situation or perhaps some other helpfull insights.

    Sorry, you must have edited your message. When I saw it, only the title showed .
    Embedded is what you want. You can change the windows apperance (e.g. hide the scroll bars) by changing the VI properties.
    Uncheck "request control" in the web publishing wizard, and it will be read only.
    Works fine here in LabVIEW 7.1. I don't remember if 6.1 had any limitations.
    LabVIEW Champion . Do more with less code and in less time .

  • I keep getting offers to clean my imac, Mackeeper its called is it a good idea to use this or not?

    Ikeep getting offers to clean my imac, the offer is from mackeeper,  one should a person clean the mac, and if so is this the product to use or not.

    If it were that good, every-other post here would be recommending it. (None do.)
    Instead, it is like online SPAM -- in your face, trying to sell you garbage.
    Everything you have to have to keep your Mac working right is already installed at the factory. In certain unusual situations, you may need another program or two. Nothing is needed to clean your Mac -- it does not get filthy.

  • A good way to use screen in varying situations

    Anyone who uses GNU/screen knows how awesome it is.  I use it mainly in two situations:
      when i have one terminal connection (ssh) and want to multitask
      when i have a process that i never want to lose (rtorrent, irssi) while logging in/out playing with X etc.
    Yesterday, i came up with a pretty sweet way (i think) of using screen for both of these situations without
      changing current habits (what commands i use day to day)
      affecting current keybinds
      using any crazy complicated scripts
    I thought i'd share this with you guys in case anyone else can find it useful.
    basically i set up one main ~/.screenrc which defines all my screen options (shell, term, hardstatus, etc).  then i have separate "screenrc_extension" files that only define what tabs to load when screen starts.  i then choose which "screenrc_extension" by use of environment variables
    > grep ^source .screenrc
    source "$SCREEN_CONF_DIR/$SCREEN_CONF"
    > echo $SCREEN_CONF_DIR/$SCREEN_CONF
    /home/patrick/.screen/configs/main
    > cat .screen/configs/main
    # example: screen -t [name] [command]
    screen -t mail mutt
    screen -t music ncmpcpp
    #screen -t calendar wyrd
    so here you can (hopefully) see that when i run screen in a clean environment it uses the two exported environment variables to call .screen/configs/main and load the tabs i want 90% of the time.
    everything else happens in ~/.bashrc:
    # dynamically choose which tabs load in screen
    export SCREEN_CONF_DIR="$HOME/.screen/configs"
    export SCREEN_CONF="main"
    alias rtorrent='SCREEN_CONF=rtorrent screen -S rtorrent -D -R rtorrent'
    alias irssi='SCREEN_CONF=irssi screen -S irssi -D -R irssi'
    the aliases are key.
    > SCREEN_CONF=irssi cat $SCREEN_CONF_DIR/$SCREEN_CONF
    # example screen -t [name] [command]
    screen -t irc irssi
    > SCREEN_CONF=rtorrent cat $SCREEN_CONF_DIR/$SCREEN_CONF
    # example: screen -t [name] [command]
    screen -t torrents rtorrent
    so when i type 'rtorrent' the alias will set the environment variable so the right 'screenrc_extension' is used, re attach any running rtorrent-screens here and now, or create one if needed.  the -S names the session so that any subsequent -D -Rs can find and reattach it explicitly.
    and the same thing happens for 'irssi' (or any other app you'd want to use with this approach).
    so i can use the same three commands (screen, rtorrent, irssi) just as always and i get this super-convenient behavior.

    Looks cool.  I use screen pretty much the same way you do, so your idea fits nicely

  • Hey! so i am traveling out of the country. I am extremely confused, if I turn on air plane mode and enable wifi, can i send iMessage without ANY extra charges for being international? Also, what are other good ways to do this and not be charged?

    I really need help! also, if there is any other way i can just use wifi without being charged AT ALL would be great

    iOS: Understanding airplane mode

  • OutOfMemoryError - good way to handle this error?

    Hello.
    I am pulling in images into an array, and every now and then I will get an error stating:
    OutOfMemoryError
    I posted earlier concerning how to examine whether an image can be garbage collected or not, and I got some useful replies.
    But, I was wondering if there were any tips on how to handle this error.

    In general you cannot handle this error as it is possible that your
    error handling code with cause the error again. In reality you
    can catch it somewhere where you know a large chunk of memory has been
    freed.
    matfud

  • ICloud "Family Sharing" loses shared Notes and iDrive.  Any way to use this without losing shared features besides Apps?

    We used to share a single App Store ID so we could see all our family devices, share iDrive space for backups, share App and music purchases, and share notes and reminders.  We had separate IDs for iMessage.  Now with "Family Share" we can do some of that but we lose shared reminders, notes and iDrive space.  Why can't the iDrive space be family based?  We also need shared spaces for notes, reminders, and such.  I feel we are being forced to move to "Family Share" with the new features where you can move work from device to device and that would not work well with multiple people using the same account.

    If you previously had the same iCloud account on all devices and now have different ones on each you might just need to share the calendars, notes and reminders with the other family members iCloud accounts.
    If everyone had been using [email protected] and now they have started using [email protected] and [email protected] you could add the [email protected] account on each device and only turn on Notes and Reminders.

  • HT5449 Is there a way to use this without having to have a constant internet connection?

    I dont always have a live connection but would still like to use the product.

    Welcome to Apple Support Communities
    Dictation requires an Internet connection in OS X Mountain Lion, so you can't use Dictation without an Internet connection. Instead, use an app like Dragon Dictate.
    It's a feature that a lot of users have requested and it's possible that it will be included in future Mac OS X versions

  • What ´s way of using this loop tunnel ?

    I was wondering what is the purpose of this  loop tunnel
    and this unwired loop tunnel in the program.
    I need to know because I´m adding some basic features to this labview program.
    Thanks in advance.

    Given the state of the code it is quite possible the 'a' is wired to something in the second loop and the wire is "hidden". I agree with the early statement that this is a prime example of code in need of a re-write. I can't imagine how bad the entire block diagram would be.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • Is java servlet a good way for developing a website

    Hi,
    i am developing a website that has to download huge data and upload huge data .also money transactions through credit cards need to be involved.is java servlet a good way to do this or should i use an ejb or any other technology.
    Any help is appreciated.

    Thanks for the reply.But di i need to use threading of some sort or can i directly write private methods to fulfill the purpose.Also is there any way my servlet can recognise when a device is connected to a usb port of local machine
    any help is appreciated

  • Good way to start with the WM programming?

    I follow "Community Contributions" and I'm testing every new WM what's out there. I know C and I would like to write the WM. How did you learn to write your first WM?
    What would you suggest to starting WM programmer? Reading Xlib (or others) reference manuals or just studying other WM's source code? Or something else?

    TTWM's code is a complete mess.  I don't know what kind of fool is responsible for that collection of kludges!
    I'll second the recommendation for TinyWM, but once you want to dig deeper I'd suggest looking at other non-reparenting window managers.  I don't know of any non-reparenting floating WMs other than TinyWM, so that may leave you with the tilers - many of which have been mentioned.
    Dwm is a good choice.  That is some finely polished code that has some bright people working for some time to perfect it.  But it has the downside for learning that it does implement many more "complex" features.  It can also be hard to follow the program logic sometimes as there are so many function calls - you have to scroll back and forth through the code while trying not to lose your place ... bring your breadcrumbs.
    In my own coding I try to minimize function calls - not for optimizing the code, as the compiler will handle this pretty well - but for making it more readable.  In every place where a series of actions will be executed in a linear order, I try to keep the commands presented in a linear order within the same function.  Along with this I avoid complicate macros or inline functions: if they'll be inlined anyways, there is no saving on resource use at run time, but only saving a few lines of code while sacrificing the ease of reading and understanding.
    Also, if you have not found it yet, I highly recommend Christophe Tronche's Xlib guide.  I can't say I ever just read through it from start to finish (yet), but when I google any Xlib related function if there are any entries on tronche.com that is the first one (and then often the only one) I look at.
    PS: there's nothing fancy about workspaces/desktops.  You just maintain a list of client windows on each desktop - or have "tags" associated with each client - then when the user changes desktops you just hide all windows that are not on that desktop/tag and show those that are.  Hiding can mean "unmapping" but I preferred an easier hack which I found the dwm authors also used: just move the window (XMoveWindow) off of the screen. Unmapping might even be problematic as it generates a set of events when unmapped and remapped.  This can be remedied and there may be good ways of doing this, but moving off screen works for me.
    Last edited by Trilby (2012-09-26 01:32:22)

Maybe you are looking for