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: 

Hiding the field on the subscreen

Former Member
0 Kudos

Hi,

I have a tabstrip on which there are 2 tabs.On both the tabs there are few fields on which the user enters the data.These subscreens of the tabstrip are used in differenet screens.I want a field to be hidden in one subscreen though it should be displayed when called by another screen.I mean I want to disable the field in the PBO module of the screen.how can i do it. Do I need to use the group property in the layout.If yes what is the code I need to write in the PBO module.Please suggest.

2 REPLIES 2

Former Member
0 Kudos

need to maintain group id for the required fields in the field attribute.

if it should display in the PBO,

loop at screen.

if screen-group = 'XXX'

update the req. logic here (enable/disable using the screen fields)

ENDIF.

endloop.

Former Member
0 Kudos

Hi,

you need to use the tabstrip-activetab

LOOP AT SCREEN.
IF <tabstrip>-activetab = <Selected Tab>.
   IF screen-name CS 'PNPKOKRS' OR
       screen-name CS 'PNPKOSTL' OR
       screen-name CS 'PNPORGEH'.
      screen-active = '0'.
      screen-invisible = '1'.
      MODIFY SCREEN.
      CLEAR screen.
ENDIF.
ENDIF.
ENDLOOP.