‎2007 Jun 19 1:59 PM
Hi all,
The problem i am facing is like this.
There is screen in which there are already 4 frames with different
fields.
I have added 1 field at the bottom of the screen ( FIELD A)
&hided all othe frames on the screens by doing loop at screen.
The Field is visible to me but at the bottom.
I want that field (FIELD A) to move upward at the top when all fields are hidden.
how i can do that?
‎2007 Jun 20 7:39 AM
Vikram,
Add that new field at top of the screen and add other frames.
When you hide the frames it will appear in top.
‎2007 Jun 20 1:11 AM
The following works for me - the group should disappear when all the fields in it are set as inactive (screen-active = '0' 😞
report zlocal_hide_group.
selection-screen begin of block blk1 with frame.
parameters:
p_field1 like sy-datum.
selection-screen end of block blk1.
selection-screen begin of block blk2 with frame.
parameters:
p_field2 like sy-datum.
selection-screen end of block blk2.
at selection-screen output.
perform at_selection_screen_output.
*&---------------------------------------------------------------------*
*& Form at_selection_screen_output
*&---------------------------------------------------------------------*
form at_selection_screen_output.
loop at screen.
if screen-name cs 'P_FIELD1'. "the field & its label
screen-input = '0'.
screen-active = '0'.
modify screen.
endif.
endloop.
endform. "at_selection_screen_output
‎2007 Jun 20 7:11 AM
Hi,
Hiding the fields by making them invisible will only make them invisible, but will still be take the same space.
So if you need to move the field A up you have to define it first. You cannot change the position of any field dynamically. You can only make them active, input enabled/disabled or invisible dynamically.
Hope this explaination helps.
Regards,
Richa.
‎2007 Jun 20 7:39 AM
Vikram,
Add that new field at top of the screen and add other frames.
When you hide the frames it will appear in top.
‎2010 Dec 09 7:02 AM