Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Progress indicator

Former Member
0 Likes
1,097

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

7 REPLIES 7
Read only

Former Member
0 Likes
888

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

Read only

Former Member
0 Likes
888

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?

Read only

Former Member
0 Likes
888

Infact the actual problem is system is timing out while using ws_download function.. uploading data to excel.

Any ideas are appreciated.

Read only

0 Likes
888

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.

Read only

0 Likes
888

Hi,

Please check with basis people adjust time out settings.

you upload into different subsets to avoid timing issue.

Read only

0 Likes
888

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

Read only

0 Likes
888

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