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

Call screen

Former Member
0 Likes
1,096

Hi!

I'm calling a modal dialog window, like this:

CALL SCREEN 2100 STARTING AT 1 1 ENDING AT 80 15.

It has a status, and am am able to close the window, using one button from the status.

But the window is not closing, when I click on the 'X' in the right-top corner (standard windows close button).

What shall I do to close the window with this icon?

Thank you

Tamá

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
999

Tamas,

enter /h (breake point) and catch the function code(sy-ucomm).

Then IN PAI .

Module screen_cancel.

In rthis module write code

CASE sy-ucomm.

when 'your function code'.

leave screen to 0.

ENDCASE.

Don't forget to reward if useful....

6 REPLIES 6
Read only

Former Member
0 Likes
999

Hi,

Do like this in PAI

WHEN 'EXIT'.

LEAVE PROGRAM.

Regards,

Satish

Read only

Former Member
0 Likes
1,000

Tamas,

enter /h (breake point) and catch the function code(sy-ucomm).

Then IN PAI .

Module screen_cancel.

In rthis module write code

CASE sy-ucomm.

when 'your function code'.

leave screen to 0.

ENDCASE.

Don't forget to reward if useful....

Read only

0 Likes
999

It's not calling the PAI, when I click on it, so no user command checking is available.

Any other options?

Read only

0 Likes
999

Hi,

Enable the EXIT button in PF-STATUS.

Check this program also

DEMO_DYNPRO_AT_EXIT_COMMAND

Regards,

Satish

Read only

0 Likes
999

I wonder why was it needed, it is not appearing on a modal dialog window... Anyways it is working now, thanx for the solution.

Read only

Former Member
0 Likes
999

Tams,

Set the PF-STATUS IN PBO of that screen and add cancel button.

Then write the code as given earlier.

Don't forget to reward if useful...