07-10-2008 8:26 AM
Hi,
I am having a four text fields in the screen..This 4 text boxes are put it into a box(Frame)..Now when i press a button the frame(box)want to disappear from the screen..
I was trying this but when i click that button the frame is disappeared but the fields(text boxes) didnt disappear..It i remaining in the screen..
If i want to make invisible the frame plus the text fields inside it means what i want to do..Can anybody help in this
07-10-2008 8:35 AM
In the PBO of the same screen, write a code to check the Sy-ucomm
if sy-ucomm = button sy-comm
check screen-name = frame name.
use screen-invisible = 1
screen-active = 0. to diable the corresponding screen fields.
dont forget to give MODIFY SCREEN after this then only the changes will be reflected.
screen is the table structure for dialog screen fields
07-10-2008 8:30 AM
hi,
For changing the properties of text elements apply modif id to the text elements as well as to the frame also.you can use this in changing the screen properties.
regards,
Veeresh
07-10-2008 8:34 AM
07-10-2008 8:35 AM
In the PBO of the same screen, write a code to check the Sy-ucomm
if sy-ucomm = button sy-comm
check screen-name = frame name.
use screen-invisible = 1
screen-active = 0. to diable the corresponding screen fields.
dont forget to give MODIFY SCREEN after this then only the changes will be reflected.
screen is the table structure for dialog screen fields
07-10-2008 8:39 AM
Hi....
So you wnat to disappear one Box and four Text boxes from screen with one push botton action...
for this..,
Enter the group name like '111' in the screen attributes while creating screen for all these five objects...
procedure...
> click on object for which you wnat to assign gorup.. and enter 111 or some thing at GROUPS (there will b > four inputs avialble just fill one in ur case)...and same for all five
And...
In the PAI event of that scree..,
> case sy-ucomm
> when <your push bottun>
> LOOP AT SCREEN.
> IF screen-group2 = '111'.
> screen-invisible = '1'.
> MODIFY SCREEN.
> ENDIF.
> ENDLOOP.
Get back to me If any problem with this...,
Thanks,
Naveen.I
Edited by: Naveen Inuganti on Jul 10, 2008 1:57 PM
07-10-2008 8:43 AM
hiii
Give the same MODIF ID to all the elements you want to disappear.like parameters in it all should have the same modif id then use with that modif id as below.
SELECTION-SCREEN BEGIN OF BLOCK c2 WITH FRAME.
PARAMETERS: file TYPE c LENGTH 10 MODIF ID ab1,
file1 TYPE c LENGTH 10 MODIF ID ab1,
file2 TYPE c LENGTH 10 MODIF ID ab1.
SELECTION-SCREEN END OF BLOCK c2.
now use with modif id .. it will automatically disappear that frame too.as its all content having same modif id.
regards
twinkal