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

Cancel an action on a tabstrin after a pop-up

This is a beginners question so please take it easy on me. I am using a tabstrip, and I have a two level selection in there which I need to validate when the user tries to leave the screen.

On the PAI I perform the validation and display a pop-up (POPUP_TO_CONFIRM)

If the user selects the option to cancel how do I get it to stop..

is there a simple function because at the moment I have tried a few thing but it still moves away from the tab...

Thanks for your help..

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Mar 18, 2008 at 08:35 PM

    You shouldn't need to do anything to stay on the same tab in the tabstrip - you normally only have to do something if you want to move to a different tab... i.e. in your PAI, if you just let the logic progress through the flow logic then you will return to the PBO, and provided you don't change the subscreen number then it should re-display "as was"... the SAP help link

    http://help.sap.com/saphelp_nw04/helpdata/en/17/5bf1b52ba211d2954f0000e8353423/content.htm

    explains it quite well.

    Jonathan

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Sorry guys but these didn't work for me. I was using the FUNCTION 'POPUP_TO_CONFIRM' , the way i used to get round the problem was after this I had to set a global variable with the current tab and assigned it to the okay code when setting what tab to goto. I was hoping there was an easier way than that.

  • author's profile photo Former Member
    Former Member
    Posted on May 16, 2008 at 03:33 PM

    Hi,

    this code may help you.

    here, PER, CNT and BNK are TABS.

    100 is the first screen.

    200 is the second screen-where TAB strip control is placed.

    300, 400 and 500 are subscreens related to respective tabs.

    I think there is no need of POP_TO_CONFIRM , here.

    When do you want to display POPUP...tel me.

    So, that i can give you the code.

    &----


    *& Module USER_COMMAND_0200 INPUT

    &----


    MODULE user_command_0200 INPUT.

    CASE okcode.

    WHEN 'PER'.

    tabstr-activetab = 'PER'.

    v_dynnr = '300'.

    WHEN 'CNT'.

    tabstr-activetab = 'CNT'.

    v_dynnr = '400'.

    WHEN 'BNK'.

    tabstr-activetab = 'BNK'.

    v_dynnr = '500'.

    WHEN 'BACK' OR 'CANCEL' OR 'TOP'.

    LEAVE TO SCREEN '100'.

    CLEAR okcode.

    ENDCASE.

    ENDMODULE.

    Regards

    Sandeep Reddy

    Edited by: Sandeep Reddy on May 16, 2008 5:34 PM

    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.