Application Development 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: 

Where to place progress clock logic in module pool prog.

Former Member
0 Kudos

hi,

I am desiging a module pool program , i need to show  progress clock on my screen , so that user can know the status of program ,

now my question is where to place this progress clock function module in module pool program , so that it can indicate correctly the progress of the

program.

1 ACCEPTED SOLUTION

raymond_giuseppi
Active Contributor
0 Kudos

From your other thread (close one please) internal table with few records (Progress indicator) the problem was that you caled the FM with a ZERO percentage, so it was not displaying.

Regards;

Raymond

PS: Read theRules of Engagement

8 REPLIES 8

kerem_kayacan
Active Participant
0 Kudos

If your progress takes place before the screen is displayed, place it in a PBO module. If it takes place after the user triggers a command, place it in a PAI module.

amy_king
Active Contributor
0 Kudos

Hi Kiran,

When I have done this I have typically called SAPGUI_PROGRESS_INDICATOR several times during the execution of the "user command" PAI module, each time passing a static percentage value closer and closer to 100%, e.g., first call 15%, second call 30%, ..., final call 90%, etc.

In reply to your other discussion on this same question, inside subroutine progress_indicator, sy-tabix may not have the value you expect. You might try passing the value of sy-tabix into the subroutine as an argument, e.g.,

loop at it_tab into wa_tab.

    lv_tabix = sy-tabix.

    perform progress_indicator using lv_tabix.

    ...

endloop

Cheers,

Amy

Former Member
0 Kudos

I got the sy-tabix values correctly, the clock shows only once.....not continuous.

raymond_giuseppi
Active Contributor
0 Kudos

From your other thread (close one please) internal table with few records (Progress indicator) the problem was that you caled the FM with a ZERO percentage, so it was not displaying.

Regards;

Raymond

PS: Read theRules of Engagement

0 Kudos

I tried  changing percentage varaible from datatype  P to I ,

it doesnt work , the indicator doesnt show up eventhough i passed correct percentage value in the function module.

0 Kudos

As soon as percentage is greater or equal than 1, text is not initial, and this is called online, you should see the clock. Does one of your other forms perform some interaction with SAP GUI (Like OLE with Excel or such command) that could prevent the display of the clock ?

Regards,

Raymond

0 Kudos

Yes , all other three forms has option to display an ALV output list, and also Excel output depending

on the user selection. initially Iam trying the output with ALV grid display  during this the clock must appear.

I tried out this clock by writing a sample program, it is working perfectly , but in my original program

i am facing problem.

0 Kudos

Actually i was working with big program  of module pool , in this program the progress indicator was called twice in one of the routines,  this caused the problem in GUI by overlapping one clock over the other.

the problem is solved thanks for the suggestion.