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: 

how do i update module pool screen while processing ?

0 Kudos

Hello all,

i got a requirement to update module pool screen while processing. i.e. here i am having step wise processing

like step-1, 2 ,3..etc. after clicking on process button system has to run all steps from 1 to 5 ,then i can update the step wise status in MPP screen after execution of all steps only but here my requirement is to update the status against each step in the run time only. can any one help on this..

Thanks in advance.

Thanks & Regards,

RajA

7 REPLIES 7

former_member182550
Active Contributor
0 Kudos

Ever thought about using the SAP GUI Progress Indicator, available as a function module SAPGUI_PROGRESS_INDICATOR, which is also used in the majority of any of the 'progress' classes.

Then update the MPP screen ?

Regards

Rich

0 Kudos

Dear Richard Harper,

Thank you for your reply.

Here i have to update the status against each step, for example step 1, step 2 ... step 5 all are push buttons, beside each push button i am taking one ( I/O or Text ) field to update status whether it is in progress or completed ( through signal lights or icons ), after clicking on process button all process will run one by one till step 5 but i need to update the status in the run time.

i.e., Initially all 5 steps status are empty, after clicking on process button we need to update the status field(I/O) against step 1 as in Progress and after completion of step 1 we have to update the status field(I/O) against step 1 as completed and status field (I/O) against step 2 as in progress as the same way for remaining steps status.

Thanks,

RajA

Sandra_Rossi
Active Contributor
0 Kudos

The solution will be specific to the type of "status" UI element you are using. What is it exactly please? (screenshot welcome)

0 Kudos

Dear Sandra Rossi,

i have to update the status using traffic lights or using icons.

Thanks,

RajA

former_member182550
Active Contributor
0 Kudos

Ok, next suggestion is to have a look at the function module dynp_values_update.

However, you must realise where SAP came from, and that was IBM Mainframes (this can be seen in some of the function codes), for example F3 to exit a screen is still exit a screen in Z/OS, F8 for execute is execute etc. These screens were block oriented in that the computer sent an entire screen, the user filled in all the fields and then sent the whole lot back in one go rather than character at a time (like Unix or Windows) so what you are doing is trying to make SAP actually do something that it was not made to do but has been kludged to try and get it to do that.

Rich

0 Kudos

Hi Rich,

DYNP_VALUES_UPDATE function module was able to update the status after execution of all steps and not used for updating the status in the run time ( while processing remaining steps).

Thanks,

RajA

Sandra_Rossi
Active Contributor
0 Kudos

With basic SAP GUI elements like icons, the only solution I can imagine is :

  • Start the first step in asynchronous task, with registering of a callback method or subroutine when the task is done (call function '...' starting new task ... calling|performing ...)
  • (HERE the user can possibly do screen actions, which may conflict with the automatic refresh of the screen, but you may change the screen to prevent any action)
  • When the task is done, the callback method/subroutine is automatically called, it has to do these actions:
  • 1) change the global variable containing the icon
  • 2) start the second step in an asynchronous task, with registering of another callback method or subroutine when the task is done
  • 3) trigger PAI/PBO/new display of screen by simulating the Enter key (or any other function you want) with CALL FUNCTION 'SAPGUI_SET_FUNCTIONCODE' EXPORTING FUNCTIONCODE = '='. (parameter = is a trick for the Enter key)
  • ETC.