Application Development and Automation 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: 
Read only

leave subscreen

Former Member
0 Likes
1,093

hi all

i had create a subscreen using dialog programming.

My question is hw to leave the subscreen by clicking the X at the top right cornor of the subscreen. Any code to use?

Thks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
814

Hi Gray,

Place One push button on the subscreen with name as we want for example i will place one push button with name CLOSE.In that CLOSE push button mention fuunciton code as CLOSE.

LOGIC:write this logic in PAI event ok..

case sy-ucomm.

when 'CLOSE'.

leave program.

endcase.

Reward points if helpful.

Kiran Kumar.G.A

Have a Nice Day..

Edited by: KIRAN KUMAR on Jan 16, 2008 7:53 AM

2 REPLIES 2
Read only

Former Member
0 Likes
815

Hi Gray,

Place One push button on the subscreen with name as we want for example i will place one push button with name CLOSE.In that CLOSE push button mention fuunciton code as CLOSE.

LOGIC:write this logic in PAI event ok..

case sy-ucomm.

when 'CLOSE'.

leave program.

endcase.

Reward points if helpful.

Kiran Kumar.G.A

Have a Nice Day..

Edited by: KIRAN KUMAR on Jan 16, 2008 7:53 AM

Read only

0 Likes
814

Thank for yr reply. I already solve the problem myself.

Actually u are creating extra button to leave the screen. What i wanted is the X cross found on the top corner in every screen. When user click on the X, the screen will close.

The solution is to use exit-command.