Hi all,
I'm working on an enjoy transaction on an old R3 system (46C).
When an user enters some info (e.g. by writing into an input field and pressing "enter"), the following - standard - sequence is triggered:
(the user press enter) 1-> standard code execution 2-> USER EXITS 3-> ... 4
Now; i have to implement a check in an user exit and I'd like to obtain a sort of rollback in case of negative check.
The idea is as follows: if the field X has been changed, ask the user (via popup) to confirm. If the user confirms then the flow should go regularly. If the user says "no", I'd like to "rollback" the modification.
Now; the situation the user changes is dynamically updated using IMPORT/EXPORT to memory.. so the problem to restore the previous situation is quite easy.
The problem is, after that field X has been restored to the previous value in 3, how can I "rollback" from 3 to 1?
Alternatively; is there a way, after 3 has been executed, to trigger again the sequence from scratch after restoring the correct field value?
The problem is generated because that changed value also triggers some standard behaviours that I'd like not to be executed if the user want to undo the change. Another solution could be to trigger again the sequence when restoring the value.
Looking forward to your help, thanks again 😉