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: 

How do i hide a section in the screen

Former Member
0 Kudos
219

Hello Colleagues,

Currently my screen is divided into different sections and one of the section is for reasons.

Now i have a check wherein only if the data for reasons exist then i show the fields else the reason section is blank.

I would like to know whether there is any way to hide that section if no data exists.

Waiting for your rsponse.

Thanks and Regards,

Urbashi

3 REPLIES 3

Former Member
0 Kudos
142

What do you mean by a section?

If you want to hide some fields on a screen, check if the data is fetched from the select statement,

if no data is fetched , then you should take a flag variable and set it as 'X', or any value.

Go to your screen layout, and set the attribute group1 for all the fields that you want to hide as HIDand follow the below steps.

Then in the pbo you should check if the flag is 'X', if yes then

  
if v_flag = 'X'.
loop at screen.
if screen-group1 = 'HID'.
Screen-active = 0.
screen-invisible = 1.
endif.
endloop.




 

koolspy_ultimate
Active Contributor
0 Kudos
142

at select-screen use


no-display.

Former Member
0 Kudos
142

hi,

assign a group to all the screen elements which come in the section you want to hide . then loop on your screen

Loop at screen.

if screen-group1 = 'GROUP'.

screen-invisible ='X'.

endif.

modify screen.

endloop.