Performance Issues - Screen Redraw etc.?

I have a new MacBook Pro 15" (8GbRAM, 2 GHz i7) Using 30" Cinema Display, OS 10.7.2. I'm using Photoshop CS 5.1 (12.1 x64) Extended. After working for awhile I get performance lag -mostly drawing, cloning etc. Then the cursor starts behaving unpredictably -usually drawing slightly BELOW where the crosshairs are. Then the screen refreshes slows and the screen redraw occurs in very large blocks -VERY slowly. Reloading PShop doesn't help, but rebooting the laptop does solve the problem -until it happens again. In an earlier post I was advised that PShop CS4 was the cause (not compatible w/Lion). But I now have the latest version of Photoshop (my primary application).
- In this situation, I would suspect corrupted PShop Prefs, but I don't think that's the case, as reboot solves the problem. It was also the exact same issue when I ran CS4.
- Could this be an issue wuth using the 15" Macbook Pro with a 30" display? I was also advised that I could NOT upgrade the video card (soldered to motherboard) but this is not a MacBook Air.
- RAM issue? I did upgrade to 8Gb -but I purchased quality RAM from a reputable dealer. I have had no crashes or other issues (other than the Photoshop issue. I will test the RAM.
- Any know CS5 issues/bugs in this area?
Thanks

I think you're seeing more of the 1.7 video driver bugs.  The cursor offset is a known one, along with some "cursor doesn't draw correctly" bugs.
You can try turning off OpenGL drawing in preferences to avoid many of the problems (don't know if that'll fix the cursor or not).
But the real fixes need to come from Apple fixing their display drivers.

Similar Messages

  • Performance issue entering monitor etc

    Dear Sirs,
    Our system currently feels quite slow. When entering the monitor for a load, or managing a cube the system it takes a while.
    In SM50 I can see it reads at table  (sequential) på RSMONIPTAB (which contains 1 millions records).
    SAP help.sap.com describes a process u201CArchivation of Request Administration Datau201D, which might help? Look below. However, I do not like the paragraph marked in bold. What kind of features do they reference to.
    http://help.sap.com/saphelp_nw04s/helpdata/en/42/ead8d7b55e1bd2e10000000a11466f/frameset.htm  
    Archiving request administration data allows you to store the administration and log information for a request in an archive. In BI, tables store the totals records that the system requires so that the request is not set to red because information is missing. This function allows you to limit the size of the administration and log tables, RSDONE und RSMON. This improves performance for actions performed for the request and in the affected InfoProviders and saves memory space in the database without affecting the status set by the system.
    For certain functions and processes that access requests, you have to reload request administration data to the BI administration and log tables.
    Any hints on the issue in general; performance issue with monitor, please let me know.
    Best regards,
    Jørgen

    Guess note below describes gives more info about situation. However, not with a clear solution :=)
    SAP Note 694895 - Performance and tables RSMON, RSDONE
    Note Language: English Version: 5 Validity: Valid Since 29.11.2005
    Summary
    Symptom
    Tables RSMON* (for example, table RSMONMESS) and tables RS*DONE (for
    example, table RSSELDONE) continuously increase in size in the BW system
    with each request that is created.
    Currently there is no option to reduce these tables.
    Do not delete any entries from these tables. If you did, this would have
    the following consequences:
    When you carry out the next check for the requests for which you have
    deleted records from these tables, the check will not run properly.
    The status of the relevant requests turns RED in the monitor, and also in
    all affected data targets that contain the request.
    The affected request and all subsequent requests are no longer visible in
    the reporting - all queries on the affected data targets then only display
    old data.
    Numerous dumps will occur in various situations.
    You will not be able to repair the errors caused by the deletion.
    More Terms
    RSMONMESS; RSSELDONE; Performance; RSMON; RSDONE;
    Cause and Prerequisites
    This is caused by a program error.
    Solution
    In the next BW release (BI in SAP NetWeaver 2004s - that is BW 7.0), you
    will be able to archive entries from the RSMON* and RS*DONE tables using a
    request archiving process that archives the administrative information for
    requests.
    After archiving, these tables are then considerably reduced in size.
    Until then, there is unfortunately no option for reducing the tables.

  • E7-00 performance issue: screen context switch cau...

    I've already tried reinstalling the firmware, and am considering a hard reset but want to determine how this happened first.  The E7 is a dev phone, I'm more interested in determining how the issue arose and preventing it than I am in fixing it.
    I received the phone yesterday.  I started it up without a SIM card in place and tried to connecty with Ovi Sync to get my contacts onto it.  Ovi Sync was bogging down the mobile, and never seemed to complete (ran for hours) across several reboots, so I removed that account.  This was the only 'glitch' I observed prior to the subject of this post.
    At this point, the device boots reasonalby fast, and Ovi Sync has succesfully sync'd my contacts, calendar, notes, etc.  I've setup a single gmail account as well.  Aside from that it is pretty much pristine.
    The primary symptom is as described in the subject: any event that changes the screen context causes the device to be non-responsive for 5-10 seconds.  seconds.  this is a very long time.  Press the menu button one, wait 5 seconds, touch 'Applications' and wait 5 seconds more, etc etc.  I even get a second or two of delay when swiping between homescreens (not just the normal delay, but several seconds where I hve time to try pressing 'Call' and can wait long enough to observe that this touch event didn't do anything).
    Once an app is running it seems to run just fine.  
    any thoughts?
    N95-1 ---> N97-NAM ---> N900 ---> E7-00 + N900 (I use them both)
    (N95 was pretty good, N97 had potential but utterly failed to deliver, N900 is absurdly good. Those of you wondering, "should I try N900/Maemo/MeeGo"? The answer is a resounding YES)
    Solved!
    Go to Solution.

    You could try rebooting the phone, and also turn off theme effects, my E7 has none of the delays you seem to be having, and part of the problem may be the attempt to sync with no sim. If it continues and you haven't put too much data on it , it may be worth trying tto restore factory settings, and re-stync your contacts and set up your goohle account again ?
    If that doesn't work you may need to visit a care centre 
    Also did you check updates, there was a minor update a couple of days ago which increased performance and had some bug fixes, it may help.
    Good Luck
    If I have helped at all, a click on the White Star is always appreciated :
    you can also help others by marking 'accept as solution' 

  • Performance Issue with Selection Screen Values

    Hi,
    I am facing a performance issue(seems like a performance issue ) in my project.
    I have a query with some RKFs and sales area in filters (single value variable which is optional).
    Query is by default  restricted by current month.
    The Cube on which the query operates has around 400,000 records for a month.
    The Cube gets loaded every three hours
    When I run the query with no filters I get the output within 10~15 secs.
    The issue I am facing is that,  when I enter a sales area in my selection screen the query gets stuck in the data selection step. In fact we are facing the same problem if we use one or two other characteristics in our selection screen
    We have aggregates/indexes etc on our cube.
    Has any one faced a similar situation?
    Does any one have any comments on this ?
    Your help will be appreciated. Thanks

    Hi A R,
    Goto RSRT--> Give ur query anme --> Execute =Debug
    --> No a pop up ill come with many check boxes select "Display Aggregates found" option --> now give ur
    selections in variable screen > first it will give the already existing aggregate names> continue> now after displaying all the aggregates it will display the list of objects realted to cube wise> try to copy these objects into notepad> again go with ur drill downs now u'll get the already existing aggregates for this drill down-> it will display the list of objects> copy them to notepad> now sort all the objects related to one cube by deleting duplicate objects in the note pad>goto that Infocube> context>maintain aggregates> create aggregate on the objects u copied into note pad.
    now try to execyte the report... it should work properly with out delays for those selections.
    I hope it helps you...
    Regards,
    Ramki.

  • Screen redraw issues

    Hi everyone
    My new Macbook appears to have screen redraw issues (as I've mentioned in other posts). It often does not redraw the screen quickly or smoothly. It may redraw the screen in bands from the top, or the Dock may come up in jerks. Also, the cursor often freezes, especially when switching from one app. to another, or after performing a function in an app (e.g. Save, or Delete in Finder). Messing around with the keyboard or trying another function often unfreezes the cursor again. It's frustrating.
    I think it's probably a compatibility issue, since quite a few of the applications I transferred over from my iBook are not yet available as fat binaries ("universal" binaries). Yet they seem to work OK. I'll post about that separately.
    If anyone else has experienced screen redraw issues, I'd be interested to hear about them. This machine should run much faster than my iBook, not much more slowly.

    Thanks again, Shawn. I wasn't sure whether to post all the problems as one mess, or separately so people could search for them separately. I decided on separately, in case they weren't related, but mentioned the other bits in each post in case they were.
    I myself searched under all these problems, but had little success. I don't know if that's an artefact of the Search or not. I suppose it depends on things like using "frozen cursor" or "freezing cursor". I certainly found more posts related to my problems when I read all the forum posts for MacBook Users. It took quite a while, but was more productive than searching. I'd rather not have to spend quite as much time on finding data, though.
    Thanks again.
    from Clytie

  • IDCS2 Screen Redraw issues

    We're having screen redraw issues when panning and zooming pages. Getting screen anomolies and jittery display performance. It only happens when using InDesign, no other apps exhibit similar issues.
    PC specs are:
    WinXP Prop SP2
    Dell Optiplex GX620, 2GB RAM
    ATI Radeon X600, 256MB Video Card
    Dual Dell 19" Flat Displays
    Tried setting Display Performance slider in Prefs to middle setting and still getting redraw problems.
    Is there a setting for the video card that might help?
    Thanks,
    -Danny

    InDesign is known to have display issues with scrolling (white bars appearing where the edge of the screen used to be), although I don't believe I've ever seen it panning. As far as I know there is nothing you can do but grumble.
    Not a lot of help, I'm afraid.
    Peter

  • Macbook screen cracked, HD and performance issues

    I am definitely disappointed with my computer.
    I have a Macbook 13.3" 2.4Ghz Intel Core 2 Duo 4Gb 160Gb HD, Serial#: W8**VM0P5, and within 1,5 year I have faced many issues, which are related here:
    September 24th, 2008
    O.S. CRASHES
    I bought it in late September 2008, in Cologne, Germany, at the reseller "Compustore PC Gmbh", and also asked 4Gb Ram, and a Wireless mighty mouse.
    After changing the Ram memory, i went home; and a few days later, the problems came. Sometimes, the system crashed suddenly, showing the grey screen: "You must restart your computer". I thought it was normal, and continued to use, when it became more frequently (Picture: http://picasaweb.google.com/gstorck/MacbookProblems#5476986272817173138). It was little strange for a new laptop, and then I took it back to the store to fix it. The seller just took a look, changed some configurations, and gave me back again. I did this twice, and had to get back to the store for the third time, due to new crashes and some lack of performance. Then the seller replaced the Ram memory, with new 4Gb.
    After that, the system worked more stable; the problem happened some two or three times after some months, but it was ok.
    November 9th, 2009
    HD Problems
    One year later, in late 2009, I purchased a Mac OS update, the Snow Leopard. I was back to Brazil, where I live till today. During the OS installation, something went wrong and it couldn't be completed. Mac asked me to restart the computer, but then the system didn't start anymore; some files were corrupted. I guess there was not enough space to install the update, so it was not completed; but it should be no reason to the corruption of the OS.
    November 10th, 2009
    I took my computer to the local Apple technical support, the "Omni Informatica", in Curitiba, PR, Brazil, to format the HD and reinstall the Snow Leopard. As I needed more space, I also changed my original 160Gb HD for a new 250Gb Western Digital HD. The service was finished in Nov 17th.
    I noticed also little cracks in the laptop case, but I had no time to insist with the bad local technical support to repair it (I know Apple already acknowledged this problem.) They said, at first, that they would have to ask the Apple USA to send the body, or something like that.
    (Pictures:http://picasaweb.google.com/gstorck/MacbookProblems#5476986477312032226)
    January 12th, 2010.
    SCREEN CRACKED
    The reinstallation was ok, and the laptop was running well. Suddenly, when I take the Macbook from the case and open it on my desk, something pretty wrong appears: a large crack on the lower right corner of the screen.
    It was not dropped, it was not crashed, and I did not "close it with a pen inside".
    The screen simply cracked. And as so many similar problems with another users I could easily find on the web, I really expect Apple to admit it as a Manufacture's fault. The local technical support said it is no other thing except I hit the laptop, or dropped it, so it's all my fault. (See Picture 3)
    The only thing they can offer me is to repair the screen for R$1200. I am definitely not going to pay for this; a "normal" and good pc laptop costs this price (And a new basic macbook costs today R$2400).
    If the problems were just it, it would be not so bad.
    (Pictures: http://picasaweb.google.com/gstorck/MacbookProblems#5476986361400585122)
    February 11th, 2010
    HD FAILURE
    After 1 month, on Feb 11th, my new 250Gb HD simply stopped working. Different from the first time, that the HD was just corrupted, this time it has really broken, it died. I had it all backed up, but I have lost the HD.
    Back again to the technical assistance, they said to me the problem was the same that cracked my screen: my fault, on letting the laptop fall, or hitting it with some kind of pressure. They couldn't do anything, and even the Western Digital 3-month Warranty would not cover this type of problem ("user's misuse").
    May 28th, 2010
    DECREASE IN PERFORMANCE
    I'm working again with the original 160Gb HD (formatted and reinstalled), and some other external drives to store my files.
    It's been quite difficult to deal with all this Data and Screen problems, and now the Macbook's performance is decreasing every day. It's been slower to process operations and to launch the applications. Sometimes, the system does not even sleep anymore when the laptop is closed, or it takes so long time to sleep that it just sleeps when I open it again. Besides, sometimes the mouse pointer disappear, and some bizarre graphics take its place.
    Don't forget: It's a 1,5-year-old Macbook, with 2.4GHz, 4Gb RAM and the O.S. is installed for no longer than 4 months. It is supposed to work better, I guess.
    I saved a lot of money to buy a good computer, and to get rid of the endless issues I had with PCs. That issues never were so serious with the ones I face now with Macbook.
    Even if I pay R$1200 to replace the screen, with the money I don't have, I would still stand these performance issues, which seem to have come with this problematical laptop. I hope to have some solution from Apple, if it want to deliver what it promises and want to keep a customer.
    Otherwise, I will have to change to another system platform and another computer manufacturer, to see if I stop throwing money away with these devices. I think that maybe at least, the cost-benefit ratio will be higher.
    Did anybody receive contact from Apple support about these screen problems?
    Guilherme R. Storck
    Apple user since 2008
    <Edited By Host>
    gstorck (at) gmail (dot) com

    Well, your first issue is pretty clearly just some bad RAM, and it sounds like even the replacement RAM was bad. Who knows if the people who put it in had any kind of clue what they were doing. I've seen repair shops where people are smoking in the same room they do repairs.
    Second problem sounds typical of a failing HDD. It's a fairly common problem with laptops... Apple, Dell, Lenovo, HP, Acer... Probably the single most common problem with laptops no matter who makes them. People get this notion in their heads that the "portable" aspect of laptops means you can pick them up and carry them all over while turned on. Which you can... If you don't mind dramatically shortening the life of the HDD. What "portable" REALLY means with laptops, is that they are easy to move if you put them into a powered down state. They should NEVER be moved around when in normal operation. And since you seem to do a bit of traveling, if you're on a plan, and there's turbulence, you should shut the laptop off until it smooths out.
    The screen cracking could have something to do with the rather sudden change in climate. Germany isn't exactly the frozen tundra, but it is a pretty different climate from Brazil, and changes in things like humidity could cause problems. The laws of thermodynamics tell us that things expand as they heat up, so if there's already a crack somewhere, it could easily get worse as a result of increased heat.
    And since your initial hard drive was already starting to fail, it hasn't magically stopped failing since being removed from the system, so obviously performance is going to get worse.
    At this point, it's pretty much impossible to tell where the damage was done, so you're probably just out of luck. The people in Germany could have screwed something up, or the people in Brazil, it could have been environmental damage, and it's possible the defect was always there, it just didn't manifest until recently. There's just no way to tell for sure. So Apple is unlikely to do anything for you.

  • Screen redraw issues after update to 10.7.4

    Anyone else seeing screen redraw issues since updating to 10.7.4? Suddenly, the zoom tool stops working or causes visual errors.

    thank you FFS48, it really helped and might work fine as temporary solution. I was about to restore my OS from backup to 10.7.3 version... as booting from it made no errors. The latest 10.7.4 update filled my log filles with different error messages like:
    2012-05-10 23:53:17,000 kernel: SMC::smcReadKeyAction ERROR PC2C kSMCBadArgumentError(0x89) fKeyHashTable=0x0xffffff8030d4f000
    2012-05-10 23:53:17,000 kernel: SMC::smcReadKeyAction ERROR PD0R kSMCBadArgumentError(0x89) fKeyHashTable=0x0xffffff8030d4f000
    2012-05-10 23:53:17,000 kernel: SMC::smcReadKeyAction ERROR PN1R kSMCBadArgumentError(0x89) fKeyHashTable=0x0xffffff8030d4f000
    2012-05-10 23:53:17,000 kernel: SMC::smcReadKeyAction ERROR PG0C kSMCBadArgumentError(0x89) fKeyHashTable=0x0xffffff8030d4f000
    which might be caused by iStatMenus as these log entries are allways next to iStat log entries.
    I often need to access my Mac Pro using Back to my Mac from my MBP. Do you know will it still be possible having WiFi on MacPro off?
    It is strange, that the latest update delivered more visible problems than benefits....
    What I tried to solve the problem and that did not work:
    - Disable WiFi sync on iTunes (after reading some forums discussing similar problem)
    - Uninstalled Xcode (as some forums suggested)
    It is some how related to WiFi and iOS devices that sync to that computer. Switching these iOS devices off - removes the problem, and I believe it should be reported to Apple.
    Is there any URL to Apple bug submit form?

  • 5S Screen Redraw/Refresh Issues iOS 8 & 8.0.2

    Anyone experiencing partial/incomplete screen redraws, with bottom half of screen as just blank?
    Since updating to iOS 8 and subsequently to iOS 8.0.2 on iPhone 5S, I been getting frequent incomplete screen refreshing/redrawing where I end up bottom 1/2 of screen is blank. Only occurs in normal (portrait) orientation. It occurs in both Apple apps and miscellaneous 3rd party apps. When using Mobile Safari, rotating phone orientation sometimes causes a refresh that will fill screen with missing 1/2 of page, sometimes it does NOT work and manually tapping URL refresh icon is required and sometimes more than once. As far other apps it is hit or miss as to encountering the incomplete screen draw and very random as to what will trigger an effective refresh to get the entire screen to redraw to completion - sometimes rotating phone orientation, sometimes backing out of screen or app all the way.
    Upon experiencing this behavior after the iOS 8 upgrade, I did a hard reset of phone and set up as new, but the problem was still there. Upon upgrading to 8.0.2 and discovering the issue existed, soft reset and then hard reset phone to no avail either time.

    Hi SeekerJ,
    If you are still having persistent display issues after a hard reset, you may want to make sure you have a current backup of your data in iTunes, then try restoring your iPhone to factory settings and testing it in that default condition to see if the issues persist before restoring your data. You may find the following article helpful:
    Use iTunes to restore your iOS device to factory settings
    Regards,
    - Brenden

  • Screen redraw / video card issue intel iMac

    i've been having a screen redraw issue with an old-ish white intel core duo (not core 2 duo) iMac.
    the screen will periodically show what i like to call screen dirt, and some of it is persistant.
    i'm hoping it's something that doesn't require a visit to the apple store, as this machine is out of warranty...but it seems like it may.
    perhaps someone out there has had a similar issue and can ofer some insight.
    thanks.

  • Performance issue on swing application

    Hi,
    I have one swing application and i am facing one performance issue after minimizing the applicaton. The same application is taking 2-5 seconds to redraw the screen again when i am trying to maximize it. Is there any way to improve this redraw delay ?..Is there any way to tweak the Event Dispatcher thread and by this we can overcome correct me if i am wrong? .
    Is there anybody facing such kind of issue please help me...
    Thanks in Advance,
    Anish.

    Encephalopathic wrote:
    good guess. What do you think? Loading the images in the painting methods?That is a common mistake. To the OP, some common errors when overriding paintComponent include:
    1. Loading an image each time paintComponent() is called. Just load it once, cache it, and only draw it in paintComponent, this saves you from the IO of loading the image on repaints.
    2. Doing application logic/complex operations in paintComponent. paintComponent should be kept fast, only do painting operations, keep long-running tasks, IO, etc. out of it.
    3. To a lesser extent, doing lots of complex painting on a repaint call, maybe lots of transforms, translucency, xor-ing, whatever. For most common painting (at least in my work, YMMV), this isn't a problem, but if it is you should consider drawing all "static" stuff to a buffer (such as a BufferedImage) and just painting the BufferedImage, as opposed to drawing all the static stuff each paintComponent call.
    The idea is just to keep the painting logic as fast as possible, to avoid slow repaints as you're seeing. Sometimes people don't realize that paintComponent() will be called every time your component needs to be even partially repainted (minimized/maximized window, partially hidden by another window then revealed again, stretched by window resizing, etc.). That's why things like IO are out of the question.
    Of course, I'm babbling now. This may not even be your problem, or you may already know all this stuff. If so, just ignore this post!

  • Performance Issue in a ABAP Report

    Hi All,
    I am facing a big performance issue in a abap program which produce the cash flow details our group of company. This is the logic I used to develop the report. (It is a SAP Script)
    - First I am getting the closed customer payment records from the table BSAD ( eg: - Type 'DZ')
    - Then I am getting the correcponding invoices from the BSAD using the same BELNR ( eg :- Type <> 'DZ')
    - Then checking the GL Entry (BSIS) for the correspongding records which select in the second stage.
    - In a Z tabel I am keeping the account list by grouping   seperate section ( Eg: - Customer recipts, fixed assets...etc).
    I have done the same thing to get the open Item balances also.
    Report is correct and running perfectly, but my issue is it's takeing long time to process. Because of this I made this report to run as a background job. But still it is taking such a long time. ( For Eg: - If 1000 records selected from the first stage, it will take about more than onr hour to process, which is not good enough to run in a live environment)
    Pls advice me how to improve the preformance of this.

    Hi Ravi,
    I am sorry I had problem in my internet connection yesterday, because of that i couldn't reply u. Here is my code. I don't is there any way to send the code as a attachement since it is a little bit big one. I am going to paste that here any way.
    Here zcashflow_matrix is the "Z" table where I am going to keep my account details by grouping.
    REPORT ZCASH_FLOW.
    INCLUDE <%_LIST>.
    *       Author             Thanura .......                            *
    TYPES   :BEGIN OF ty_voucher1,
              kunnr LIKE bseg-kunnr,
              dmbtr LIKE bseg-dmbtr,
              belnr LIKE bseg-belnr,
              hkont LIKE bseg-hkont,
              shkzg LIKE bseg-shkzg,
              xblnr LIKE bsad-xblnr,
              budat LIKE bsad-bldat,
              blart LIKE bsad-blart,
              bldat LIKE bsad-bldat,
              lifnr LIKE bseg-lifnr,
              END OF ty_voucher1.
    DATA     :it_voucher1 TYPE STANDARD TABLE OF ty_voucher1 ,
               wa_voucher1 TYPE ty_voucher1.
    DATA    : it_voucher2 TYPE STANDARD TABLE OF ty_voucher1,
               wa_voucher2 TYPE ty_voucher1.
    DATA    : it_voucher3 TYPE STANDARD TABLE OF ty_voucher1,
               wa_voucher3 TYPE ty_voucher1.
    Data : w_ITCPO type ITCPO.
    Data : w_ITCPP type ITCPP.
    DATA : w_Rcptamt LIKE bseg-dmbtr,
            w_Netamt LIKE bseg-dmbtr,
            w_IntIncomeAmt LIKE bseg-dmbtr,
            w_IntIncome LIKE bseg-dmbtr,
            w_FixedAmt LIKE bseg-dmbtr,
            w_fixedasst LIKE bseg-dmbtr,
            w_Sundry LIKE bseg-dmbtr,
            w_SundryAmt LIKE bseg-dmbtr,
            w_SuppayAmt LIKE bseg-dmbtr,
            w_Suppay LIKE bseg-dmbtr,
            w_SuppayAmt1 LIKE bseg-dmbtr,
            w_Suppay1 LIKE bseg-dmbtr,
            w_DutyAmt LIKE bseg-dmbtr,
            w_Duty LIKE bseg-dmbtr,
            w_SalaryAmt LIKE bseg-dmbtr,
            w_Salary LIKE bseg-dmbtr,
            w_TaxAmt LIKE bseg-dmbtr,
            w_Tax LIKE bseg-dmbtr,
            w_TaxAmt1 LIKE bseg-dmbtr,
            w_Tax1 LIKE bseg-dmbtr,
            w_SellAmt LIKE bseg-dmbtr,
            w_Sell LIKE bseg-dmbtr,
            w_AdminAmt LIKE bseg-dmbtr,
            w_Admin LIKE bseg-dmbtr,
            w_loanAmt LIKE bseg-dmbtr,
            w_loan LIKE bseg-dmbtr,
            w_ManAmt LIKE bseg-dmbtr,
            w_Man LIKE bseg-dmbtr,
            w_CapitalAmt LIKE bseg-dmbtr,
            w_Capital LIKE bseg-dmbtr,
            w_GroupAmt LIKE bseg-dmbtr,
            w_Group LIKE bseg-dmbtr,
            w_IntAmt LIKE bseg-dmbtr,
            w_Int LIKE bseg-dmbtr,
            w_InterAmt LIKE bseg-dmbtr,
            w_Inter LIKE bseg-dmbtr,
            w_AdPayAmt LIKE bseg-dmbtr,
            w_AdPay LIKE bseg-dmbtr,
            w_GTotal LIKE bseg-dmbtr,
            W_COMPANYNAME like zcompany-copmname.
    DATA : w_ORcptamt LIKE bseg-dmbtr,
            w_ONetamt LIKE bseg-dmbtr,
            w_OIntIncomeAmt LIKE bseg-dmbtr,
            w_OIntIncome LIKE bseg-dmbtr,
            w_OFixedAmt LIKE bseg-dmbtr,
            w_Ofixedasst LIKE bseg-dmbtr,
            w_OSundry LIKE bseg-dmbtr,
            w_OSundryAmt LIKE bseg-dmbtr,
            w_OSuppayAmt LIKE bseg-dmbtr,
            w_OSuppay LIKE bseg-dmbtr,
            w_OSuppayAmt1 LIKE bseg-dmbtr,
            w_OSuppay1 LIKE bseg-dmbtr,
            w_ODutyAmt LIKE bseg-dmbtr,
            w_ODuty LIKE bseg-dmbtr,
            w_OSalaryAmt LIKE bseg-dmbtr,
            w_OSalary LIKE bseg-dmbtr,
            w_OTaxAmt LIKE bseg-dmbtr,
            w_OTax LIKE bseg-dmbtr,
            w_OTaxAmt1 LIKE bseg-dmbtr,
            w_OTax1 LIKE bseg-dmbtr,
            w_OSellAmt LIKE bseg-dmbtr,
            w_OSell LIKE bseg-dmbtr,
            w_OAdminAmt LIKE bseg-dmbtr,
            w_OAdmin LIKE bseg-dmbtr,
            w_OloanAmt LIKE bseg-dmbtr,
            w_Oloan LIKE bseg-dmbtr,
            w_OManAmt LIKE bseg-dmbtr,
            w_OMan LIKE bseg-dmbtr,
            w_OCapitalAmt LIKE bseg-dmbtr,
            w_OCapital LIKE bseg-dmbtr,
            w_OGroupAmt LIKE bseg-dmbtr,
            w_OGroup LIKE bseg-dmbtr,
            w_OIntAmt LIKE bseg-dmbtr,
            w_OInt LIKE bseg-dmbtr,
            w_OInterAmt LIKE bseg-dmbtr,
            w_OInter LIKE bseg-dmbtr,
            w_OAdPayAmt LIKE bseg-dmbtr,
            w_OAdPay LIKE bseg-dmbtr.
    DATA : w_NNetamt LIKE bseg-dmbtr,
            w_NIntIncome LIKE bseg-dmbtr,
            w_Nfixedasst LIKE bseg-dmbtr,
            w_NSundry LIKE bseg-dmbtr,
            w_NSuppay LIKE bseg-dmbtr,
            w_NSuppay1 LIKE bseg-dmbtr,
            w_NDuty LIKE bseg-dmbtr,
            w_NSalary LIKE bseg-dmbtr,
            w_NTax LIKE bseg-dmbtr,
            w_NTax1 LIKE bseg-dmbtr,
            w_NSell LIKE bseg-dmbtr,
            w_NAdmin LIKE bseg-dmbtr,
            w_Nloan LIKE bseg-dmbtr,
            w_NMan LIKE bseg-dmbtr,
            w_NCapital LIKE bseg-dmbtr,
            w_NGroup LIKE bseg-dmbtr,
            w_NInt LIKE bseg-dmbtr,
            w_NInter LIKE bseg-dmbtr,
            w_NAdPay LIKE bseg-dmbtr.
    RANGES : r_bwart FOR  bsad-blart.
    TABLES: bsad.
    *       Internal tables          Begin with IT_                       *
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS:      p_bukrs LIKE bsad-bukrs OBLIGATORY.
    SELECT-OPTIONS:  s_bldat FOR  bsad-bldat OBLIGATORY.
    * SELECT-OPTIONS:   s_hkont FOR bsad-hkont .
    PARAMETERS:      p_gjahr LIKE bkpf-gjahr OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK b1 .
    * PARAMETERS : w_local   TYPE char1 RADIOBUTTON GROUP g1 DEFAULT 'X'. .
    * PARAMETERS : w_curr  TYPE char1 RADIOBUTTON GROUP g1 .
    w_ITCPO-TDNEWID = 'X'.
    *w_itcpo-tdgetotf   = 'X'.
    *opern form
       CALL FUNCTION 'OPEN_FORM'
        EXPORTING
    *        APPLICATION                       = 'TX'
    *        ARCHIVE_INDEX                     =
    *        ARCHIVE_PARAMS                    =
    *         DEVICE                            = 'PRINTER'
    *        DIALOG                            = ' '
          form                                 = 'ZCASHFLOW_FORM1'
    *        LANGUAGE                          = SY-LANGU
             OPTIONS                           = w_ITCPO
    *        MAIL_SENDER                       =
    *        MAIL_RECIPIENT                    =
    *        MAIL_APPL_OBJECT                  =
    *        RAW_DATA_INTERFACE                = '*'
    *        SPONUMIV                          =
    *      IMPORTING
    *        LANGUAGE                          =
    *        NEW_ARCHIVE_PARAMS                =
    *        RESULT                            =
    *      EXCEPTIONS
    *        CANCELED                          = 1
    *        DEVICE                            = 2
    *        FORM                              = 3
    *        OPTIONS                           = 4
    *        UNCLOSED                          = 5
    *        MAIL_OPTIONS                      = 6
    *        ARCHIVE_ERROR                     = 7
    *        INVALID_FAX_NUMBER                = 8
    *        MORE_PARAMS_NEEDED_IN_BATCH       = 9
    *        SPOOL_ERROR                       = 10
    *        CODEPAGE                          = 11
    *        OTHERS                            = 12
       IF sy-subrc <> 0.
    *   message id sy-msgid type sy-msgty number sy-msgno
    *           with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
       ENDIF.
    PERFORM select_data_closed.
    PERFORM select_data_open.
    * calculate the net figures
    w_NNetamt = w_Netamt + w_ONetamt.
    w_NIntIncome = w_IntIncome + w_OIntIncome.
    *w_NInCompRct = w_InCompRct + w_OInCompRct.
    w_NfixedAsst = w_fixedAsst + w_OfixedAsst.
    w_NSundry = w_Sundry + w_OSundry.
    w_NSuppay = w_Suppay + w_OSuppay.
    w_NSuppay1 = w_Suppay1 + w_OSuppay1.
    w_NDuty = w_Duty + w_ODuty.
    w_NSalary = w_Salary + w_OSalary.
    w_NTax = w_Tax + w_OTax.
    w_NTax1 = w_Tax1 + w_OTax1.
    w_NSell = w_Sell + w_OSell.
    w_NAdmin = w_Admin + w_OAdmin.
    w_NCapital = w_Capital + w_OCapital.
    w_Nloan = w_loan + w_Oloan.
    w_NMan = w_Man + w_OMan.
    w_NGroup = w_Group + w_OGroup.
    w_NInt = w_Int + w_OInt.
    w_NInter = w_Inter + w_OInter.
    w_NAdPay = w_AdPay + w_OAdPay.
    w_GTotal = ( w_NNetamt + w_NIntIncome + w_NfixedAsst + w_NSundry ) - (
    w_NSuppay + w_NSuppay1 + w_NDuty + w_NSalary + w_NTax + w_NTax1 +
    w_NSell + w_NAdmin + w_NCapital + w_Nloan + w_NMan + w_NGroup + w_NInt +
    w_NInter + w_NAdPay ).
    * Write the Main Account Balance
         CALL FUNCTION 'WRITE_FORM'
           EXPORTING
             element  = 'MAIN'
             function = 'SET'
             type     = 'BODY'
             window   = 'MAIN'.
         IF sy-subrc <> 0.
    **   message id sy-msgid type sy-msgty number sy-msgno
    **           with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
         ENDIF.
    w_ITCPP-TDNEWID = 'X'.
       CALL FUNCTION 'CLOSE_FORM'
          IMPORTING
             RESULT                         = w_ITCPP
    *        RDI_RESULT                     =
    *      TABLES
    *        OTFDATA                        =
    *      EXCEPTIONS
    *        UNOPENED                       = 1
    *        BAD_PAGEFORMAT_FOR_PRINT       = 2
    *        SEND_ERROR                     = 3
    *        SPOOL_ERROR                    = 4
    *        CODEPAGE                       = 5
    *        OTHERS                         = 6
       IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *           WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
       ENDIF.
    FORM select_data_closed.
       SELECT SINGLE copmname INTO w_companyname
          FROM zcompany
           WHERE  copcode = p_bukrs.
    * Select the receipts
       SELECT SUM( dmbtr ) AS dmbtr belnr kunnr hkont shkzg xblnr budat
    blart bldat
       INTO CORRESPONDING FIELDS OF TABLE it_voucher3
       FROM  bsad
       WHERE   bukrs = p_bukrs AND gjahr = p_gjahr
               AND augdt IN s_bldat
               AND blart = 'DZ'
    *            AND blart = 'DZ' and shkzg = 'S'
               GROUP BY kunnr belnr hkont shkzg xblnr budat blart bldat.
       SORT it_voucher3 BY kunnr.
       LOOP AT it_voucher3 INTO wa_voucher3.
    * Select the invoices
         SELECT SUM( dmbtr ) AS dmbtr belnr kunnr hkont shkzg xblnr budat
    blart bldat
         INTO CORRESPONDING FIELDS OF TABLE it_voucher1
         FROM  bsad
         WHERE   bukrs = p_bukrs AND gjahr = p_gjahr
                 AND augdt IN s_bldat
                 AND blart <> 'DZ' AND
                 augbl = wa_voucher3-belnr AND
                 kunnr = wa_voucher3-kunnr
                 GROUP BY belnr kunnr hkont shkzg xblnr budat blart bldat.
         LOOP AT it_voucher1 INTO wa_voucher1.
    *  Find the corresponding entry in the GL open
          SELECT SINGLE dmbtr FROM bsis INTO w_Rcptamt WHERE
    *           hkont = '0010003900' AND
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'XX001' ) AND  bukrs = p_bukrs  AND
                   gjahr = p_gjahr  AND
                   belnr = wa_voucher1-belnr.
           IF sy-subrc <> 0.
    * If the corresponding entry not found in GL open, look in the GL Closed
          SELECT SINGLE dmbtr FROM bsas INTO  w_Rcptamt  WHERE
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'XX001' ) AND bukrs = p_bukrs  AND
                  gjahr = p_gjahr  AND
                  belnr = wa_voucher1-belnr.
                IF sy-subrc = 0.
                  w_Netamt = w_Netamt + w_Rcptamt.
                  continue.
                ENDIF.
           ELSE.
                 w_Netamt = w_Netamt + w_Rcptamt.
                 continue.
           ENDIF.
    * Interest Income
          SELECT SINGLE dmbtr FROM bsis INTO w_IntIncomeAmt WHERE
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'XX002' ) AND  bukrs = p_bukrs  AND
                   gjahr = p_gjahr  AND
                   belnr = wa_voucher1-belnr.
           IF sy-subrc <> 0.
    * If the corresponding entry not found in GL open, look in the GL Closed
          SELECT SINGLE dmbtr FROM bsas INTO  w_IntIncomeAmt  WHERE
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'XX002' ) AND bukrs = p_bukrs  AND
                  gjahr = p_gjahr  AND
                  belnr = wa_voucher1-belnr.
                IF sy-subrc = 0.
                  w_IntIncome = w_IntIncome + w_IntIncomeAmt.
                  continue.
                ENDIF.
           ELSE.
                 w_IntIncome = w_IntIncome + w_IntIncomeAmt.
                 continue.
           ENDIF.
    * Sale Of fixed Assets
          SELECT SINGLE dmbtr FROM bsis INTO w_FixedAmt WHERE
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'XX004' ) AND  bukrs = p_bukrs  AND
                   gjahr = p_gjahr  AND
                   belnr = wa_voucher1-belnr.
           IF sy-subrc <> 0.
    * If the corresponding entry not found in GL open, look in the GL Closed
          SELECT SINGLE dmbtr FROM bsas INTO  w_FixedAmt  WHERE
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'XX004' ) AND bukrs = p_bukrs  AND
                  gjahr = p_gjahr  AND
                  belnr = wa_voucher1-belnr.
                IF sy-subrc = 0.
                  w_fixedasst = w_fixedasst + w_FixedAmt.
                  continue.
                ENDIF.
           ELSE.
                 w_fixedasst = w_fixedasst + w_FixedAmt.
                 continue.
           ENDIF.
    * Gl Receipts ( Sundry Income)
          SELECT SINGLE dmbtr FROM bsis INTO w_SundryAmt WHERE
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'XX005' ) AND  bukrs = p_bukrs  AND
                   gjahr = p_gjahr  AND
                   belnr = wa_voucher1-belnr.
           IF sy-subrc <> 0.
    * If the corresponding entry not found in GL open, look in the GL Closed
          SELECT SINGLE dmbtr FROM bsas INTO  w_SundryAmt  WHERE
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'XX005' ) AND bukrs = p_bukrs  AND
                  gjahr = p_gjahr  AND
                  belnr = wa_voucher1-belnr.
                IF sy-subrc = 0.
                  w_Sundry = w_Sundry + w_SundryAmt.
                                continue.
                ENDIF.
           ELSE.
                 w_Sundry = w_Sundry + w_SundryAmt.
                              continue.
           ENDIF.
         ENDLOOP.
       ENDLOOP.
    *Out Flow
    r_bwart-sign = 'I'. r_bwart-option = 'EQ'. r_bwart-low = 'KZ'.
    APPEND r_bwart TO r_bwart.
    r_bwart-sign = 'I'. r_bwart-option = 'EQ'. r_bwart-low = 'VZ'.
    APPEND r_bwart TO r_bwart.
       SELECT SUM( dmbtr ) AS dmbtr belnr lifnr hkont shkzg xblnr budat
    blart bldat
       INTO CORRESPONDING FIELDS OF TABLE it_voucher3
       FROM  bsak
       WHERE   bukrs = p_bukrs AND gjahr = p_gjahr
               AND augdt IN s_bldat
               AND blart IN  r_bwart
    *            AND blart = 'DZ' and shkzg = 'S'
               GROUP BY lifnr belnr hkont shkzg xblnr budat blart bldat.
       SORT it_voucher3 BY lifnr.
       LOOP AT it_voucher3 INTO wa_voucher3.
    * Select the invoices
         SELECT SUM( dmbtr ) AS dmbtr belnr lifnr hkont shkzg xblnr budat
    blart bldat
         INTO CORRESPONDING FIELDS OF TABLE it_voucher1
         FROM  bsak
         WHERE   bukrs = p_bukrs AND gjahr = p_gjahr
                 AND augdt IN s_bldat
                 AND blart NOT IN r_bwart AND
                 augbl = wa_voucher3-belnr AND
                 lifnr = wa_voucher3-lifnr
                 GROUP BY belnr lifnr hkont shkzg xblnr budat blart bldat.
         LOOP AT it_voucher1 INTO wa_voucher1.
    * Supplier Payments  (LOCAL)
    *  Find the corresponding entry in the GL open
          SELECT SINGLE dmbtr FROM bsis INTO w_SupPayAmt WHERE
    *           hkont = '0010003900' AND
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'YY001' ) AND  bukrs = p_bukrs  AND
                   gjahr = p_gjahr  AND
                   belnr = wa_voucher1-belnr.
           IF sy-subrc <> 0.
    * If the corresponding entry not found in GL open, look in the GL Closed
          SELECT SINGLE dmbtr FROM bsas INTO  w_SupPayAmt  WHERE
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'YY001' ) AND bukrs = p_bukrs  AND
                  gjahr = p_gjahr  AND
                  belnr = wa_voucher1-belnr.
                IF sy-subrc = 0.
                  w_SupPay = w_SupPay + w_SupPayAmt.
                                continue.
                ENDIF.
           ELSE.
                 w_SupPay = w_SupPay + w_SupPayAmt.
                              continue.
           ENDIF.
    * supplier Payments  (Foreign )
    *  Find the corresponding entry in the GL open
          SELECT SINGLE dmbtr FROM bsis INTO w_SupPayAmt1 WHERE
    *           hkont = '0010003900' AND
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'YY002' ) AND  bukrs = p_bukrs  AND
                   gjahr = p_gjahr  AND
                   belnr = wa_voucher1-belnr.
           IF sy-subrc <> 0.
    * If the corresponding entry not found in GL open, look in the GL Closed
          SELECT SINGLE dmbtr FROM bsas INTO  w_SupPayAmt1  WHERE
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'YY002' ) AND bukrs = p_bukrs  AND
                  gjahr = p_gjahr  AND
                  belnr = wa_voucher1-belnr.
                IF sy-subrc = 0.
                  w_SupPay1 = w_SupPay1 + w_SupPayAmt1.
                  continue.
                ENDIF.
           ELSE.
                 w_SupPay1 = w_SupPay1 + w_SupPayAmt1.
                  continue.
           ENDIF.
    * duty/clearing expenses
    *  Find the corresponding entry in the GL open
          SELECT SINGLE dmbtr FROM bsis INTO w_DutyAmt WHERE
    *           hkont = '0010003900' AND
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'YY003' ) AND  bukrs = p_bukrs  AND
                   gjahr = p_gjahr  AND
                   belnr = wa_voucher1-belnr.
           IF sy-subrc <> 0.
    * If the corresponding entry not found in GL open, look in the GL Closed
          SELECT SINGLE dmbtr FROM bsas INTO  w_DutyAmt  WHERE
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'YY003' ) AND bukrs = p_bukrs  AND
                  gjahr = p_gjahr  AND
                  belnr = wa_voucher1-belnr.
                IF sy-subrc = 0.
                  w_Duty = w_Duty + w_DutyAmt.
                  continue.
                ENDIF.
           ELSE.
                 w_Duty = w_Duty + w_DutyAmt.
                  continue.
           ENDIF.
    * Salary /EPF/ETF/MSPS/OVERTIME
    *  Find the corresponding entry in the GL open
          SELECT SINGLE dmbtr FROM bsis INTO w_SalaryAmt WHERE
    *           hkont = '0010003900' AND
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'YY004' ) AND  bukrs = p_bukrs  AND
                   gjahr = p_gjahr  AND
                   belnr = wa_voucher1-belnr.
           IF sy-subrc <> 0.
    * If the corresponding entry not found in GL open, look in the GL Closed
          SELECT SINGLE dmbtr FROM bsas INTO  w_SalaryAmt  WHERE
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'YY004' ) AND bukrs = p_bukrs  AND
                  gjahr = p_gjahr  AND
                  belnr = wa_voucher1-belnr.
                IF sy-subrc = 0.
                  w_Salary = w_Salary + w_SalaryAmt.
                  continue.
                ENDIF.
           ELSE.
                 w_Salary = w_Salary + w_SalaryAmt.
                  continue.
           ENDIF.
    * Income Taxes
    *  Find the corresponding entry in the GL open
          SELECT SINGLE dmbtr FROM bsis INTO w_TaxAmt WHERE
    *           hkont = '0010003900' AND
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'YY005' ) AND  bukrs = p_bukrs  AND
                   gjahr = p_gjahr  AND
                   belnr = wa_voucher1-belnr.
           IF sy-subrc <> 0.
    * If the corresponding entry not found in GL open, look in the GL Closed
          SELECT SINGLE dmbtr FROM bsas INTO  w_TaxAmt  WHERE
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'YY005' ) AND bukrs = p_bukrs  AND
                  gjahr = p_gjahr  AND
                  belnr = wa_voucher1-belnr.
                IF sy-subrc = 0.
                  w_Tax = w_Tax + w_TaxAmt.
                  continue.
                ENDIF.
           ELSE.
                 w_Tax = w_Tax + w_TaxAmt.
                  continue.
           ENDIF.
    * other taxes ( VAT: TT:Debit tax )
    *  Find the corresponding entry in the GL open
          SELECT SINGLE dmbtr FROM bsis INTO w_TaxAmt1 WHERE
    *           hkont = '0010003900' AND
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'YY006' ) AND  bukrs = p_bukrs  AND
                   gjahr = p_gjahr  AND
                   belnr = wa_voucher1-belnr.
           IF sy-subrc <> 0.
    * If the corresponding entry not found in GL open, look in the GL Closed
          SELECT SINGLE dmbtr FROM bsas INTO  w_TaxAmt1  WHERE
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'YY006' ) AND bukrs = p_bukrs  AND
                  gjahr = p_gjahr  AND
                  belnr = wa_voucher1-belnr.
                IF sy-subrc = 0.
                  w_Tax1 = w_Tax1 + w_TaxAmt1.
                  continue.
                ENDIF.
           ELSE.
                 w_Tax1 = w_Tax1 + w_TaxAmt1.
                  continue.
           ENDIF.
    * Selling  & Promotional Costs
    *  Find the corresponding entry in the GL open
          SELECT SINGLE dmbtr FROM bsis INTO w_SellAmt WHERE
    *           hkont = '0010003900' AND
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'YY007' ) AND  bukrs = p_bukrs  AND
                   gjahr = p_gjahr  AND
                   belnr = wa_voucher1-belnr.
           IF sy-subrc <> 0.
    * If the corresponding entry not found in GL open, look in the GL Closed
          SELECT SINGLE dmbtr FROM bsas INTO  w_SellAmt  WHERE
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'YY007' ) AND bukrs = p_bukrs  AND
                  gjahr = p_gjahr  AND
                  belnr = wa_voucher1-belnr.
                IF sy-subrc = 0.
                  w_Sell = w_Sell + w_SellAmt.
                  continue.
                ENDIF.
           ELSE.
                 w_Sell = w_Sell + w_SellAmt.
                  continue.
           ENDIF.
    * Admistration costs
    *  Find the corresponding entry in the GL open
          SELECT SINGLE dmbtr FROM bsis INTO w_AdminAmt WHERE
    *           hkont = '0010003900' AND
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'YY008' ) AND  bukrs = p_bukrs  AND
                   gjahr = p_gjahr  AND
                   belnr = wa_voucher1-belnr.
           IF sy-subrc <> 0.
    * If the corresponding entry not found in GL open, look in the GL Closed
          SELECT SINGLE dmbtr FROM bsas INTO  w_AdminAmt  WHERE
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'YY008' ) AND bukrs = p_bukrs  AND
                  gjahr = p_gjahr  AND
                  belnr = wa_voucher1-belnr.
                IF sy-subrc = 0.
                  w_Admin = w_Admin + w_AdminAmt.
                  continue.
                ENDIF.
           ELSE.
                 w_Admin = w_Admin + w_AdminAmt.
                  continue.
           ENDIF.
    * Capital Expenditure
    *  Find the corresponding entry in the GL open
          SELECT SINGLE dmbtr FROM bsis INTO w_CapitalAmt WHERE
    *           hkont = '0010003900' AND
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'YY009' ) AND  bukrs = p_bukrs  AND
                   gjahr = p_gjahr  AND
                   belnr = wa_voucher1-belnr.
           IF sy-subrc <> 0.
    * If the corresponding entry not found in GL open, look in the GL Closed
          SELECT SINGLE dmbtr FROM bsas INTO  w_CapitalAmt  WHERE
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'YY009' ) AND bukrs = p_bukrs  AND
                  gjahr = p_gjahr  AND
                  belnr = wa_voucher1-belnr.
                IF sy-subrc = 0.
                  w_Capital = w_Capital + w_CapitalAmt.
                  continue.
                ENDIF.
           ELSE.
                 w_Capital = w_Capital + w_CapitalAmt.
                  continue.
           ENDIF.
    * Loan repayments
    *  Find the corresponding entry in the GL open
          SELECT SINGLE dmbtr FROM bsis INTO w_LoanAmt WHERE
    *           hkont = '0010003900' AND
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'YY010' ) AND  bukrs = p_bukrs  AND
                   gjahr = p_gjahr  AND
                   belnr = wa_voucher1-belnr.
           IF sy-subrc <> 0.
    * If the corresponding entry not found in GL open, look in the GL Closed
          SELECT SINGLE dmbtr FROM bsas INTO  w_LoanAmt  WHERE
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'YY010' ) AND bukrs = p_bukrs  AND
                  gjahr = p_gjahr  AND
                  belnr = wa_voucher1-belnr.
                IF sy-subrc = 0.
                  w_Loan = w_Loan + w_LoanAmt.
                  continue.
                ENDIF.
           ELSE.
                 w_Loan = w_Loan + w_LoanAmt.
                  continue.
           ENDIF.
    * maangment fees
    *  Find the corresponding entry in the GL open
          SELECT SINGLE dmbtr FROM bsis INTO w_ManAmt WHERE
    *           hkont = '0010003900' AND
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'YY011' ) AND  bukrs = p_bukrs  AND
                   gjahr = p_gjahr  AND
                   belnr = wa_voucher1-belnr.
           IF sy-subrc <> 0.
    * If the corresponding entry not found in GL open, look in the GL Closed
          SELECT SINGLE dmbtr FROM bsas INTO  w_ManAmt  WHERE
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'YY011' ) AND bukrs = p_bukrs  AND
                  gjahr = p_gjahr  AND
                  belnr = wa_voucher1-belnr.
                IF sy-subrc = 0.
                  w_Man = w_Man + w_ManAmt.
                  continue.
                ENDIF.
           ELSE.
                 w_Man = w_Man + w_ManAmt.
                  continue.
           ENDIF.
    * Group charges
    *  Find the corresponding entry in the GL open
          SELECT SINGLE dmbtr FROM bsis INTO w_GroupAmt WHERE
    *           hkont = '0010003900' AND
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'YY012' ) AND  bukrs = p_bukrs  AND
                   gjahr = p_gjahr  AND
                   belnr = wa_voucher1-belnr.
           IF sy-subrc <> 0.
    * If the corresponding entry not found in GL open, look in the GL Closed
          SELECT SINGLE dmbtr FROM bsas INTO  w_GroupAmt  WHERE
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'YY012' ) AND bukrs = p_bukrs  AND
                  gjahr = p_gjahr  AND
                  belnr = wa_voucher1-belnr.
                IF sy-subrc = 0.
                  w_Group = w_Group + w_GroupAmt.
                  continue.
                ENDIF.
           ELSE.
                 w_Group = w_Group + w_GroupAmt.
                  continue.
           ENDIF.
    * Interest Payments
    *  Find the corresponding entry in the GL open
          SELECT SINGLE dmbtr FROM bsis INTO w_IntAmt WHERE
    *           hkont = '0010003900' AND
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'YY013' ) AND  bukrs = p_bukrs  AND
                   gjahr = p_gjahr  AND
                   belnr = wa_voucher1-belnr.
           IF sy-subrc <> 0.
    * If the corresponding entry not found in GL open, look in the GL Closed
          SELECT SINGLE dmbtr FROM bsas INTO  w_IntAmt  WHERE
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'YY013' ) AND bukrs = p_bukrs  AND
                  gjahr = p_gjahr  AND
                  belnr = wa_voucher1-belnr.
                IF sy-subrc = 0.
                  w_Int = w_Int + w_IntAmt.
                  continue.
                ENDIF.
           ELSE.
                 w_Int = w_Int + w_IntAmt.
                  continue.
           ENDIF.
    * Other Intercompany payments
    *  Find the corresponding entry in the GL open
          SELECT SINGLE dmbtr FROM bsis INTO w_InterAmt WHERE
    *           hkont = '0010003900' AND
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'YY014' ) AND  bukrs = p_bukrs  AND
                   gjahr = p_gjahr  AND
                   belnr = wa_voucher1-belnr.
           IF sy-subrc <> 0.
    * If the corresponding entry not found in GL open, look in the GL Closed
          SELECT SINGLE dmbtr FROM bsas INTO  w_InterAmt  WHERE
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'YY014' ) AND bukrs = p_bukrs  AND
                  gjahr = p_gjahr  AND
                  belnr = wa_voucher1-belnr.
                IF sy-subrc = 0.
                  w_Inter = w_Inter + w_InterAmt.
                  continue.
                ENDIF.
           ELSE.
                 w_Inter = w_Inter + w_InterAmt.
                  continue.
           ENDIF.
    * Advacnes/Prepayments
    *  Find the corresponding entry in the GL open
          SELECT SINGLE dmbtr FROM bsis INTO w_AdPayAmt WHERE
    *           hkont = '0010003900' AND
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'YY015' ) AND  bukrs = p_bukrs  AND
                   gjahr = p_gjahr  AND
                   belnr = wa_voucher1-belnr.
           IF sy-subrc <> 0.
    * If the corresponding entry not found in GL open, look in the GL Closed
          SELECT SINGLE dmbtr FROM bsas INTO  w_AdPayAmt  WHERE
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'YY015' ) AND bukrs = p_bukrs  AND
                  gjahr = p_gjahr  AND
                  belnr = wa_voucher1-belnr.
                IF sy-subrc = 0.
                  w_AdPay = w_AdPay + w_AdPayAmt.
                  continue.
                ENDIF.
           ELSE.
                 w_AdPay = w_AdPay + w_AdPayAmt.
                  continue.
           ENDIF.
         ENDLOOP.
       ENDLOOP.
    * Open Item Balances
    ENDFORM.                    " Select_Data
    FORM select_data_Open.
    *   SELECT SINGLE copmname INTO w_companyname
    *      FROM zcompany
    *       WHERE  copcode = p_bukrs.
    * Select the receipts
       SELECT SUM( dmbtr ) AS dmbtr belnr kunnr hkont shkzg xblnr budat
    blart bldat
       INTO CORRESPONDING FIELDS OF TABLE it_voucher3
       FROM  bsid
       WHERE   bukrs = p_bukrs AND gjahr = p_gjahr
               AND augdt IN s_bldat
               AND blart = 'DZ'
    *            AND blart = 'DZ' and shkzg = 'S'
               GROUP BY kunnr belnr hkont shkzg xblnr budat blart bldat.
       SORT it_voucher3 BY kunnr.
       LOOP AT it_voucher3 INTO wa_voucher3.
    * Select the invoices
         SELECT SUM( dmbtr ) AS dmbtr belnr kunnr hkont shkzg xblnr budat
    blart bldat
         INTO CORRESPONDING FIELDS OF TABLE it_voucher1
         FROM  bsid
         WHERE   bukrs = p_bukrs AND gjahr = p_gjahr
                 AND augdt IN s_bldat
                 AND blart <> 'DZ' AND
                 augbl = wa_voucher3-belnr AND
                 kunnr = wa_voucher3-kunnr
                 GROUP BY belnr kunnr hkont shkzg xblnr budat blart bldat.
         LOOP AT it_voucher1 INTO wa_voucher1.
    *  Find the corresponding entry in the GL open
          SELECT SINGLE dmbtr FROM bsis INTO w_ORcptamt WHERE
    *           hkont = '0010003900' AND
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'XX001' ) AND  bukrs = p_bukrs  AND
                   gjahr = p_gjahr  AND
                   belnr = wa_voucher1-belnr.
           IF sy-subrc <> 0.
    * If the corresponding entry not found in GL open, look in the GL Closed
          SELECT SINGLE dmbtr FROM bsas INTO  w_ORcptamt  WHERE
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'XX001' ) AND bukrs = p_bukrs  AND
                  gjahr = p_gjahr  AND
                  belnr = wa_voucher1-belnr.
                IF sy-subrc = 0.
                  w_ONetamt = w_ONetamt + w_ORcptamt.
                  continue.
                ENDIF.
           ELSE.
                 w_ONetamt = w_ONetamt + w_ORcptamt.
                  continue.
           ENDIF.
    * Interest Income
          SELECT SINGLE dmbtr FROM bsis INTO w_OIntIncomeAmt WHERE
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'XX002' ) AND  bukrs = p_bukrs  AND
                   gjahr = p_gjahr  AND
                   belnr = wa_voucher1-belnr.
           IF sy-subrc <> 0.
    * If the corresponding entry not found in GL open, look in the GL Closed
          SELECT SINGLE dmbtr FROM bsas INTO  w_OIntIncomeAmt  WHERE
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'XX002' ) AND bukrs = p_bukrs  AND
                  gjahr = p_gjahr  AND
                  belnr = wa_voucher1-belnr.
                IF sy-subrc = 0.
                  w_OIntIncome = w_OIntIncome + w_OIntIncomeAmt.
                  continue.
                ENDIF.
           ELSE.
                 w_OIntIncome = w_OIntIncome + w_OIntIncomeAmt.
                  continue.
           ENDIF.
    * Sale Of fixed Assets
          SELECT SINGLE dmbtr FROM bsis INTO w_OFixedAmt WHERE
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'XX004' ) AND  bukrs = p_bukrs  AND
                   gjahr = p_gjahr  AND
                   belnr = wa_voucher1-belnr.
           IF sy-subrc <> 0.
    * If the corresponding entry not found in GL open, look in the GL Closed
          SELECT SINGLE dmbtr FROM bsas INTO  w_OFixedAmt  WHERE
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'XX004' ) AND bukrs = p_bukrs  AND
                  gjahr = p_gjahr  AND
                  belnr = wa_voucher1-belnr.
                IF sy-subrc = 0.
                  w_Ofixedasst = w_Ofixedasst + w_OFixedAmt.
                  continue.
                ENDIF.
           ELSE.
                 w_Ofixedasst = w_Ofixedasst + w_OFixedAmt.
                  continue.
           ENDIF.
    * Gl Receipts ( Sundry Income)
          SELECT SINGLE dmbtr FROM bsis INTO w_OSundryAmt WHERE
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'XX005' ) AND  bukrs = p_bukrs  AND
                   gjahr = p_gjahr  AND
                   belnr = wa_voucher1-belnr.
           IF sy-subrc <> 0.
    * If the corresponding entry not found in GL open, look in the GL Closed
          SELECT SINGLE dmbtr FROM bsas INTO  w_OSundryAmt  WHERE
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'XX005' ) AND bukrs = p_bukrs  AND
                  gjahr = p_gjahr  AND
                  belnr = wa_voucher1-belnr.
                IF sy-subrc = 0.
                  w_OSundry = w_OSundry + w_OSundryAmt.
                  continue.
                ENDIF.
           ELSE.
                 w_OSundry = w_OSundry + w_OSundryAmt.
                  continue.
           ENDIF.
         ENDLOOP.
       ENDLOOP.
    *Out Flow
    Clear r_bwart.
    refresh r_bwart.
    r_bwart-sign = 'I'. r_bwart-option = 'EQ'. r_bwart-low = 'KZ'.
    APPEND r_bwart TO r_bwart.
    r_bwart-sign = 'I'. r_bwart-option = 'EQ'. r_bwart-low = 'VZ'.
    APPEND r_bwart TO r_bwart.
       SELECT SUM( dmbtr ) AS dmbtr belnr lifnr hkont shkzg xblnr budat
    blart bldat
       INTO CORRESPONDING FIELDS OF TABLE it_voucher3
       FROM  bsik
       WHERE   bukrs = p_bukrs AND gjahr = p_gjahr
               AND augdt IN s_bldat
               AND blart IN  r_bwart
    *            AND blart = 'DZ' and shkzg = 'S'
               GROUP BY lifnr belnr hkont shkzg xblnr budat blart bldat.
       SORT it_voucher3 BY lifnr.
       LOOP AT it_voucher3 INTO wa_voucher3.
    * Select the invoices
         SELECT SUM( dmbtr ) AS dmbtr belnr lifnr hkont shkzg xblnr budat
    blart bldat
         INTO CORRESPONDING FIELDS OF TABLE it_voucher1
         FROM  bsik
         WHERE   bukrs = p_bukrs AND gjahr = p_gjahr
                 AND augdt IN s_bldat
                 AND blart NOT IN r_bwart AND
                 augbl = wa_voucher3-belnr AND
                 lifnr = wa_voucher3-lifnr
                 GROUP BY belnr lifnr hkont shkzg xblnr budat blart bldat.
         LOOP AT it_voucher1 INTO wa_voucher1.
    * Supplier Payments  (LOCAL)
    *  Find the corresponding entry in the GL open
          SELECT SINGLE dmbtr FROM bsis INTO w_OSupPayAmt WHERE
    *           hkont = '0010003900' AND
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'YY001' ) AND  bukrs = p_bukrs  AND
                   gjahr = p_gjahr  AND
                   belnr = wa_voucher1-belnr.
           IF sy-subrc <> 0.
    * If the corresponding entry not found in GL open, look in the GL Closed
          SELECT SINGLE dmbtr FROM bsas INTO  w_OSupPayAmt  WHERE
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'YY001' ) AND bukrs = p_bukrs  AND
                  gjahr = p_gjahr  AND
                  belnr = wa_voucher1-belnr.
                IF sy-subrc = 0.
                  w_OSupPay = w_OSupPay + w_OSupPayAmt.
                  continue.
                ENDIF.
           ELSE.
                 w_OSupPay = w_OSupPay + w_OSupPayAmt.
                  continue.
           ENDIF.
    * supplier Payments  (Foreign )
    *  Find the corresponding entry in the GL open
          SELECT SINGLE dmbtr FROM bsis INTO w_OSupPayAmt1 WHERE
    *           hkont = '0010003900' AND
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'YY002' ) AND  bukrs = p_bukrs  AND
                   gjahr = p_gjahr  AND
                   belnr = wa_voucher1-belnr.
           IF sy-subrc <> 0.
    * If the corresponding entry not found in GL open, look in the GL Closed
          SELECT SINGLE dmbtr FROM bsas INTO  w_OSupPayAmt1  WHERE
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'YY002' ) AND bukrs = p_bukrs  AND
                  gjahr = p_gjahr  AND
                  belnr = wa_voucher1-belnr.
                IF sy-subrc = 0.
                  w_OSupPay1 = w_OSupPay1 + w_OSupPayAmt1.
                  continue.
                ENDIF.
           ELSE.
                 w_OSupPay1 = w_OSupPay1 + w_OSupPayAmt1.
                  continue.
           ENDIF.
    * duty/clearing expenses
    *  Find the corresponding entry in the GL open
          SELECT SINGLE dmbtr FROM bsis INTO w_ODutyAmt WHERE
    *           hkont = '0010003900' AND
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'YY003' ) AND  bukrs = p_bukrs  AND
                   gjahr = p_gjahr  AND
                   belnr = wa_voucher1-belnr.
           IF sy-subrc <> 0.
    * If the corresponding entry not found in GL open, look in the GL Closed
          SELECT SINGLE dmbtr FROM bsas INTO  w_ODutyAmt  WHERE
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'YY003' ) AND bukrs = p_bukrs  AND
                  gjahr = p_gjahr  AND
                  belnr = wa_voucher1-belnr.
                IF sy-subrc = 0.
                  w_ODuty = w_ODuty + w_ODutyAmt.
                  continue.
                ENDIF.
           ELSE.
                 w_ODuty = w_ODuty + w_ODutyAmt.
                  continue.
           ENDIF.
    * Salary /EPF/ETF/MSPS/OVERTIME
    *  Find the corresponding entry in the GL open
          SELECT SINGLE dmbtr FROM bsis INTO w_OSalaryAmt WHERE
    *           hkont = '0010003900' AND
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'YY004' ) AND  bukrs = p_bukrs  AND
                   gjahr = p_gjahr  AND
                   belnr = wa_voucher1-belnr.
           IF sy-subrc <> 0.
    * If the corresponding entry not found in GL open, look in the GL Closed
          SELECT SINGLE dmbtr FROM bsas INTO  w_OSalaryAmt  WHERE
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'YY004' ) AND bukrs = p_bukrs  AND
                  gjahr = p_gjahr  AND
                  belnr = wa_voucher1-belnr.
                IF sy-subrc = 0.
                  w_OSalary = w_OSalary + w_OSalaryAmt.
                  continue.
                ENDIF.
           ELSE.
                 w_OSalary = w_OSalary + w_OSalaryAmt.
                  continue.
           ENDIF.
    * Income Taxes
    *  Find the corresponding entry in the GL open
          SELECT SINGLE dmbtr FROM bsis INTO w_OTaxAmt WHERE
    *           hkont = '0010003900' AND
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'YY005' ) AND  bukrs = p_bukrs  AND
                   gjahr = p_gjahr  AND
                   belnr = wa_voucher1-belnr.
           IF sy-subrc <> 0.
    * If the corresponding entry not found in GL open, look in the GL Closed
          SELECT SINGLE dmbtr FROM bsas INTO  w_OTaxAmt  WHERE
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'YY005' ) AND bukrs = p_bukrs  AND
                  gjahr = p_gjahr  AND
                  belnr = wa_voucher1-belnr.
                IF sy-subrc = 0.
                  w_OTax = w_OTax + w_OTaxAmt.
                  continue.
                ENDIF.
           ELSE.
                 w_OTax = w_OTax + w_OTaxAmt.
                  continue.
           ENDIF.
    * other taxes ( VAT: TT:Debit tax )
    *  Find the corresponding entry in the GL open
          SELECT SINGLE dmbtr FROM bsis INTO w_OTaxAmt1 WHERE
    *           hkont = '0010003900' AND
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'YY006' ) AND  bukrs = p_bukrs  AND
                   gjahr = p_gjahr  AND
                   belnr = wa_voucher1-belnr.
           IF sy-subrc <> 0.
    * If the corresponding entry not found in GL open, look in the GL Closed
          SELECT SINGLE dmbtr FROM bsas INTO  w_OTaxAmt1  WHERE
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'YY006' ) AND bukrs = p_bukrs  AND
                  gjahr = p_gjahr  AND
                  belnr = wa_voucher1-belnr.
                IF sy-subrc = 0.
                  w_OTax1 = w_OTax1 + w_OTaxAmt1.
                  continue.
                ENDIF.
           ELSE.
                 w_OTax1 = w_OTax1 + w_OTaxAmt1.
                  continue.
           ENDIF.
    * Selling  & Promotional Costs
    *  Find the corresponding entry in the GL open
          SELECT SINGLE dmbtr FROM bsis INTO w_OSellAmt WHERE
    *           hkont = '0010003900' AND
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'YY007' ) AND  bukrs = p_bukrs  AND
                   gjahr = p_gjahr  AND
                   belnr = wa_voucher1-belnr.
           IF sy-subrc <> 0.
    * If the corresponding entry not found in GL open, look in the GL Closed
          SELECT SINGLE dmbtr FROM bsas INTO  w_OSellAmt  WHERE
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'YY007' ) AND bukrs = p_bukrs  AND
                  gjahr = p_gjahr  AND
                  belnr = wa_voucher1-belnr.
                IF sy-subrc = 0.
                  w_OSell = w_OSell + w_OSellAmt.
                  continue.
                ENDIF.
           ELSE.
                 w_OSell = w_OSell + w_OSellAmt.
                  continue.
           ENDIF.
    * Admistration costs
    *  Find the corresponding entry in the GL open
          SELECT SINGLE dmbtr FROM bsis INTO w_OAdminAmt WHERE
    *           hkont = '0010003900' AND
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'YY008' ) AND  bukrs = p_bukrs  AND
                   gjahr = p_gjahr  AND
                   belnr = wa_voucher1-belnr.
           IF sy-subrc <> 0.
    * If the corresponding entry not found in GL open, look in the GL Closed
          SELECT SINGLE dmbtr FROM bsas INTO  w_OAdminAmt  WHERE
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'YY008' ) AND bukrs = p_bukrs  AND
                  gjahr = p_gjahr  AND
                  belnr = wa_voucher1-belnr.
                IF sy-subrc = 0.
                  w_OAdmin = w_OAdmin + w_OAdminAmt.
                  continue.
                ENDIF.
           ELSE.
                 w_OAdmin = w_OAdmin + w_OAdminAmt.
                  continue.
           ENDIF.
    * Capital Expenditure
    *  Find the corresponding entry in the GL open
          SELECT SINGLE dmbtr FROM bsis INTO w_OCapitalAmt WHERE
    *           hkont = '0010003900' AND
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'YY009' ) AND  bukrs = p_bukrs  AND
                   gjahr = p_gjahr  AND
                   belnr = wa_voucher1-belnr.
           IF sy-subrc <> 0.
    * If the corresponding entry not found in GL open, look in the GL Closed
          SELECT SINGLE dmbtr FROM bsas INTO  w_OCapitalAmt  WHERE
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'YY009' ) AND bukrs = p_bukrs  AND
                  gjahr = p_gjahr  AND
                  belnr = wa_voucher1-belnr.
                IF sy-subrc = 0.
                  w_OCapital = w_OCapital + w_OCapitalAmt.
                  continue.
                ENDIF.
           ELSE.
                 w_OCapital = w_OCapital + w_OCapitalAmt.
                  continue.
           ENDIF.
    * Loan repayments
    *  Find the corresponding entry in the GL open
          SELECT SINGLE dmbtr FROM bsis INTO w_OLoanAmt WHERE
    *           hkont = '0010003900' AND
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'YY010' ) AND  bukrs = p_bukrs  AND
                   gjahr = p_gjahr  AND
                   belnr = wa_voucher1-belnr.
           IF sy-subrc <> 0.
    * If the corresponding entry not found in GL open, look in the GL Closed
          SELECT SINGLE dmbtr FROM bsas INTO  w_OLoanAmt  WHERE
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'YY010' ) AND bukrs = p_bukrs  AND
                  gjahr = p_gjahr  AND
                  belnr = wa_voucher1-belnr.
                IF sy-subrc = 0.
                  w_OLoan = w_OLoan + w_OLoanAmt.
                  continue.
                ENDIF.
           ELSE.
                 w_OLoan = w_OLoan + w_OLoanAmt.
                  continue.
           ENDIF.
    * maangment fees
    *  Find the corresponding entry in the GL open
          SELECT SINGLE dmbtr FROM bsis INTO w_OManAmt WHERE
    *           hkont = '0010003900' AND
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'YY011' ) AND  bukrs = p_bukrs  AND
                   gjahr = p_gjahr  AND
                   belnr = wa_voucher1-belnr.
           IF sy-subrc <> 0.
    * If the corresponding entry not found in GL open, look in the GL Closed
          SELECT SINGLE dmbtr FROM bsas INTO  w_OManAmt  WHERE
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'YY011' ) AND bukrs = p_bukrs  AND
                  gjahr = p_gjahr  AND
                  belnr = wa_voucher1-belnr.
                IF sy-subrc = 0.
                  w_OMan = w_OMan + w_OManAmt.
                  continue.
                ENDIF.
           ELSE.
                 w_OMan = w_OMan + w_OManAmt.
                  continue.
           ENDIF.
    * Group charges
    *  Find the corresponding entry in the GL open
          SELECT SINGLE dmbtr FROM bsis INTO w_OGroupAmt WHERE
    *           hkont = '0010003900' AND
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'YY012' ) AND  bukrs = p_bukrs  AND
                   gjahr = p_gjahr  AND
                   belnr = wa_voucher1-belnr.
           IF sy-subrc <> 0.
    * If the corresponding entry not found in GL open, look in the GL Closed
          SELECT SINGLE dmbtr FROM bsas INTO  w_OGroupAmt  WHERE
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'YY012' ) AND bukrs = p_bukrs  AND
                  gjahr = p_gjahr  AND
                  belnr = wa_voucher1-belnr.
                IF sy-subrc = 0.
                  w_OGroup = w_OGroup + w_OGroupAmt.
                  continue.
                ENDIF.
           ELSE.
                 w_OGroup = w_OGroup + w_OGroupAmt.
                  continue.
           ENDIF.
    * Interest Payments
    *  Find the corresponding entry in the GL open
          SELECT SINGLE dmbtr FROM bsis INTO w_OIntAmt WHERE
    *           hkont = '0010003900' AND
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'YY013' ) AND  bukrs = p_bukrs  AND
                   gjahr = p_gjahr  AND
                   belnr = wa_voucher1-belnr.
           IF sy-subrc <> 0.
    * If the corresponding entry not found in GL open, look in the GL Closed
          SELECT SINGLE dmbtr FROM bsas INTO  w_OIntAmt  WHERE
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'YY013' ) AND bukrs = p_bukrs  AND
                  gjahr = p_gjahr  AND
                  belnr = wa_voucher1-belnr.
                IF sy-subrc = 0.
                  w_OInt = w_OInt + w_OIntAmt.
                  continue.
                ENDIF.
           ELSE.
                 w_OInt = w_OInt + w_OIntAmt.
                  continue.
           ENDIF.
    * Other Intercompany payments
    *  Find the corresponding entry in the GL open
          SELECT SINGLE dmbtr FROM bsis INTO w_OInterAmt WHERE
    *           hkont = '0010003900' AND
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'YY014' ) AND  bukrs = p_bukrs  AND
                   gjahr = p_gjahr  AND
                   belnr = wa_voucher1-belnr.
           IF sy-subrc <> 0.
    * If the corresponding entry not found in GL open, look in the GL Closed
          SELECT SINGLE dmbtr FROM bsas INTO  w_OInterAmt  WHERE
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'YY014' ) AND bukrs = p_bukrs  AND
                  gjahr = p_gjahr  AND
                  belnr = wa_voucher1-belnr.
                IF sy-subrc = 0.
                  w_OInter = w_OInter + w_OInterAmt.
                  continue.
                ENDIF.
           ELSE.
                 w_OInter = w_OInter + w_OInterAmt.
                  continue.
           ENDIF.
    * Advacnes/Prepayments
    *  Find the corresponding entry in the GL open
          SELECT SINGLE dmbtr FROM bsis INTO w_OAdPayAmt WHERE
    *           hkont = '0010003900' AND
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'YY015' ) AND  bukrs = p_bukrs  AND
                   gjahr = p_gjahr  AND
                   belnr = wa_voucher1-belnr.
           IF sy-subrc <> 0.
    * If the corresponding entry not found in GL open, look in the GL Closed
          SELECT SINGLE dmbtr FROM bsas INTO  w_OAdPayAmt  WHERE
               hkont IN ( select fglacc from zcashflow_matrix WHERE FCODE =
    'YY015' ) AND bukrs = p_bukrs  AND
                  gjahr = p_gjahr  AND
                  belnr = wa_voucher1-belnr.
                IF sy-subrc = 0.
                  w_OAdPay = w_OAdPay + w_OAdPayAmt.
                  continue.
                ENDIF.
           ELSE.
                 w_OAdPay = w_OAdPay + w_OAdPayAmt.
                  continue.
           ENDIF.
         ENDLOOP.
       ENDLOOP.
    ENDFORM.                    " Select_Data

  • How should I report forum performance issues?

    The forums rely heavily on the caching features of browsers to improve the speed of page rendering. Performance of these forums should greatly improve after a few pages because more and more of the images, css and javascript is cached in the browser. As a consequence, when reporting forums performance issues the report should include some information on the state of the browser cache to determine whether the issue is a browser issue or a server issue. Such detailed information is generally not available from just watching the browser screen, but needs to come from specialized tools such as performance monitor plugins and recording proxies.
    The preferred report method for performance issues is to use the speed reporting features build into or available as a plugin for a browser for both the page you want to report a problem with and several refence pages in the site. Detailed instructions are listed below separated out for different browsers. If possible, please use Firefox for submitting the report because it provides an export format that can be read back electronically.
    Known performance issues
    The performance issues with any screen with a Rich Text Editor, such as the Reply window and the compose Private Message window have been acknowleged and improvements are being implemented.
    Mozilla Firefox (preferred)
    Warning: it is currently not recommended to generate a speed report when logged in. The speed report has enough detail for somebody else to hijack your session and impersonate you on the forums. If you really must report while logged in, make sure you log out your browser after generating the speed report and wait at least 4 hours before posting.
    Install the Firebug plugin
    Install the NetExport 0.6 extension for Firebug
    Enable all Firebug panels
    Switch to the "Net" panel in Firebug
    Click on this link
    Export the data from the Firebug Net panel
    Click on this link
    Export the data from the Firebug Net panel
    Browse to the page where you are experiencing the performance problem.
    Export the data from the Firebug Net panel
    Click on this link
    Export the data from the Firebug Net panel
    Click on this link
    Export the data from the Firebug Net panel
    Browse to the page where you are experiencing the performance problem.
    Export the data from the Firebug Net panel
    When you report a performance problem please attach the 6 exports from the Firebug Net panel and an explanation of how you are experiencing the issues (for instance how much slower it is then normal) and include a description of your internet connection (dial-up, dsl, cable etc.) and the country from where you are connecting. If you have non-standard tweaks to your Firefox configuration (such as pipelining enabled) or are running any plugins please include that information in your report as well.
    Google Chrome
    Open the Developer Tools (Ctrl-Shift-J)
    Navigate to the resources tab
    Enable resource tracking.
    Click on this link
    Export the resource loading data.
    Reset the data by disabling and enabling resource tracking
    Click on this link
    Export the data
    Reset the data by disabling and enabling resource tracking
    Navigate to the page where you experience the performance problem
    Export the data
    Reset the data by disabling and enabling resource tracking
    Click on this link
    Export the data
    Reset the data by disabling and enabling resource tracking
    Click on this link
    Export the data
    Reset the data by disabling and enabling resource tracking
    Navigate to the page where you experience the performance problem
    Export the data
    Since Google Chrome does not have an export format for the Resource Tracking information best current practice is to take a screenshot and note the hover details for any resource with a tail that is longer then 25% of the total load time. When you report a performance problem please attach the screenshots and an explanation of how you are experiencing the issues (for instance how much slower it is then normal)  and include a description of your internet connection (dial-up, dsl, cable etc.) and the country from where you are connecting.
    Apple Safari
    The Apple Safari Web Inspector has a Resources panel similar to the Resources panel in the Google Chrome developer tools.To get there, follow these steps:
    Show the menu bar.
    Go to preferences
    Go to the Advanced Tab
    Check “Show  Develop menu in menu bar”.
    From the Develop menu select “Show Web  Inspector”. 
    Collecting the performance information and exporting works exactly the same as in Google Chrome. Please refer to the instructions for Google Chrome.
    Microsoft Internet Explorer
    IE does not have native features to analyze web traffic. No plugins have been found that produce the required information (please let us know if we missed any). For now, please reproduce the issue with Firefox, Chrome or Safari.
    Please note that due to the reliance on Javascript for the interactive effects the performance of these forums will be much better on MS IE 8 then on previous versions of MS IE.

    Hi
    It works, check once again...
    regards
    Swami

  • Major performance Issues after upgrading to 10.9.2

    Hi,
    I have been having major performance issues almost preventing me from using the computer at times.  I suspect I don't have enough memory to run Maverick as the computer was great before I upgraded.
    If any experts or people with ideas for me to speed up the computer, please respond.  If you think the only way to improve performance is add memory or revert back to a previous version of OSX that I have a backup for, let me know.
    Here is the info on my system, thank you in advance!!
    Hardware Information:
              MacBook Pro (15-inch, Late 2008)
              MacBook Pro - model: MacBookPro5,1
              1 2.4 GHz Intel Core 2 Duo CPU: 2 cores
              2 GB RAM
    Video Information:
              NVIDIA GeForce 9400M - VRAM: 256 MB
              NVIDIA GeForce 9600M GT - VRAM: 256 MB
    System Software:
              OS X 10.9.2 (13C1021) - Uptime: 3 days 21:20:10
    Disk Information:
              Hitachi HTS543225L9SA02 disk0 : (250.06 GB)
                        EFI (disk0s1) <not mounted>: 209.7 MB
                        :c (disk0s2) / [Startup]: 249.2 GB (67.82 GB free)
                        Recovery HD (disk0s3) <not mounted>: 650 MB
              MATSHITADVD-R   UJ-868 
    USB Information:
              Apple Inc. Built-in iSight
              Apple, Inc. Apple Internal Keyboard / Trackpad
              Apple Computer, Inc. IR Receiver
              Fitbit Inc. Fitbit Base Station
              Apple Inc. BRCM2046 Hub
                        Apple Inc. Bluetooth USB Host Controller
    Thunderbolt Information:
    Configuration files:
              /etc/sysctl.conf - Exists
              /etc/hosts - Count: 29
    Gatekeeper:
              Mac App Store and identified developers
    Kernel Extensions:
              [not loaded] com.LaCie.ScsiType00 (1.2.0) Support
              [not loaded] com.cisco.nke.ipsec (2.0.1) Support
              [not loaded] com.leapfrog.codeless.kext (2) Support
              [not loaded] com.leapfrog.driver.LfConnectDriver (1.8.1 - SDK 10.7) Support
              [not loaded] com.rim.driver.BlackBerryUSBDriverInt (0.0.39) Support
              [not loaded] com.rim.driver.BlackBerryUSBDriverVSP (0.0.39) Support
              [not loaded] net.kromtech.kext.AVKauth (2.3.6 - SDK 10.8) Support
              [not loaded] net.kromtech.kext.Firewall (2.3.6 - SDK 10.8) Support
    Startup Items:
              CiscoVPN: Path: /System/Library/StartupItems/CiscoVPN
    Problem System Launch Daemons:
              [failed] com.apple.wdhelper.plist
    Launch Daemons:
              [loaded] com.adobe.fpsaud.plist Support
              [loaded] com.adobe.SwitchBoard.plist Support
              [running] com.fitbit.galileod.plist Support
              [loaded] com.google.keystone.daemon.plist Support
              [loaded] com.leapfrog.connect.shell.plist Support
              [loaded] com.microsoft.office.licensing.helper.plist Support
              [loaded] com.timesoftware.timemachineeditor.backupd-auto.plist Support
              [running] com.zeobit.MacKeeper.AntiVirus.plist Support
              [running] com.zeobit.MacKeeper.plugin.AntiTheft.daemon.plist Support
    Launch Agents:
              [not loaded] com.adobe.AAM.Updater-1.0.plist Support
              [loaded] com.adobe.CS5ServiceManager.plist Support
              [running] com.brother.LOGINserver.plist Support
              [running] com.google.keystone.agent.plist Support
    User Launch Agents:
              [loaded] com.adobe.ARM.[...].plist Support
              [failed] [email protected]
              [loaded] com.macpaw.CleanMyMac.helperTool.plist Support
              [running] com.microsoft.LaunchAgent.SyncServicesAgent.plist Support
              [running] com.zeobit.MacKeeper.Helper.plist Support
    User Login Items:
              Google Chrome
    Internet Plug-ins:
              o1dbrowserplugin: Version: 5.3.1.18536 Support
              Google Earth Web Plug-in: Version: 7.1 Support
              Default Browser: Version: 537 - SDK 10.9
              Flip4Mac WMV Plugin: Version: 2.3.8.1 Support
              OfficeLiveBrowserPlugin: Version: 12.2.9 Support
              AdobePDFViewerNPAPI: Version: 10.1.9 Support
              FlashPlayer-10.6: Version: 13.0.0.201 - SDK 10.6 Support
              DivXBrowserPlugin: Version: 2.0 Support
              Silverlight: Version: 5.1.10411.0 - SDK 10.6 Support
              Flash Player: Version: 13.0.0.201 - SDK 10.6 Outdated! Update
              iPhotoPhotocast: Version: 7.0
              googletalkbrowserplugin: Version: 5.3.1.18536 Support
              QuickTime Plugin: Version: 7.7.3
              AdobePDFViewer: Version: 10.1.9 Support
              GarminGpsControl: Version: 2.6.4.0 Release Support
              SharePointBrowserPlugin: Version: 14.3.9 - SDK 10.6 Support
              JavaAppletPlugin: Version: 14.9.0 - SDK 10.7 Check version
    Safari Extensions:
              Dashlane: Version: 2.4.0.55923
    Audio Plug-ins:
              BluetoothAudioPlugIn: Version: 1.0 - SDK 10.9
              AirPlay: Version: 2.0 - SDK 10.9
              AppleAVBAudio: Version: 203.2 - SDK 10.9
              iSightAudio: Version: 7.7.3 - SDK 10.9
    iTunes Plug-ins:
              Quartz Composer Visualizer: Version: 1.4 - SDK 10.9
    User Internet Plug-ins:
              Dashlane: Version: Dashlane 1.0.0 - SDK 10.7 Support
              Move_Media_Player: Version: npmnqmp 071705000010 Support
              WebEx64: Version: 1.0 - SDK 10.6 Support
              Picasa: Version: 1.0 Support
    3rd Party Preference Panes:
              Flash Player  Support
              Flip4Mac WMV  Support
              Growl  Support
    Time Machine:
              Skip System Files: NO
              Auto backup: NO - Auto backup turned off
              Time Machine not configured!
    Top Processes by CPU:
                   3%          WindowServer
                   2%          SystemUIServer
                   1%          diskimages-helper
                   1%          mds
                   0%          Google Chrome Helper EH
    Top Processes by Memory:
              94 MB          Google Chrome
              59 MB          GoogleSoftwareUpdateDaemon
              57 MB          Google Chrome Helper EH
              52 MB          Google Chrome Helper
              39 MB          Finder
    Virtual Memory Information:
              40 MB          Free RAM
              499 MB          Active RAM
              481 MB          Inactive RAM
              465 MB          Wired RAM
              7.33 GB          Page-ins
              502 MB          Page-outs

    The performance issues are due to third party software. Mavericks at the minimum requires 2GB's of RAM but I don't think that's the issue. And you can upgrade RAM anytime.
    MacKeeper should be uninstalled. It does far more harm than good.
    Do not install MacKeeper: Apple Support Communities
    Uninstall instructions > how to uninstall MacKeeper
    249.2 GB (67.82 GB free)
    Keep an eye on available disk space.
    Click your Apple menu icon top left in your screen. From the drop down menu click About This Mac > More Info > Storage
    Make sure there's at least 15% free disk space. Less can slow your Mac down.
    You also need to uninstall CleanMyMac >  How To Uninstall CleanMyMac
    Third party so called Mac cleaning utilities are not necessary on a Mac. Your Mac runs maintenance in the background for you.
    Mac OS X: About background maintenance tasks

  • 7 year, 100+ PC Veteran Stumped ! Power, and performance issues. Full detail included.

    Good morning everyone! (At least it's morning in wonderful Pennsylvania USA!)
    AMD Athlon 64 3200+ (New Castle)
    Thermaltake Venus 12 CPU Cooler w/ Manual Adjust
    MSI "K8T Neo-FIS2R" K8T800
    512MB x 2 Corsair TWINX1024-3200C2PT (Rated 2-3-3-6 1T)
    Antec TruePower 430w PS (+5V@36A +3.3V@28A +12V@20A)
    Gainward Dual DVI w/ VIVO GeForce FX5700 Ultra
    2x Viewsonic 19" VX900 LCD Monitors
    Creative SoundBlaster Audigy Platinum eX
    Plextor 712a Black 12x+/8x- DVD-RW
    Lite-On SOHD-167T Black 16x DVD-ROM
    Western Digital WD740GD 74GB 10,000rpm Raptor SATA
    Western Digital WD2500JB 250GB 7,200rpm 8MB IDE
    Seagate Barracuda ST3200822AS 200GB 7,200rpm 8MB IDE
    Lian-Li PC-65B Black Aluminum Case
    Vantech PCI Slot Fan
    CyberPower 825va Voltage Regulating UPS
    Windows XP Professional SP1a
         There we have it, I think that that is all you need to know to perhaps give opinions and advice. Allow me to elaborate on why I am posting today after browsing this wonderful forum for the last two weeks. (...and by the way, my hat's off to some of you knowledgeable regulars for helping out a lot of newbies and folks in trouble!) Without further adieu:
    Problem #1: POWER ISSUE
    When, or if, I remove AC Power from my PC for whatever reason I run into a problem in which after reconnecting the AC Power and attempting to turn on the computer it goes into a 3-5 second startup loop in which the PC does not post, but rather cycles power to all of the components indefinitely. I notice the LEDs on my optical drives cycling repeatedly ad infinitum until I power off using the 4-second hold method, and then press the power button again. At this point the PC boots up fine, and boots up fine going forward from all restarts and shut downs. How strange? I've never, EVER, encountered something like this before.
    Problem #2: PERFORMANCE ISSUE
    This PC has a handful of serious performace issues.
    3dMark03 scored horribly.
    Prime95 runs ridiculously slow although there are no erros! It runs much more quickly on my work PC which is a PIII 866mhz with 384MB of PC133 RAM.
    I receive, on no regular frequency, or while doing anything in particular, Explorer memory errors. Not BSOD's mind you, but "...blah blah blah referenced memory address xxxxx-xxxxx and could not be written". This causes Explorer to restart itself, blowing away the start menu, task bar, and any Explorer windows open. They reappear, of course, without incident.
    The most off performance issue of all is that when opening an Explorer window for either of my IDE HDs, designated D and E drives, I find that when using the highlighting rectangle tool the Explorer window freezes or lags. I can double-click and open or move/copy files without incident, but if I attempt to highlight by this method this halt or lag occurs.
    Also, since my update of the BIOS from 1.2 to 1.7, and then to 1.8 system startup times prior to Windows loading are HORRID. I have disabled just about everything, and yet the SATA BIOS loads for 5 seconds, and then I must wait 20 seconds for Windows itself to come to the login screen. No other BIOS related issues to report per se, but this is terrible for what should be a blazingly fast computer.
    Now let's see.. what have I tried to do to repair the issues?
    1) 2 BIOS flashes. First from 1.2->1.7, and then from 1.7->1.8. Ostensibly this was just "because". The power user need to have the latest! I noticed the incorrect CPU temperature being reported, however.. This led to me buying this massive ThermalTake HSF to replace my stocker. I also added more thermal goop than I ever have before, as well as a PCI slot fan before I became aware that it was a BIOS issue! GRRRR MSI.
    2) I thought perhaps for the one issue that one of the hard drives was an issue, and even perhaps for power, but I replaced each with new drives and tested all 4 on another PC. NO problems. Also I should perhaps mention that my IDE drives are all hooked up using Antec Cobra cables. Expensive yes, but why the hell not, right? I've never seen a hang-off grounding wire for IDE before. Decided not to use them as I could think of a great place to screw them in, nor have other PC using them had trouble skipping the ground wire.
    3) I unplugged every molex cable, the 4-pin CPU power, and the 20-pin ATX power and rerranged them all - as well as removed and then reinserted the RAM.
    4) I tried changing my memory timings and power management settings, etc in BIOS. Nothing seem to impact the issue. I didn't fiddle with the voltages, but I should not need to running the RAM at SPD or lower settings and without overclocking the system at all!
    5) Another issue that I had that seems to have vanished, come back, vanished, and then come back a "little bit" is my USB ports. When set to enable legacy devices in BIOS my USB items like my Logitech wireless keyboard would just cycle power and refuse to function. Also my UPS connected VIA USB seems to sometimes handshake with Windows and sometimes not. I've tried using all of the different ports, etc but the problem remains. I NEED 6 ports for my devices so it is all that I could do!
    6) I have an Enermax 550w EG651P-VE(FMA) with 36 amps on each voltage rail on it's way, and it should arrive tomorrow. Despite all of the crap regarding power supplies that I see on this board I am not confident that it's the problem. That Antec PSU should be able to hold it's on with 20 amps on the +12v channel. C'mon now. I build a nearly identical system with the same power supply for a customer and he has no problems at all. He also has 3 HDs, same motherboard, etc.. the only difference is he has but one optical drive and a 2800+ rather than a 3200+. That power difference should be decimal nature in amps needed.
    ...oh and the sound card is in PCI slot 3, for those that remember the glory days of sound card IRQ issues that Creative was once notorious for... oh, and I disable the ethernet boot device, etc so my slow startups should not be related. My serial ATA drive is also on connection 1 of the VIA controller.. Promise can kiss my a**.
    Soooo.. Show me what a n00b I am, oh great ones. I've built over 100 PCs since 1998 for myself, friends, families, and customers... and I've never seen an issue like this one! I'm no dummy, but please don't assume too much. Other pros on here know full well you can forget the most simple mundane detail in spite of experience! I want to solve this problem. I am on the verge of shelling out for a new motherboard and processor of the 939 pin variety.. and am now wary of MSI's long awaited socket 939 K8 Neo2 board despite it's awesome reviews. MSI has never really given me trouble before.. but I don't really want to spend money to the order of $200+ for that damned Gigabyte board. Gigabyte has always been good to me as well. Save my wallet! PLEASE!!!
    Thanks so much everyone, I tried very hard not to leave out any details!
    Az (Ian)
    You can reach me on Yahoo or AIM just about any time, and I will check here frequently.

    Quote
    Originally posted by AzaghalSEI
    Good morning everyone! (At least it's morning in wonderful Pennsylvania USA!)
    AMD Athlon 64 3200+ (New Castle)
    Thermaltake Venus 12 CPU Cooler w/ Manual Adjust
    MSI "K8T Neo-FIS2R" K8T800
    512MB x 2 Corsair TWINX1024-3200C2PT (Rated 2-3-3-6 1T)
    Antec TruePower 430w PS (+5V@36A +3.3V@28A +12V@20A)
    Gainward Dual DVI w/ VIVO GeForce FX5700 Ultra
    2x Viewsonic 19" VX900 LCD Monitors
    Creative SoundBlaster Audigy Platinum eX
    Plextor 712a Black 12x+/8x- DVD-RW
    Lite-On SOHD-167T Black 16x DVD-ROM
    Western Digital WD740GD 74GB 10,000rpm Raptor SATA
    Western Digital WD2500JB 250GB 7,200rpm 8MB IDE
    Seagate Barracuda ST3200822AS 200GB 7,200rpm 8MB IDE
    Lian-Li PC-65B Black Aluminum Case
    Vantech PCI Slot Fan
    CyberPower 825va Voltage Regulating UPS
    Windows XP Professional SP1a
         There we have it, I think that that is all you need to know to perhaps give opinions and advice. Allow me to elaborate on why I am posting today after browsing this wonderful forum for the last two weeks. (...and by the way, my hat's off to some of you knowledgeable regulars for helping out a lot of newbies and folks in trouble!) Without further adieu:
    Problem #1: POWER ISSUE
    When, or if, I remove AC Power from my PC for whatever reason I run into a problem in which after reconnecting the AC Power and attempting to turn on the computer it goes into a 3-5 second startup loop in which the PC does not post, but rather cycles power to all of the components indefinitely. I notice the LEDs on my optical drives cycling repeatedly ad infinitum until I power off using the 4-second hold method, and then press the power button again. At this point the PC boots up fine, and boots up fine going forward from all restarts and shut downs. How strange? I've never, EVER, encountered something like this before.
    Problem #2: PERFORMANCE ISSUE
    This PC has a handful of serious performace issues.
    3dMark03 scored horribly.
    Prime95 runs ridiculously slow although there are no erros! It runs much more quickly on my work PC which is a PIII 866mhz with 384MB of PC133 RAM.
    I receive, on no regular frequency, or while doing anything in particular, Explorer memory errors. Not BSOD's mind you, but "...blah blah blah referenced memory address xxxxx-xxxxx and could not be written". This causes Explorer to restart itself, blowing away the start menu, task bar, and any Explorer windows open. They reappear, of course, without incident.
    The most off performance issue of all is that when opening an Explorer window for either of my IDE HDs, designated D and E drives, I find that when using the highlighting rectangle tool the Explorer window freezes or lags. I can double-click and open or move/copy files without incident, but if I attempt to highlight by this method this halt or lag occurs.
    Also, since my update of the BIOS from 1.2 to 1.7, and then to 1.8 system startup times prior to Windows loading are HORRID. I have disabled just about everything, and yet the SATA BIOS loads for 5 seconds, and then I must wait 20 seconds for Windows itself to come to the login screen. No other BIOS related issues to report per se, but this is terrible for what should be a blazingly fast computer.
    Now let's see.. what have I tried to do to repair the issues?
    1) 2 BIOS flashes. First from 1.2->1.7, and then from 1.7->1.8. Ostensibly this was just "because". The power user need to have the latest! I noticed the incorrect CPU temperature being reported, however.. This led to me buying this massive ThermalTake HSF to replace my stocker. I also added more thermal goop than I ever have before, as well as a PCI slot fan before I became aware that it was a BIOS issue! GRRRR MSI.
    2) I thought perhaps for the one issue that one of the hard drives was an issue, and even perhaps for power, but I replaced each with new drives and tested all 4 on another PC. NO problems. Also I should perhaps mention that my IDE drives are all hooked up using Antec Cobra cables. Expensive yes, but why the hell not, right? I've never seen a hang-off grounding wire for IDE before. Decided not to use them as I could think of a great place to screw them in, nor have other PC using them had trouble skipping the ground wire.
    3) I unplugged every molex cable, the 4-pin CPU power, and the 20-pin ATX power and rerranged them all - as well as removed and then reinserted the RAM.
    4) I tried changing my memory timings and power management settings, etc in BIOS. Nothing seem to impact the issue. I didn't fiddle with the voltages, but I should not need to running the RAM at SPD or lower settings and without overclocking the system at all!
    5) Another issue that I had that seems to have vanished, come back, vanished, and then come back a "little bit" is my USB ports. When set to enable legacy devices in BIOS my USB items like my Logitech wireless keyboard would just cycle power and refuse to function. Also my UPS connected VIA USB seems to sometimes handshake with Windows and sometimes not. I've tried using all of the different ports, etc but the problem remains. I NEED 6 ports for my devices so it is all that I could do!
    6) I have an Enermax 550w EG651P-VE(FMA) with 36 amps on each voltage rail on it's way, and it should arrive tomorrow. Despite all of the crap regarding power supplies that I see on this board I am not confident that it's the problem. That Antec PSU should be able to hold it's on with 20 amps on the +12v channel. C'mon now. I build a nearly identical system with the same power supply for a customer and he has no problems at all. He also has 3 HDs, same motherboard, etc.. the only difference is he has but one optical drive and a 2800+ rather than a 3200+. That power difference should be decimal nature in amps needed.
    ...oh and the sound card is in PCI slot 3, for those that remember the glory days of sound card IRQ issues that Creative was once notorious for... oh, and I disable the ethernet boot device, etc so my slow startups should not be related. My serial ATA drive is also on connection 1 of the VIA controller.. Promise can kiss my a**.
    Soooo.. Show me what a n00b I am, oh great ones. I've built over 100 PCs since 1998 for myself, friends, families, and customers... and I've never seen an issue like this one! I'm no dummy, but please don't assume too much. Other pros on here know full well you can forget the most simple mundane detail in spite of experience! I want to solve this problem. I am on the verge of shelling out for a new motherboard and processor of the 939 pin variety.. and am now wary of MSI's long awaited socket 939 K8 Neo2 board despite it's awesome reviews. MSI has never really given me trouble before.. but I don't really want to spend money to the order of $200+ for that damned Gigabyte board. Gigabyte has always been good to me as well. Save my wallet! PLEASE!!!
    Thanks so much everyone, I tried very hard not to leave out any details!
    Az (Ian)
    You can reach me on Yahoo or AIM just about any time, and I will check here frequently.
    The startup problem might just be a screwy psu. Your antec *should* be able to power your stuff just fine, but maybe it is defective in some strange way.
    What is your 3dmark03 score? If it is 3000-4000, (approx perf. level of ati 9600xt), then it is fine.
    Check your memory using memtest86+, and try underclocking it to ddr333.
    UNplug usb devices, and see if it speeds up boot. Also, I would not recommend bios 1.8 since people seem to have some troubles with it.
    Also, try disabling agp fast writes, disabling spread spectrum, and maybe boosting ram voltage a tiny bit.
    Try booting without your audigy plugged in, and try booting barebones (nothing but 1 hard drive with os) and see what happens.
    I'm no expert, but you might get lucky trying these steps.

Maybe you are looking for