Regarding program time out...

Hi all
I have a requirement where i need to display an error message when my report is taking more than thirty min to generate.
Can anyone please help me in this regard.
I need to capture the execution time and display the message at runtime.
Thanks in advance.

Hi Shilpa
U can use  SAPGUI_PROGRESS_INDICATOR for displayin clock in as display in standard programs
bu passing ..u can define p_rate at diffrent place of ur program in p_txt Cusomize message will display
call function 'SAPGUI_PROGRESS_INDICATOR'
      exporting
        percentage = p_rate
        text       = p_text.
start-of-selection
p_rate = 0 .
perform f_get_clock.
perform f_clock_display.
again some piece of code
p_rate = 10 .
perform f_get_clock.
perform f_clock_display.
p_rate = 20 .
perform f_get_clock.
perform f_clock_display.
form f_get_clock .
if p_rate = 0.
  p_text = 'Checking for Whether File Exsists or Not'.
elseif p_rate = 10.
  p_text = 'Transforming Data From File to internal Table'.
elseif p_rate = 20.
  p_text = 'Formatting Data in the Internal Table'.
elseif p_rate = 30.
  p_text = 'Removing Inactive,Not in SAP,Discharged Cases'.
elseif p_rate = 40.
  p_text = 'Removing Exsisting Records'.
elseif p_rate = 50.
  p_text = 'Checking For Public Holiday Condition'.
elseif p_rate = 60.
  p_text = 'Adjusting Leave According to Leave Quata Avail'.
elseif p_rate = 70.
  p_text = 'Uploading Records'.
elseif p_rate = 80.
  p_text = 'Modifying Records created with .88 and .57'.
elseif p_rate = 90.
  p_text = 'Writting Log Report'.
endif.
endform.      
form f_clock_display .
    call function 'SAPGUI_PROGRESS_INDICATOR'
      exporting
        percentage = p_rate
        text       = p_text.
endform.

Similar Messages

  • Program times out while looping at internal table with huge records - Needs fine tuning suggestions

    Hi,
    I am trying to execute a report. It times out while looping at vbap internal table. This internal table has 140000  records and does the validation within this loop and geenrates data for the output. Due to this huge volume, the program times out when executed foreground.
    There are no nested loops, so I cannot apply 'Parallel Cursor' here.
    Is there any way I can fine tune the program so that it doesn't timeout? Is it possible to apply 'Parallel Processing' . If yes, how?
    Thanks,
    Pavan

    Hi Pavan ,
                  ->sort your internal table by all primary key for vbap.
                  ->Read a Record from the table (use your condition here)
                  ->if record satisfys your where condition ,get that record index .
                  ->loop the table from the index (without condition) .
                  its like parallel cursor only but for single loop .;-)
                  ->use field symbols ,wherever possible .
               if still dump is coming ,contact your basis team .
    regards,
    Krishna.

  • Program Time-out

    Hi,
    Our SRM system runs BBP_VENDOR_SYNC program and connects to SAP system through RFC for data sync. It forks DIA process in SAP and query the database. This takes more time than set for DIA process,and in turn time-out.
    Do you have any solution for this issue?
    Thanks,
    Sam

    Hello,
    SAP does not recommend to increase the parameter in systems PRD, Have you looked  the statistics?
    Can you check the query, launch the process--sm50 (PID)st04details analisysOracle session--search-- desplay execution plan
    Check stat? Check full scan?
    Regards
    Dani

  • Regarding Connection Time Out issue in Webservice call to database.

    Hi,
    We are facing one issue with the webservices call to DB and ILOG. We are declaring and executing the webservice in the following way-
    //Request Object
    EDP.ILog.PEWM_EXPDOC_Help_Information_ProxyService.DecisionServiceRequest helpRequest = EDP.ILog.PEWM_EXPDOC_Help_Information_ProxyService.DecisionServiceRequest();
    //Response Object
    EDP.ILog.PEWM_EXPDOC_Help_Information_ProxyService.DecisionServiceResponse helpResponse = EDP.ILog.PEWM_EXPDOC_Help_Information_ProxyService.DecisionServiceResponse();
    //Proxy Service Object Initialisation
    DecisionServicePEWM_EXPDOC_Help_InformationService helpService = DecisionServicePEWM_EXPDOC_Help_InformationService();
    helpService.executeDecisionService(parameters : helpRequest, out parametersOutput : helpResponse);
    All the webservices are configured corectly in External Resources of Process Administrator. Now, the issue is that whenever we are trying to execute the service with good amount of load on OBPM Process Admin Engine, it is throwing the following exception-
    "Exception:java.net.ConnectException: Connection timed out: connect"
    We are unable to find the root cause of the issue as the webservices call is still throwing the above exception.
    Please provide some resolution as soon as possible.
    Thanks in advance,
    Abhishek

    Just to be sure, we're talking about a client process in BPM accessing an ILOG web service or a DB web service, right? Is this DB web service something custom built?
    Be aware that certain things can run inside the workspace and not the engine. You almost have to work at making this happen. The easiest way is to make this happen is to invoke a BPM object method from within a BPM object presentation or JSP. If you do have this situation open the BPM object method and click on properties and check the box run on server side.
    I can't think of anything that wouldn't scale for connections to Web Services in an engine. I'd be looking at tuning your ILog Web services. Perhaps it can't keep up and the engine gets a timeout. How often does this happen? The engine should retry the automatic until is works. But it tries 3 or so times, it gives up. This retry is configurable.
    HTH,
    Mark

  • Running an iMac G5 with Mail 3.6 and program times out before receiving mail

    Greetings...follow up to above question. I run a Netgear wireless USB adapter. When trying to run my Mac Mail program it starts running fine but as I watch the KB/s speed incoming mail is receives slowly declines until it reaches ZERO.
    Checked and and double checked and triple checked settings. Removed email accounts and then re-did them.

    Welcome Neighbor!
    Does the USB adapter work for regular browsing since going to the NetGear adaptor? All USB wireless adaptors require Mac drivers and some makes do not offer them. I believe aht NetGear does but you may have to get it from their website.
    If all your wireless functions have worked with this adaptor in the past, then consider asking in the Mail section of the Mac OS 10.5 forums. For some reason, every Mail forum has needed up being a sub-set of the OS forum. The Leopard 10.5. forum is here:
    Mac OS X v10.5 Leopard
    If you click on "Refine this List.." it will expand that section showing the "Mail and Address Book" link in teh second column:

  • Transaction management in time out

    Hi,
    I have one question regarding the transaction handling if the program time out.
    If I call one function module and there is several SQL statements in it, each SQL statement takes long time, after some of them executed, the program is time out, will the executed SQL statement will be commited or rollback? I think it's should be rollback, isn't it?
    Best Regards,
    Robin

    you do not normally have time-out's with an updare-process. you would get exclusive lockwaits and several other problems, but not a time-out ...
    anyway if you get one, your work should be rolled back. of course this depends a bit on how it's developed. there are notes where such updates are divided on several logical processes and caused inconsistencies -> see [1053723|https://websmp130.sap-ag.de/sap(bD1kZSZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1053723&nlang=DE&smpsrv=https%3a%2f%2fwebsmp110%2esap-ag%2ede]. so you would have to be more specific about your problem.

  • MacMail jammed up - will not time out

    Email crisis, first time problem. My hardware and software are old and my internet connection is slow, so I know there's not much horsepower here. Also, my emailboxes require severe spring cleaning and I should've known better than attempt to compose an email (saved as a Draft, that's when problem occurred) with such a hefty attachment. I had to get out by using Force Quit.
    Nonetheless, that having been said, when I try to open Mail the window immediately shows the Drafts mailbox with the endless spinning wheel suggesting an operation is in process - - this will go on forever, the computer seems to be gagging on the Draft I tried to save. Even when I am able to see Activity Viewer, my attempts to stop the listed operations are unsuccessful. I have taken the computer offline to try to let the program time out (wheel stop spinning) for up to 36 hours. Doing this, eventually the window will show all the Drafts in the mailbox but the wheel continues to spin thus the appliction allows no other action to take place.
    What I want to be able to do is clear up this mess I've made, delete all unnecessary email sitting in various mailboxes, and get the program to respond again.

    Well, after 11 days of frustration, I seemed to have fixed this dilemma with lots of trial and error, many, many restarts and very long waits, and applying every variation of the multiple tips posted herein from the various patient and knowledgeable global assistants participating on this site. Thanks so much to all.
    During this final push to conquer, after waiting 40+ hours for Mail to timeout, I felt like I almost made a mistake to set me back to square one but somehow averted disaster. With Activity Viewer finally showing that "updating color" for all 16 messages had completed, I mistakenly Forced Quit and thought I might lose all this progress. However, with this activity finally having timed out, along with having moved the Drafts .mbox out of the HD Mail folder onto desktop, Mail re-opened easily and then I was able to finally access and view the Drafts mailbox listing all 16 messages and their size - - - and with no spinning beachball! Very tentatively, I clicked on the largest message and hallelujah - - - again no beachball! I immediately proceeded to slowly and carefully delete each of these Draft messages, then delete all Mail trash, and begin house cleaning all of these folders in Mail.
    It has taken a few other steps to get this machine back to normal. When I re-started computer, Mail proceeded to load 502 duplicate incoming messages, which I just waited out and then deleted without opening. Lastly, the first few times I tried to shut down the computer using Shut Down from pulldown Apple menu, the Shut Down button in the follow-up window did not respond. The first time I used the old paperclip emergency restart; the next time I was able to shut down using keyboard on-off. Third or fourth time and the usual Apple pulldown menu functioned just fine.
    It has only been a day so far, but it appears that things are running reasonably well again. I will continue to clean-up and remove useless data of all types (now and in the future) to allow this machine a little more latitude to perform its called-upon functions. Also, I shall soon learn how to post responsive and appropriate ratings on this site for all of you who helped me work thru this mess.
    I will probably be keeping this computer active for at least several more months, but intend to eventually upgrade to a used G5 iMac, probably an earlier generation. Any final tips from you helpful folks would be appreciated regarding:
    A. Any simple, routine maintenance operations on this current G3 iMac?
    B. Any particular G5 iMac models to pursue or avoid?
    Thanks so much again for your patience and sharing your knowledge. This is truly a helpful discussion site.
    Robert

  • State space time out

    hi all,
    I wanted to actually ask what is a good way for implementing a software timeout with in a state. Normally I use tick count for measuring the elaspsed time and once 5 or 10 seconds have been passed then time out condition occurs and state changes. As in the sample VI i am attaching. Now I know this is a crude form of time out so I was wondering what is actually a good programming practice to do such a task. Keep in mind I am not talking about event structure or some visa comunication (as i know they handle time out them self) ....purely software based .
    p.s its not home work . simply just something I am wondering over.
    Best Regards
    Regards
    Attachments:
    time out lv11.vi ‏8 KB
    time outlv12.vi ‏11 KB

    I usually just use the Elapsed Time express VI.  I have taken it and made my own version to use, but the concept is the same.  But it does really depend on what you are doing.  Most times, you have the option for the user to abort.  So you will want to bounce between a Check Time and Wait For Event states.  The Wait For Event state will have a timeout of its own (something like 100ms usually works well).  Instead of using the Tick Count, use the timestamp instead.  It will give you a larger range to work with and you won't have to worry about the overflow.  It is also easier to debug since you can see the actual time that it starts the current time.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Time out function in VISA configure serial port vi

    I have some doubts regarding the time out functionality of "VISA configure serial port vi":
    1) I have set the time out value as 10s while initializing the port using this vi. Does this mean that for any Rx operation happening on the serial port, it will wait for 10s for the data to be received?
    2) Is this waiting functionality also valid on "bytes at port" vi which I am using before reading the port data?
    Because in my application, the control at serial port is actually not waiting for 10s and is coming out before the desired time out (10s). Do I need to set this time out anywhere else apart from initialization at "VISA configure serial port vi"??
    Can anyone please tell the steps to set this timeout for the serial port?
    Thanks in advance!

    1. A read will return when the first of the following is satisfied:
       a. The number of bytes at byte count has been received.
       b. The termination character (if enabled) has been received.
       c. An error is detected.
       d. The timeout time has elapsed.
    I am not sure what happens if handshaking is enabled and the other device pauses communication.
    2. No. Bytes at port returns immediately. This is a status check and it would not make sense for a timeout to apply.
    Without seeing your code and the data the remote device is sending, we can only guess. My first guess would be that you have termination characters enabled (default) and a termination character appears in your data.
    Lynn

  • How to get rid of the "time out" when using DAQ AI in the example program

    I try an example file called "AcqVoltageSamples_IntClkDigRef" (Visual C++ .NET). It works great. However, if the program has not recieved the data, it sent out a timeout message. How to get rid of the "time out"? I cannot find anywhere in the code. Is this a property I have to reset somewhere else?
    Thank you,
    Yajai.

    Hello Yajai,
    The example program will use the default value for timeout, 10 seconds. To change this, you will have to set the Stream.Timeout value. I inserted this function into the example and set it equal to -1, and the program will wait indefinitely for the trigger signal without timing out. Please see the attached image to how this was implemented.
    I hope this help. Let me know if you have any further questions.
    Regards,
    Sean C.
    Attachments:
    SetTimeout.bmp ‏2305 KB

  • How to set time out in the abap program?

    Hi,
    I want to set the execution time in the IN_UPDATE block of a BADI, could you tell me how to code that?
    When the specified execution time reaches, and the badi is still running, then pop up a window and tell the end user the time out message.
    Does SAP have any function regarding this? Thanks in advance.

    You can have the INPUT be a number of seconds, then calculate the max endtime = SY-UZEIT + INPUT. Have checks throughout the program that returns an error as OUTPUT if exittime >= SY-UZEIT(current time).
    There may be an easier way but this is all I can think of as a user set timeout option.

  • Time out not working in program

    Hello all,
    I have a program that is not timing out after 2 or 3 hours of on-line execution. I have checked that the parameter abap.timeout and it is set to 5200 secs. I have been told that a commit work or a message statement will reset the timmer that controls this time out. However, the part of the code that is eating basiclly all the time does not contain either of these statements. Does any one know of where I could get a complete list of statements that reset the time out timmer?
    On another related issue, when I executed the program in run time analysis it took the normal 2 and a half hours. And on return to the run time analyses main screen I recieved the error  'Unable to end the measurement (error number 5, Time limit reached)' Message no. S7 068. Without any extra information. It's obviously not suprising that the runtime analysis program refuse to analysis code that takes more than two hours to execute but could anyone tell me which parameter controls this time limit?
    Thanks in advance for your help as I am in real need of it.
    Jamie

    Hi Jamie,
    In runtime analysis, these problems are there what you can do the best options in ECC6.0 is ST12 for doing both Run Time Analysis and SQL Trace. In ST12 you have the option to increase the timlimit so that your programs whole measurement will come in file which is generated by SAP.
    Following are the steps for using ST12:
    1. Open ST12. Click on Current Mode.
    2. Enter the program name or transaction code for which you want to do the measurement.
    3.There is button in the middle of the screen which has given the heading as 'Further opt.'  there you can increase the file size to 99MB and at the bottom Max Trace Runtime which you can increase upto 2147483647 and enter.
    4. Then Click on Execute.
    5. Enter the inputs of the Selection screen.
    6. After the program run is completed in the TRACE ANALYSIS section select your program and after that it appears in the Selected trace analysis box.
    7. After that click on ABAP Trace that will give an exact analysis and for SQL Trace Click on Performance Trace.
    8. and for Checking how much CPU Utilization and how much Data base utilization is required click on SUMMARY.
    Thanks
    Harsh

  • How to Install crystal run time programs with out designer.

    Can anyone suggest me  how to install crystal run time program with out installing entire designer software.
    Is it coming along with CR software package, which we have to do custom install or is it coming as a different package.  
    Currently my client is using only the run time programs to trigger crystal  report from VB app but developers have installed entire software for development.  We need to figure out how this install can be done, as it was done long time before and folks who have done it left the company.  
    Any suggestion on this would be of great help to me.

    See this wiki:
    https://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsforVisualStudio.NETRuntimeDistribution-Versions9.1to12.0
    Ludek

  • How to avoid time out error in abap program

    How to avoid time out error in abap program
    based on performance wise i want please help

    Timeout occurs when a statement exceeds its time limit.To avoid this we need to tune the statements.
    I can give give you few tips for tune a select stament.
    1.The order of the feilds in the select statement should be same as the order of fields in the database table.
    2.It is always advisible to use the key fields when you are using the where clause.
    3. Sort the internal table while using the for all entreis statements.
    4.Use index in where clause if necessary.
    5.When you have a read statement user binary search but before this a sort statement should be there.
    6. Check your program with the Tcode ST05 and check which statement takes much time based on that tune that.

  • Need to have an alert sound when the program I'm working in times out

    I work at the Univ of Utah. We have a program that times out after 40 mins. I've been told by the campus IT folks that Firefox does not supply an alert sound option for this type of situation. Is this information correct? If not, where do I find the option to have an alert sound?

    Thanks! - worked great!!!...
    I checked out the onStatus function in the help documentation
    before I posted the thread, but didn't understand how to use it.
    Based on your code below, I still kind of don't (even though the
    code works fine)...
    Can you kind of explain, line by line, what's going on in the
    little tidbit of code that you wrote. That way I'm not just fishing
    for help blindly, and I can actually learn something so I don't
    have to bother people in these forums in the future (and maybe help
    others!)
    Thanks again, Leo - much appreciated!!!...

Maybe you are looking for

  • How can I manage playlists on my iPhone 6?

    I just got my iPhone 6 and can't figure out how to create and manage music playlists!! First I created one, added some tunes. but then I wasn't able to add more (the only editing options were to delete songs on the playlist or delete the list altoget

  • How to Schedule Reports?

    Hi, Please clarify the doubts, In Content Management -> Reports -> Approval Maintenance Reports, how to schedule the reports and how to make it to run. And how to send these reports through mail for hourly basis automatically. Thanks in Advance Vani

  • Issues with iPad and Facebook newsfeed

    I have an iPad, and when I am using Facebook, I get a little way down on my newsfeed and it stops.....then a small grey dot appears at the bottom of the newsfeed? Any ideas?

  • Thunar won't update on Filesystem change

    Hi everyone Is it intended that Thunar only displays changes on the Filesystem after i clicked "Refresh". For example if I delete a file via command line Thunar still displays it till i hit refresh.... this isn't really how a filemanger should work..

  • Time dependency

    Hi,   Assuming i have entered data for entity1 from 2009.jan till 2009.dec and everything is aggregated up to parent1 and parent2, etc. If entity1 is sold in 2009.june and is no longer part of the group, what can i do such that aggregation is done fr