Select statement from bkpf slows down the system

hi guys,
i have this syntax for this coding:
        SELECT * FROM bkpf
         WHERE bukrs = ekko-bukrs
           AND awkey = xawkey
           AND gjahr = i_ir-budat(4)
           AND blart = 'RE'.
        CLEAR: titab.
        titab-ebeln = itab-ebeln.
        titab-ebelp = itab-ebelp.
        titab-budat = bkpf-budat.
        titab-bldat = bkpf-bldat.
        titab-xblnr = bkpf-xblnr.
        APPEND titab.
     ENDSELECT.
this coding really slows down the report seleection and sytem , can anybody advice on how to select the better way

Hi Ester,
First you need to avoid the select and endselect statement by using SELECT INTO TABLE.
Second issue is u are using non-key fields in where conditions are aweky, belnr  and u r not using the belnr which is first key-field in the BKPF table.
Third one is try to use the fields in correct order which it is in table say in ur where codition it should be like bukrs, gjahr, blart, awkey,....
if you dont have a input field BELNR and u need to do really improve the performance with these input fields wht you have, its is better to create Secondary index with proper sequence for felds.
But i am not sure to give permission to create secondary index bec it takes more memory occupation like what exact BKPF tbale contains, you need to permission from client people along with BASIS people.
i am give sample code  :
SELECT * FROM bkpf  " try to specify the internal table with exact fileds instead '*'
    into table tbl _ bkpf
WHERE belnr = w_belnr
and    bukrs = ekko-bukrs
AND gjahr = i_ir-budat(4)
AND blart = 'RE'.
AND awkey = xawkey.
If sy-subrc = 0.
sory tbl_bkpf by belnr.
endif.
Let me know if any doubts.
<b>Reward with points if useful.</b>
Regards,
Vija

Similar Messages

  • Hi, I am using an old PC P2 450Mhz, 256 MB Ram. Is ver 3.6.16 ok for my system or will it slow down the system? Thanks

    Hi, I am using an old PC P2 450Mhz, 256 MB Ram. Is ver 3.6.16 ok for my system or will it slow down the system? NODD is the anti-virus. I am not happy with IE or goolge as these are taking too much space. Thanks

    The system requirements for Firefox 3.6 are:
    * Pentium 233 MHz (Recommended: Pentium 500 MHz or greater)
    * 64 MB RAM (Recommended: 128 MB RAM or greater)
    You exceed the minimum and are just short of the recommended processor. It should run OK but the only way to tell will be to try using it. Note that using add-ons can slow Firefox down, so if you start installing quite a few you may get performance issues.
    https://www.mozilla.com/en-US/firefox/3.6/system-requirements/

  • The little gear wheel keeps appearing thus slowing down the system

    My system is being slowed down by the appearance of the little gear wheel turning around & around.

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    The title of the Console window should be All Messages. If it isn't, select
              SYSTEM LOG QUERIES ▹ All Messages
    from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar at the top of the screen.Click the Clear Display icon in the toolbar. Then take one of the actions that you're having trouble with. Select any messages that appear in the Console window. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    The log contains a vast amount of information, almost all of which is irrelevant to solving any particular problem. When posting a log extract, be selective. A few dozen lines are almost always more than enough.
    Please don't indiscriminately dump thousands of lines from the log into this discussion.
    Please don't post screenshots of log messages—post the text.
    Some private information, such as your name, may appear in the log. Anonymize before posting.

  • Does LUKS encryption slow down the system?

    How fast is the system after you encrypt / and /home partitions? Does anybody notice any difference compared to unencrypted partitions?
    I'm thinking about encrypting partitions, but for speed reasons I don't know should I encrypt just /home or also the / partition.
    I found nothing on LUKS homepage.

    Technically it must be a little slower, but I never could notice it at all. If you do try it, watch top while you're working, the amount of CPU used by "kcryptd" is basically the amount of power you're giving up.

  • Creation of 1000 Cost Centres will slow down the system performance

    Hi,
    Can anyone suggest us, that if we create more than 1000 Cost Centres will there be any system/server performance issue in
    SAP Business One.
    Thanks,
    Vishwa

    Hi Vishwa,
                   You are 50 % correct, Application performance may get slow but it won't clash.
                   Because If you create 1000 of Cost Center, for each transaction system have to search and have to do the entry for corresponding cost center also. So there is a chance to get low performance. But application won't crash.
                   Also you check other mean also like network configuration, protocol priority, cache memory size increasing, page fault size and others.

  • Satellite Pro A10 - Does SP2 or 3 slow down the XP performance?

    Hi,
    I have a Satellite Pro A10 PSA15E which over the years had become very slow.
    Recently I upgraded it's RAM from 256 to the maximum 1gb to try to speed things up but it did not help.
    Next I reformatted the hard disc and reloaded the system using the Toshiba recovery disks. This worked fine and the system performance was excellent. However, with on-line security in mind, I loaded Windows SP2 ( with a view to subsequently go to SP3) and this has taken the system back to where I started - very, very slow, in fact pretty well unusable.
    Does anyone know if Toshiba support SP2 and SP3 on this model of laptop?
    If so how do you install them without killing performance?
    Thanks in advance.

    Hi!
    I think SP2 or SP3 is supported on this Toshiba notebook because both Service Packs are contains really important security updates and I think this is not the problem.
    If you install SP2 or SP3 you will also get the Security center and better Windows firewall. Maybe you should disable both services because the slow down the system performance (I always disable both services).
    Just go to start => run => services.msc and disable both services and set the start up type to disabled.
    Bye

  • Select data from BKPF for a date range

    Hi,
    I want to select data from BKPF depending upon the date range given in the selection screen.
    SELECTION-SCREEN : BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    " Selection Criteria
    SELECT-OPTIONS : S_DATE FOR SY-DATUM OBLIGATORY.
    SELECTION-SCREEN : END OF BLOCK B1.
    How do I do that??.. Please help.
    Thank You,
    SB.

    HI SB,
         Create Indexes and select the data ...
    i.e,
    SELECTION-SCREEN : BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    " Selection Criteria
    <b>SELECT-OPTIONS : S_DATE FOR BKPF-BLDAT OBLIGATORY.</b>
    SELECTION-SCREEN : END OF BLOCK B1.
    <b>    SELECT * FROM BKPF WHERE BLDAT IN s_date.</b>
    Regards,
    Santosh P
    Message was edited by: Santosh Kumar Patha

  • Messages are in to be delivered state and slows down the message processing

    Hello,
    Messages are in to be delivered state and slows down the message processing.
    this happenens in case of DB2 on some machine where the issue about high load on DB2  is caused by standard programming in SAP XI that executes a statement, where it uses the condition 'where 1<0' prio to the original  SQL statement configured in the channel configuration,
    Can you please help me out in solving this issue?
    Thanks,
    Soorya

    Status: TO_BE_DELIVERED
    Which means that the message was successfully delivered from Integration Server point of view and it states that the messages is initially handed over to the Messaging System.
    TO_BE_DELIVERED occurs while the message is put into the Messaging System receive queue.
    Solution:
    This is done via the Messaging System receive servlet:
    http://<Host>:<PORT>/MessagingSystem/receive/<CONNECTION>
    /<PROTOCOL>
    Only if this was executed successfully the Messaging System returns HTTP 200 to the Integration Server and the Status TO_BE_DELIVERED moves to DELIVERING
    1. Try logging into Sap GUI with two users: XIAPPLUSER & XIAFUSER
    to see if they are blocked
    2. We can check the messages:
    AdapterFramework
    com.sap.aii.adapterframework.serviceuser.language
    com.sap.aii.adapterframework.serviceuser.name = XIAFUSER
    com.sap.aii.adapterframework.serviceuser.pwd
    ApplicationSystem
    com.sap.aii.applicationsystem.serviceuser.language
    com.sap.aii.applicationsystem.serviceuser.name = XIAPPLUSER
    com.sap.aii.applicationsystem.serviceuser.pwd
    in the exchange profile to make sure the right passwords

  • HT4863 I sent an email from my iPhone 3GS (via iCloud account) with around 16GB of attachment. It slowed down the phone for a few seconds, then appeared to be sent. However, the message is now not in the sent box, and I can't see an outbox at all. Any ide

    I sent an email from my iPhone 3GS (via iCloud account) with around 16GB of attachment. It slowed down the phone for a few seconds, then appeared to be sent. However, the message is now not in the sent box, and I can't see an outbox at all. Any ideas?

    That changes things a little bit , login to icloud.com and see if you can find it in your sent folder.
    If it is there you did send, just need to wait until you phone syncs "sent folder" perhaps on wifi.
    If it is not, then I would say it is lost and you may have to send again. They have 20 megs limit, so make sure that message plus attachment is under that limit.

  • How can I slow down the playback speed of selected parts of a captivate video?

    Hi everybody,
    I'm pretty new to Captivate and although it offers some great tools, there is something that I just can't get to work:
    I'm creating a video tutorial about how to use a website i'm working with so I've tried using "Automatic" ("Demo" mode chosen) recording option which is recommended for this type of video. However, the video recorded has a different playback speed than the amount of time I recorded. This means that some of the slides have a quicker playback speed than the way I recorded, thereby not leaving enough time to show the given feature.
    The recording mode with the most "true" playback was "Full motion". However, I would still like to be able to slow down selected parts of the video, but can only find guides on how to slow down the entire presentation.
    Can you please advise me on how to slow down only selected parts of the project? If this is not possible in Captivate, please advise me on which video editing software (where you can slow down the playback speed on selected parts of the video) is compatible with Captivate 5?
    Thanks!

    Thank you. Andrew Kramer's Video Copilot video, which I somehow managed to miss, was very helpful.
    I had a 79 second clip which I precomposed and enabled time remapping. But I have 12 places where I need to slow down the layer. After a while, I was runing out of room to add more keyframes using the method promoted in many videos and instruction sites (grab the last two keyframes, including the end frame, and drag).
    In reality, you can add keyframes wherever you like and you can adjust them however works best within the existing timeline without messing with the duration, etc.
    Much appreciated.
    Paul

  • How to get the select statement from the DISPLAY_ERROR; window

    Hi
    Do you know a way to get the select statement that is displayed in the
    display_error; window ( select hola from u where a = :d),
    this for saving to a text file.
    Thanks in Advance.

    You must copy-and-paste it. You can't access that error from within Forms.
    Regards,
    Robin Zimmermann
    Forms Product Management

  • Select statement from a join file deletes the primary records with MS Expl.

    Hello,
    is reality,
    Select statement from a join file deletes the primary records with MS Explorer 6, Firefox not, this with a normal data provider or with a normal "select..." statement.
    This is very strange, I should have a.a.s.p. a solution or workaround
    Thanks, Franco.
    Message was edited by:
    fbiaggi

    Please see the following excerpt from the online documentation.
    http://docs.oracle.com/cd/E11882_01/server.112/e22490/ldr_modes.htm#SUTIL1332
    Enabled Constraints
    During a direct path load, the constraints that remain enabled are as follows:
    NOT NULL
    UNIQUE
    PRIMARY KEY (unique-constraints on not-null columns)
    NOT NULL constraints are checked at column array build time. Any row that violates the NOT NULL constraint is rejected.
    Even though UNIQUE constraints remain enabled during direct path loads, any rows that violate those constraints are loaded anyway (this is different than in conventional path in which such rows would be rejected). When indexes are rebuilt at the end of the direct path load, UNIQUE constraints are verified and if a violation is detected, then the index will be left in an Index Unusable state. See "Indexes Left in an Unusable State".

  • Limitation on SQL executing select statement from ADO and Oracle 8.1.7.1 OleDB Driver

    Hi,
    we are running a query with a big dunamic select statement from VB code using ADO command object. When Execute method is called system hangs and control won't return back to the application. it seems to be that there is some type limitation on Query string length. Please tell us if there is any?
    we are running Oracle 8.1.7 Server on Windows 200 Server and connecting from a W2K professional, ADO 2.6 and Oracle OLEDB 8.1.7.1 OLEDB Driver.
    Sample code:
    Dim rs As ADODB.Recordset
    Dim cmd As ADODB.Command
    Set cmd = New Command
    With cmd
    .CommandText = ' some text with more than 2500 characters
    .CommandType = adCmdText
    Set rs = .Execute
    End With
    when i debug using VB6 and when .Execute line is called system hangs or return a message method <<somemethod> of <<some class name>> failed error.
    Any help is appreciated.
    Thanks,
    Anil

    A stored procedure would only slow you down here if it was poorly written. I suspect you want to use the translate function. I'm cutting & pasting examples from the documentation-- a search at tahiti.oracle.com will give you all the info you'll need.
    Examples
    The following statement translates a license number. All letters 'ABC...Z' are translated to 'X' and all digits '012 . . . 9' are translated to '9':
    SELECT TRANSLATE('2KRW229',
    '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ',
    '9999999999XXXXXXXXXXXXXXXXXXXXXXXXXX') "License"
    FROM DUAL;
    License
    9XXX999
    The following statement returns a license number with the characters removed and the digits remaining:
    SELECT TRANSLATE('2KRW229',
    '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ', '0123456789')
    "Translate example"
    FROM DUAL;
    Translate example
    2229
    Also, LIKE '%<string>%' is going to be rather expensive simply because it has to compare the entire string and because it forces full table scans, rather than using indexes. You could speed this sort of query up by using interMedia Text (Oracle Text now in 9i). If you can eliminate one of the '%' options, you could also improve things.
    My guess is that your stored procedure is inefficient and that's causing the problem-- 5k rows per table should be pretty trivial.
    If you post your query over on the PL/SQL forum, there are better performance tuners than I that might have more hints for you. To get really good advice, though, you'lllikely have to get at least the execution plan for this statement and may need to do some profiling to identify the problem areas.
    Justin

  • Is there a way to slow down the playback of video in Captivate 5?

    I just made several recordings (FMR) and would like to slow them down for the viewer.  The video was actually of someone else's software demo that moved way too fast.  On the Captivate skin there is "2x" to move the video twice as fast, but no "1/2x".  Is there another way to slow down the video?
    Thank you!

    No.  Not there.  Honest.
    When I go to  Edit + Preferences, I see a menu on the left.
    General Settings:
    Show Welcome Screen (checked)
    Generate Project Backup (unchecked)
    Default Locations (I set this to my output folder)
    Project Cache (I set this to my C:\ drive)
    Comments At:  (blank)
    Grid Size: 16
    Spelling Preferences
    Confirmation Messages
    Defaults:
    Background Color: white
    Object Defaults:
    Select: Text Caption (or highligh box, or image, or smart shape)
    Display For: Specific Time   3 secs
    Default Style: Default Caption Style
    Restore Selected Button
    Restore All Button'
    General
    Autosize buttons
    Autozize Captions
    Calculate Caption Timing
    Recording:
    Settings:
    Generate Captions in: English
    Audio Options:
    Narration
    Actions in Real Time
    Camera Sounds
    Hide:
    Recording Window
    Task Icon
    System Tray Icon
    Others: Move New Windows Inside recording Area
    Smoothen movements for:
    Drag and Drop Actions
    Mouse Wheel Actions
    Video Demo Settings button:Video Demo Recording
    Show mouse in video demo mode
    Working folder (mapped to my C:\ drive)
    Keys
    To stop recording: End
    For Automatic panning: F4
    For Manual Panning: F3
    To stop panning: F7
    To snap recording window to mouse: F11
    To toggle mouse capture in video mode: F12
    restore Defaults button
    Project
    Information
    Author
    Company
    E-mail:
    Website:
    Copyright:
    Project Name:
    Description:
    Publish Settings:
    Include Audio (checked)
    Publish Audio as Mono (checked)
    I don't see anything in the whole menu that says anything about fps.  What am I missing?  Thanks!

  • Does installing Desktop Experience on Windows Server 2008 R2 SP1 slow down the server / increase processor usage?

    Hello.
    I'm running a tekkit classic (Minecraft) Server on a dedicated server I got from OVH, Im just wondering - Im currently using ClamAV for an antivirus, But I would like windows defender.
    Im wondering if installing Desktop Experience on my dedi would increase processor usage or slow down the dedi even slightly.
    System Specs:
    RAM: 32GB DDR3 ECC 1600MHz
    CPU: Intel Xeon E3-1245v2
    HDD: 2x2TB SATA (Both used, specified as different drives)
    OS: Windows Server 2008 R2 SP1
    Theres only 1 indev tekkit server currently running on there, Im getting 0-5% processor usage. I may be setting up more modpack servers  - but im wondering if installing desktop experience would increase the processor usage or slow the dedi down.
    Thanks.
    Joseph

    Hi Joseph,
    This is the forum for Microsoft BizTalk Server, you've asked your question in the wrong forum.
    I suggest posting your question in the Windows Server forum
    http://social.msdn.microsoft.com/Forums/en-US/home#forum=winserver2008appcompatabilityandcertification&filter=alltypes&sort=lastpostdesc&content=Search
    Glenn Colpaert - MCTS BizTalk Server - Blog : http://blog.codit.eu

Maybe you are looking for

  • Problems with saving and sending info in PDF form

    Hi, I'm trying to make a PDF form in Indesign CS5, exporting it to PDF, opening in Acrobat 9 Pro, and get the form to be able to send the info I type in the fields. So far I've had no problems making the form, exporting it, opening it in Acrobat 9 Pr

  • Simultaneous Built In Speakers + Headphone Output?

    Anyone know a way around auto-cutoff to the internal speakers on an iMac when you plug into the headphone jack? (new 21" iMac model) I'd love to play both at once using the external source to boost the bass but keeping the sound "local" I'm plugging

  • Dynamic Dimension members - Efficiency of BPC to handle such scenarios

    Hi, I am currently doing a fitment analysis for a client to understand if BPC 5.1 MS version, SQL Server 2005 (the client has this installed) can be used for their reporting requirements. The main requirement is that the client wants to drill down to

  • Dimension variable shows two rows in Webi report

    Hello everyone! I want to build a report with the following structure: Account group 1 | KYF 1| KYF 2 For this effect, I've created a dimension variable called "Account group 1" with a formula like "GL account starts with "64"". With this I'm getting

  • Pros & Cons of animated Gifs

    Hi all, Im trying to include an animated banner of just images, rather than a flash/XML banner - to make it SEO and iphone/ipad friendly. Is there a reason why no one does this as an animated gif anymore? Does it greatly increase file size/download t