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

SAPGUI_PROGRESS_INDICATOR disappear

Former Member
0 Likes
1,778

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.

8 REPLIES 8
Read only

Former Member
0 Likes
1,255

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

Read only

0 Likes
1,255

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.

Read only

0 Likes
1,255

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

Read only

Former Member
0 Likes
1,255

Thank you, I tried with this instruction before BAPI call, but doesn't work.

Read only

Former Member
0 Likes
1,255

Thank you, I tried with this instruction before BAPI call, but doesn't work.

Read only

0 Likes
1,255

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

Read only

0 Likes
1,255

Hi,

Your demo works fine. In debugging process is the same problem. I tried from1 to 15 seconds but doesn't work.

Zuly

Read only

0 Likes
1,255

Hi Zuly,

It will not work in debugging. In a normal frontend run it should work with a few seconds of wait.

Regards,

Shravan