‎2007 Aug 24 10:02 AM
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
‎2007 Aug 24 10:08 AM
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
‎2007 Aug 24 10:30 AM
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!
‎2007 Aug 24 10:26 AM
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