Skip to Content
author's profile photo Former Member
Former Member

Call screen

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á

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 30, 2008 at 08:21 AM

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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 30, 2008 at 08:20 AM

    Hi,

    Do like this in PAI

    WHEN 'EXIT'.

    LEAVE PROGRAM.

    Regards,

    Satish

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 30, 2008 at 08:30 AM

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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.