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

get active processes

Former Member
0 Likes
620

Hello,

in my program X there is a 'SUBMIT Y ... AND RETURN'. Y starts an asynchronous process and returns to X. In program X a dynpro-refreshing method is called, but the asynchronous process isn't yet finished, so the result that is shown on the dynrpo isn't completely correct.

Is there a way to check, if the process is already finished, before refreshing the dynpro? Something like reading the memory, or looking for still active/running processes.

thx

3 REPLIES 3
Read only

Former Member
0 Likes
542

Hi Mike,

You can commit the process by

COMMIT_WORK

or you can use the BAPI

BAPI_COMMIT_TRANSACTION

Hope this might work.

Award points if this is helpful.

Regards,

Ravi G

Read only

0 Likes
542

you think of using the BAPI 'BAPI_COMMIT_TRANSACTION' to have a synchronous process? But the problem is, that it is not possible to modify program Y!

Read only

Former Member
0 Likes
542

Take a look at the code behind SAP transaction SM50 - I think there is a couple of Function modules that do most of the work of getting active processes.

Form BUILD_LIST of program RSMON000_ALV calls function "TH_WPINFO" - perhaps start with this or others in the same group.

Andrew