‎2007 May 30 6:08 AM
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.
‎2007 May 30 6:12 AM
‎2007 May 30 6:15 AM
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
‎2007 May 30 6:17 AM
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.
‎2007 May 30 7:37 AM
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
‎2007 May 30 8:49 AM
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
‎2007 May 30 9:02 AM
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.
‎2007 May 30 9:07 PM
as a first statement inside the loop use
loop at itab.
if sy-tabix mod (25000) = 0.
call .SAPGUI_PROGRESS_INDICATOR'
endif.
endif.
endloop.