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

Right implementation for cancel button in status gui


I'm wondering what's the right code to put into cancel or exit button when we're designing a screen.

Until I know, 'back' button gives you to the last screen, 'exit' button leaves the transaction, and 'cancel' button do the same and avoid screen checks such as obligatory fields.

But, how can I implement this behaviour with abap source code?

thanks in advance

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 22, 2006 at 08:45 AM

    Hello Javier..

    In the program the first thing to do is to create a screen.

    CALL SCREEN 100. " Double Click here to create the screen.

    Then you will see 2 parts, PBO (proceess before output) and PAI Process after input.

    In the PBO you should create the status like this...

    Uncomment the module status_0100 and double click to create it.

    uncomment SET PF-STATUS 'yourStatus'. (double click)-> here is were you create the buttons actions. Display the sreen until you see the regular buttons (exit,cancel,back) and write 'BACK' for each one.

    Save and activte....and go back.

    Go to the PAI, and uncomment the MODULE USER_COMMAND_0100 and double click again...

    You must do this case:

    CASE sy-ucomm.

    WHEN 'BACK'.



    Hope this helps...if you need anything else ask.


    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.