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

Function module to display % complete message

Former Member
0 Likes
1,829

Many moons ago I remember seeing a fn module that can display the % complete message as a 'S' type message. Can't seem to find it now. I need to know the name of the fn module.

Thanks.

Rohan

1 ACCEPTED SOLUTION
Read only

Manohar2u
Active Contributor
0 Likes
661

Use 'SAPGUI_PROGRESS_INDICATOR' FM

CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'

EXPORTING

PERCENTAGE = <Percentage complete>

TEXT = message

EXCEPTIONS

OTHERS = 1.

Regds

Manohar

4 REPLIES 4
Read only

Manohar2u
Active Contributor
0 Likes
662

Use 'SAPGUI_PROGRESS_INDICATOR' FM

CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'

EXPORTING

PERCENTAGE = <Percentage complete>

TEXT = message

EXCEPTIONS

OTHERS = 1.

Regds

Manohar

Read only

Former Member
0 Likes
661

Thats what i was looking for - thanks.

rohan

Read only

0 Likes
661

Rohan,

please award Manohar the points and close the thread.

Read only

Former Member
661

Hi Nir,

U can refer to ABAP FAQ..

https://www.sdn.sap.com/irj/sdn/developerareas/abap?rid=/library/uuid/840ad679-0601-0010-cd8e-9989fd...

It has an example of the same ...

Showing a progress bar in ABAP

This process is very easy but a lot of programmers don't know how to do it. You just have to call the ABAP FM SAPGUI_PROGRESS_INDICATOR, at the appropriate points.

Below is a simple example, give it a try !!

REPORT zdany_progress_bar.

DATA: percentage_text TYPE c LENGTH 5.

DO 100 TIMES.

WAIT UP TO '0.5' SECONDS.

percentage_text(3) = sy-index.

percentage_text+3 = '%'.

CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'

EXPORTING

percentage = sy-index

text = percentage_text.

ENDDO.

Regards,

Tanveer.

<b>Please mark helpful answers</b>