‎2012 Jul 09 4:50 PM
Hello!
I have a problem with SAPGUI_PROGRESS_INDICATOR when I am calling BAPI_SALESORDER_CHANGE. The progress in Status Bar disappear when I execute this BAPI.
‎2012 Jul 09 5:17 PM
Hi Zuly,
I did not really understand your question (Also could not open the code - Please post it again in a notepad). What you are describing is supposed to be normal behavior. Try this simple program to see how it works.
DATA lv_percentage(5).
DO 10 TIMES.
lv_percentage = 10 + lv_percentage.
WAIT UP TO 1 SECONDS.
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING
percentage = lv_percentage
text = 'Going on'.
ENDDO.
You can call SAPGUI_PROGRESS_INDICATOR display a text and some percentage and then after the BAPI call, display increased percentage by calling SAPGUI_PROGRESS_INDICATOR again.
Regards,
Shravan
‎2012 Jul 09 5:29 PM
Hi Shravan,
Thank you for your reply,
my problem is: the progress indicator in status bar dissappear when I call BAPI_SALESORDER_CHANGE, after this BAPI is executed progress indicator appear again with the new percent value. But I need that progress indicator remain in status bar.
This is my code:
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING
PERCENTAGE = 40
TEXT = TEXT.
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
SALESDOCUMENT = P_VBELN
ORDER_HEADER_INX = HEADER_INX
TABLES
RETURN = RETURN
ORDER_ITEM_IN = ORDER_ITEM_IN
ORDER_ITEM_INX = ORDER_ITEM_INX
SCHEDULE_LINES = SCHEDULE_LINES
SCHEDULE_LINESX = SCHEDULE_LINESX.
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING
PERCENTAGE = 80
TEXT = TEXT.
‎2012 Jul 09 5:35 PM
I think the execution is very fast - to display the progress status. Try to Introduce a wait for a second before the BAPI call.
Regards,
Shravan
‎2012 Jul 09 5:48 PM
Thank you, I tried with this instruction before BAPI call, but doesn't work.
‎2012 Jul 09 5:48 PM
Thank you, I tried with this instruction before BAPI call, but doesn't work.
‎2012 Jul 09 6:00 PM
Hi Zuly,
Are you testing this in debugging? That might not work. Try increasing the wait time - say 3 sec? Does my demo program work for you?
Regards,
Shravan
‎2012 Jul 09 9:45 PM
Hi,
Your demo works fine. In debugging process is the same problem. I tried from1 to 15 seconds but doesn't work.
Zuly
‎2012 Jul 09 9:50 PM
Hi Zuly,
It will not work in debugging. In a normal frontend run it should work with a few seconds of wait.
Regards,
Shravan