‎2007 Nov 12 12:51 PM
Hi Experts!!
I want to set "progress bar" while executing my ABAP program.
or " Wait... Your request being processed" In the center of the window.
Anybody help me out with sample code.
Thanks in advance.
‎2007 Nov 12 12:53 PM
Hi,
try this 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.
‎2007 Nov 12 12:53 PM
Hi,
try this 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.
‎2007 Nov 12 12:53 PM
Hi Anil,
Try below one.
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' "B20K8A0GP1
EXPORTING
text = 'Pass your text here '(010).
Regards,
Kishore
‎2007 Nov 12 12:55 PM
Hi I want the same should come as pop_up window in the centre of the window like BSP Application.
Thanks
‎2007 Nov 12 12:58 PM
‎2007 Nov 12 12:55 PM
Anil,
do like this
DO 100 TIMES.
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING
percentage = sy-index
text = sy-index.
ENDDO.
<b>Reward points if it helps,</b>
Satish
‎2007 Nov 12 12:58 PM
hi
good
you need to call the function module SAPGUI_PROGRESS_INDICATOR to show the progress indicator
thanks
mrutyun^
‎2007 Nov 12 1:09 PM
If you check this below link. Loading page....
Can we write same in ABAP for loading Screen ?
/people/artem.gratchev/blog/2005/02/02/1001-mistake-in-bsp-programing-1-reaction-time
‎2007 Nov 12 1:08 PM
Hi,
refer to the following link:
http://sapdev.co.uk/reporting/indhome.htm
Hope this helps.
Reward if helpful.
Regards,
Sipra
‎2007 Nov 12 1:15 PM
Hi Anil
I am going to give you the best answer for this :
Use this function module just before output......
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING
text = 'Wait, Generating....'
EXCEPTIONS
OTHERS = 1.
You will surely get want you are looking for.....
Please reward if it is useful.
Rohit G
‎2007 Nov 12 1:17 PM
Hi Anil
For Pop Up window, with your own text.....
You can use this ...
CALL FUNCTION 'POPUP_TO_INFORM'
EXPORTING
titel = 'Process Discontinued'(006)
txt1 = 'No Payroll Results available for'(007)
txt2 = 'employee/employees selected for this criteria'(008)
EXCEPTIONS
OTHERS = 1.
Kindly Reward if useful.
Rohit G