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 F/M use ?

Former Member
0 Likes
5,060

Hi SAP gurus,

What is the use of the F/M 'SAPGUI_PROGRESS_INDICATOR' and how to use it.

Could you please illustrate with a clear example.

Regards,

Rahul.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,939

Hi

When the report is running it will indicate the progress of the process as per the text you give to it.It is indicated as a round circle in the status bar.

in the loop of internal table write

PERFORM process_ind

data v_pcent TYPE sy-tabix.

see the sample code

v_pcent = 100 * sy-tabix / v_lines.

CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'

EXPORTING

percentage = v_pcent

text = 'Processing the Selected Records...'.

Regards

Anji

Hi SAP gurus,

What is the use of the F/M 'SAPGUI_PROGRESS_INDICATOR' and how to use it.

Could you please illustrate with a clear example.

Regards,

Rahul.

6 REPLIES 6
Read only

Former Member
0 Likes
1,940

Hi

When the report is running it will indicate the progress of the process as per the text you give to it.It is indicated as a round circle in the status bar.

in the loop of internal table write

PERFORM process_ind

data v_pcent TYPE sy-tabix.

see the sample code

v_pcent = 100 * sy-tabix / v_lines.

CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'

EXPORTING

percentage = v_pcent

text = 'Processing the Selected Records...'.

Regards

Anji

Read only

Former Member
1,939

Hi,

This FM is used to display/show a progress bar on the SAP GUI, and give the user some idea of what is happening.

Please check this sample code.


data: index type i.
do 4 times.
index = sy-index * 25.
 
  call function 'SAPGUI_PROGRESS_INDICATOR'
       exporting
            percentage = index
            text       = 'Processing Data'.
  wait up to 1 seconds.
enddo.

Also check this thread for another sample codes.

Regards,

Ferry Lianto

Read only

Former Member
0 Likes
1,939

Rahul,

Used to show the current activity and the progress.


CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'              
      EXPORTING                                        
        TEXT = text-022.     "Reading short documents

Also check OSS note 732471.

Regards

Aneesh.

Read only

Former Member
0 Likes
1,939

Hello,

Using this function,you can display progress of processing in status bar with message.

DATA: v_text TYPE c LENGTH 5.

do 50 times.

WAIT UP TO '1' SECONDS.

v_text(3) = sy-index.

v_text+3 = '%'.

CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'

EXPORTING

percentage = sy-index

text = v_text.

enddo.

Read only

0 Likes
1,939

Thanku all

Read only

0 Likes
1,939

Thank you all