Hi Experts,
I am working on sending a email notification to users when releasing a task.
When releasing the task, code inspector has to be triggered and if the objects contain errors the email should be sent.
I have created a new implementation for BADI: CTS_REQUEST_CHECK.
The procedure I used relies here How to trigger Code Inspector checks during the release of a 'task'? but I have twisted a few things to check it from some variant I created.
Everything worked just fine but now the GET_RESULT_TREE and RUN method from the sci_check method are coming back with no error result.
If on the same object I manually run the code inspector then the result tree has results and it shows up fine.
Can you have a look at the attached code for the SCI_CHECK method and let me know what am I doing wrong?
Thank you and appreciate your help in advance!
Best regards,
Elena