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: 

Call screen

Former Member
0 Kudos
179

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

Former Member
0 Kudos
82

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

Former Member
0 Kudos
82

Hi,

Do like this in PAI

WHEN 'EXIT'.

LEAVE PROGRAM.

Regards,

Satish

Former Member
0 Kudos
83

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....

0 Kudos
82

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

Any other options?

0 Kudos
82

Hi,

Enable the EXIT button in PF-STATUS.

Check this program also

DEMO_DYNPRO_AT_EXIT_COMMAND

Regards,

Satish

0 Kudos
82

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

Former Member
0 Kudos
82

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...