Hi all, please forgive the (probably) nooby question, some stuffs aren't so clear to me and maybe you can help.
I'm trying to debug a function that generates an error msg. I tried to debug a bit and located the point in which the error message is generated. I've seen that the error message is caused by a sy-subrc value NE 0 after a function call. Well, then the problem is that something goes wrong in that function.
Looking at the call, I've seen that the named exceptions are:
EXCEPTIONS error_message = 01 OTHER = 02.
The exact sy-subrc at the end of that call is 01, but can't locate what goes wrong. I expected to find something like a RAISE statement, but it isn't present. If I consider that function as a "black box", then I see that after its execution the sy-subrc value is 01 (and an error message is generated in the code that follows). If I check in depth the fuction, I see that:
- no raise exceptions are found.
- there are some calls to other functions and also some performs, and loops on tables...
Then the question is: how can I see (debugging a run) where exactly that sy-subrc is set to 01? Or in other words, what is responsable for a sy-subrc change in return for a call function?
This seems a quite complex scenario (the code is quite tricky), but maybe there's some trick in debug I don't know, or something to look for that can help me.
Thanks in advance.