10-17-2006 11:11 AM
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
10-17-2006 1: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
10-17-2006 1: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
10-17-2006 1:46 PM
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
10-17-2006 1: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
10-17-2006 1:51 PM
10-17-2006 2:28 PM
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