Skip to Content
0
Former Member
Mar 08, 2007 at 03:17 PM

Hide selection-screen block

591 Views

Hi,

I have created a selection screen with a subscreen area to include screen exits. If there are no screen exits, this block has to be hidden. I loop at the screen and hide every object in the block. On two of our systems everything is fine, but today I imported the transports to a third system and there I just see the empty block, with nothing on it. Is there maybe a parameter in SAP that tells to show or hide empty block in a selection-screen?

This is my code:

SELECTION-SCREEN BEGIN OF TABBED BLOCK C1 FOR 10 LINES.

SELECTION-SCREEN TAB (10) TAB1 USER-COMMAND ucomm1.

SELECTION-SCREEN TAB (10) TAB2 USER-COMMAND ucomm2.

SELECTION-SCREEN TAB (10) TAB3 USER-COMMAND ucomm3.

SELECTION-SCREEN TAB (10) TAB4 USER-COMMAND ucomm4.

SELECTION-SCREEN TAB (10) TAB5 USER-COMMAND ucomm5.

SELECTION-SCREEN TAB (10) TAB6 USER-COMMAND ucomm6.

SELECTION-SCREEN TAB (10) TAB7 USER-COMMAND ucomm7.

SELECTION-SCREEN TAB (10) TAB8 USER-COMMAND ucomm8.

SELECTION-SCREEN TAB (10) TAB9 USER-COMMAND ucomm9.

SELECTION-SCREEN END OF BLOCK C1.

and in initialization event:

IF L_LENGTH = 0.

LOOP AT SCREEN.

IF SCREEN-NAME(3) = 'TAB'.

SCREEN-ACTIVE = 0.

screen-required = 0.

screen-input = 0.

screen-output = 0.

screen-invisible = 1.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

*Sets empty screen as basic but this is not shown

C1-dynnr = '0200'.

C1-prog = '/ARINSO/BC_PG_OCI'.

C1-activetab = 'TAB1'.

GW_SCREXITS-SCREEN = '0200'.

GW_SCREXITS-REPNA = '/ARINSO/BC_PG_OCI'.