2007 Jul 12 2:12 PM
Hi guys...
quick question, I've done this before but can't just remember how to do it right now... Does anyone know how you can manipulate the screen stack?
(you know, looking up the previous (or n-X) caller, decreasing stack level by X, and leaving to the previous (or n-X) caller, that sort of thing)
Will reward points!
thanks,
Rob
2007 Jul 13 6:36 AM
Well there is a function module SYSTEM_CALLSTACK which returns some of this - and if you browse the code you'll see it does a "call 'SAPCORE ..." which may also open the door you're asking about... However, I wouldn't dare jump around the stack like this, but would just use ABAP logic to step back up the layers e.g. "if g_exit_no = 'X'. / exit. "or leave screen or whatever / endif." all the way back up through the path you travelled down.