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

Use of function module 'sapgui_progress_indicator'

Former Member
0 Likes
8,872

I am collecting data in an internal table TBL_INTER. it has enormous amount of records,

Now i am looping on this internal table TBL_INTER.

i want to call the function module 'SAPGUI_PROGRESS_INDICATOR' after every 25000 records.Please help me to apply the logic as i am short of time.

i.e i need to call the function module at record no 25000,50000 .............,i.e multiples of 25000.

7 REPLIES 7
Read only

Former Member
0 Likes
3,504

Hi,

Check this link for a sample code..

Thanks,

Naren

Read only

anversha_s
Active Contributor
0 Likes
3,504

hi,

Chk this.

PARAMETERS PERC TYPE P DECIMALS 2.
 
DATA TEXT(30) VALUE 'Scanning for records...please wait'.
 
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
     EXPORTING
          PERCENTAGE = PERC
          TEXT       = TEXT.
 
 
DO 2000 TIMES.
ENDDO.

Regards

Anversha

Read only

Former Member
0 Likes
3,504

Hi,

loop at itab.
if sy-tabiix = 25000.
 
  call function 'SAPGUI_PROGRESS_INDICATOR'
       exporting
            percentage = sy-tabix
            text       = 'Processing 25000 Records'.
  wait up to 1 seconds.
endif.
endloop.

Hope this helps.

Regards,

Richa.

Read only

Former Member
0 Likes
3,504

Hi,

Check the follwoing code

say itab contains huge data.

data: n type i default 1.

loop at itab.

if sy-tabiix = 25000 * n. <----


do this for getting multiples

call function 'SAPGUI_PROGRESS_INDICATOR'

exporting

percentage = sy-tabix

text = 'Processing multiples of 25000 Records'.

n = n + 1.

endif.

endloop.

Revrt back if nay issues.

Reward with points if helpful.

Regards,

Naveen

Read only

Former Member
0 Likes
3,504

Hi,

Refer this e.g.:

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.

WRITE: / 'PROGRESS INDICATOR'.

Jogdand M B

Read only

former_member784222
Active Participant
0 Likes
3,504

Hi,

data: modval type i.

Loop at itab.

modval = sy-tabix % 25000.

if modval = 0.

CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'

EXPORTING

PERCENTAGE = 100

TEXT = sy-tabix.

endif.

endloop.

regards,

S. Chandra Mouli.

endloop.

Read only

Former Member
3,504

as a first statement inside the loop use

loop at itab.

if sy-tabix mod (25000) = 0.

call .SAPGUI_PROGRESS_INDICATOR'

endif.

endif.

endloop.