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

how to close screen?

Former Member
0 Likes
7,464

Hello

i've created a screen and placed some buttons in it using layout editor.The screen is smaller than the standard ones.

for ex:

CALL SCREEN 105 STARTING AT 45 8 ENDING AT 128 28.

My question,is how can i close this window from the X mark in the right upper corner(just like you close any other window, in Windows for example).

What is the code for that X mark in the PAI of the screen?

thanks

1 ACCEPTED SOLUTION
Read only

varma_narayana
Active Contributor
0 Likes
2,731

Hi...

You need to call the Gui Status in the PBO of ur model screen 105.

It will generate a X mark to close the screen.

There is no need of any coding.

Regards.

Hello

i've created a screen and placed some buttons in it using layout editor.The screen is smaller than the standard ones.

for ex:

CALL SCREEN 105 STARTING AT 45 8 ENDING AT 128 28.

My question,is how can i close this window from the X mark in the right upper corner(just like you close any other window, in Windows for example).

What is the code for that X mark in the PAI of the screen?

thanks

5 REPLIES 5
Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
2,731

Hi,

You just need to create a PAI module with addition AT EXIT-COMMAND and there you can put the code LEAVE PROGRAM or LEAVE SCREEN based on your need.

Create a GUI status and then assign X icon a fcode and ftype 'E'.

Regards,

Sesh

null

Read only

varma_narayana
Active Contributor
0 Likes
2,732

Hi...

You need to call the Gui Status in the PBO of ur model screen 105.

It will generate a X mark to close the screen.

There is no need of any coding.

Regards.

Read only

Former Member
0 Likes
2,731

Hi Seba,

Try the following:

AT USER-COMMAND.

CASE sy-ucomm.

WHEN 'EXIT' OR 'CANC' OR 'BACK'.

LEAVE TO SCREEN 0.

ENDCASE.

Ashven

Read only

0 Likes
2,731

Thanks to all of you for the quick answers.

It seems that all of them work

bye

Read only

Former Member
0 Likes
2,731

Hi,

U can use

1) Leave to screen 0 : to go to previous screen.

2) Leave Screen

Regards,

Kiran