‎2005 Dec 09 1:28 AM
Hi ALl,
I am fetching the data from different tables and after getting the data into the final itable am uploading to front end using ws_download function.
I just want to put progress indicator to show the process during ws_download uploads the data into file.
Have any idea?
Rgds
Sri
‎2005 Dec 09 1:36 AM
see below example code
REPORT ZGUIBAR.
DATA: A LIKE SY-UCOMM.
DO 100 TIMES.
DO 300 TIMES.
GET TIME.
ENDDO.
A(3) = SY-INDEX.A+3 = '%'.
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING
PERCENTAGE = SY-INDEX
TEXT = A.
ENDDO.
*--- End of Program
‎2005 Dec 09 1:40 AM
Hi
I know this process of coding to get progress indicator.
My problem is after fetching all the data into itable, i down load it to front end using ws_download function.
If i put progress indicator function before ws_download. It doesn't show actual progress of system while updating data into excel. Anyideas?
‎2005 Dec 09 1:43 AM
Infact the actual problem is system is timing out while using ws_download function.. uploading data to excel.
Any ideas are appreciated.
‎2005 Dec 09 1:49 AM
If I understood correctly, you cannot show the progress of ws_download function module. either you can call before and after ws_download.
Regarding timing out, probably the you are trying download huge amount of data. may be you need download partly to the presentation server.
And also check with basis people there will be some settings how much time should a program execute, if you increase it might solve your problem.
‎2005 Dec 09 2:11 AM
Hi,
Please check with basis people adjust time out settings.
you upload into different subsets to avoid timing issue.
‎2005 Dec 09 2:19 AM
You can not use the progress indicator to tell you the status of the WS_DOWNLOAD because of course the progress indicator will be outside of the the function call. If you really wanted to use a progress indicator you would have to code the download yourself using OLE, then you would be able to put a progress indicator in the middle of the OLE code. But be warned, the using a progress indicator does slow down the processing. We had a program that would show the progress after ever record processed, it took forever, when we changed it to only show every 1000 records, it really ran fast.
Be careful....
REgards,
Rich Heilman
‎2005 Dec 09 3:31 AM
I think all you can do is to manage the program so that it selects fewer records in each run and therefore downloads less data. But you'll have to execute the program more than once.
Your basis people probably won't want to change the timeout parameters for one program.
Rob