2025 Jan 07 9:48 AM - edited 2025 Jan 07 1:25 PM
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..
Request clarification before answering.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
62 | |
10 | |
8 | |
8 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.