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: 

Suppress a subscreen

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

5 REPLIES 5

Former Member
0 Kudos

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

0 Kudos

HI Max,

I have thinked something like this, but how can I do the different call subscreen?

How can I put a IF statement in PBO logic?

thanks

enzo

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

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

0 Kudos

Hi Rich,

you are right, this is the matter!

Thanks

enzo

0 Kudos

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