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

Suppress a subscreen

Hi all,

In my custom module pool, I have a tabstip in a subscreen.

i want to add a collaspe/exspand button to close/show the tabstrip(in the subscreen), something like the standard enjoy transaction (ME23N for example).

Can anyone helo me to achive this?

Thanks

Enzo

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 17, 2006 at 12:41 PM

    Hi Enzo

    You have to use the severals subscreen in the same subarea.

    In the first subcreen you insert your tabstrips, in the second one nothing.

    So when you call expand, you show the subscreen with tabstrip, when you call collapse you call the subscreen with nothing.

    Max

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 17, 2006 at 12:48 PM

    Here is what you can do. You have one subscreen area, now you have a subscreen with the tabstrips that you need to show, create another subscreen which has nothing in it. You will then need to call the correct subscreen depending on whether the user clicks expand or collapse. If user press collapse, call the subscreen which has nothing in it, the dummy subscreen. Make sense?

    Regards,

    Rich Heilman

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Enzo

      Excuse me but I'm very busy:

      - Design a main screen with a subarea;

      - Design two subscreen: one with the buttom to collapse and your tabstrip and one only with the buttom to expande;

      So the flow logic of the main should be like this:

      PROCESS BEFORE OUTPUT.

      MODULE INIT_SUBAREA.

      CALL SUBSCREEN SUBAREA INCLUDING SY-REPID SUB_SCREEN.

      PROCESS AFTER INPUT.

      MODULE USER_COMMAND.

      Where:

      MODULE USER_COMMAND INPUT.

      CASE OK_CODE.

      WHEN 'COLL'. SUB_SCREEN = '9001'.

      WHEN 'EXPA'. SUB_SCREEN = '9002'.

      ENDCASE.

      ENDMODULE. " USER_COMMAND INPUT

      MODULE INIT_SUBAREA OUTPUT.

      IF SUB_SCREEN IS INITIAL.

      SUB_SCREEN = '9001'.

      ENDIF.

      ENDMODULE. " INIT_SUBAREA OUTPUT

      This is a simple example, if you want I send you a my program to do that.

      Max

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.