Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

screen stack manipulation

Former Member
0 Kudos
324

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

1 REPLY 1

Former Member
0 Kudos
98

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.