cancel
Showing results for 
Search instead for 
Did you mean: 

collect result of STARTING NEW TASK running multiple steps in RAP unmanaged

yavuzasik
Participant
0 Kudos
130

Hi,

I want to run a series of operations after each other by triggering a CUSTOM ACTION in an UNMANAGED RAP scenario. After each step a COMMIT WORK statement should be called because each step is dependent on the previous step. I can achieve that by running them in the SAVE method with STARTING NEW TASK option. However I also need to know the evaulate the results and update the fiori screen accordingly as we used to do with RECEIVING RESULT option in non cloud ABAP . I think with side effects it can be managed to perform a similar action but in synchoronous operations. I wonder how I can achieve the same thing in an asynchronous scenario. 

Of course there is an alternative to create N buttons for each of the steps .However this is of course not user friendly.  If there is a better practice to implement this requirement in RAP context , I would like to hear that as well.

Thanks..

View Entire Topic
yavuzasik
Participant

Hi all,

I tried to resolve this problem by implementing a cl_abap_parallel class instance. This way i have started a new task parallel to the the save RAP method implementation of the behavior pool class. And once the task finishes it returns a result table and the Fiori screen can be refreshed with the completed final results. 

This sounds to me quite a workaround solution though, it was simply applicable and clean. I would like to still hear new suggestions.