2011 May 13 10:29 AM
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
2011 May 14 10:35 AM
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.
2011 May 16 6:06 AM
2011 May 16 11:27 AM
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.