Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Question about subscreen

Hi all,

In my program, my main screen is 0100 and I have a subscreen 0200. When I'm in subscreen 0200 and click on the Back (green arrow) button, it always execute the Exit Command of my main screen. In the Exit module of my main screen, I have

CASE V_OKCODE.

WHEN C_EXIT OR C_BACK.

LEAVE TO SCREEN 0.

WHEN OTHERS.

ENDCASE.

which is what I want when I'm in my main screen as this will exit my program. However, when I'm in my subscreen, it will also fire this code and exit the program entirely, which is not what I want. What I need is when I'm in my subscreen and click on the Back button, I need to exit to my main screen and if I'm in my main, I will exit the program if click on Back button again.

How can I do this? Thanks in advance.

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question