Skip to Content
0
Former Member
Apr 01, 2011 at 10:29 AM

ADD push button in selection-screen

40 Views

Hi Guys,

I have a requirement.

In the selection screen on the report, I need a push button "Click".

When i "Click" First Time this it should display all the selection screen Blocks B1,B2,B3 from my selection screen.

For second "Click" it should Hide the Blocks B1,B2,B3.

I am doing the following code in my report:

But for first Click it is displaying the Blocks.And for the Second click it is not Hiding.

Please suggest on this.....

initialization.

if screen-group1 = 'A1' .

screen-active = 0.

modify screen.

endif.

endloop.

loop at screen.

if screen-group1 = 'A2' .

screen-active = 0.

modify screen.

endif.

endloop.

loop at screen.

if screen-group1 = 'A3' .

screen-active = 0.

modify screen.

endif.

endloop.

I am using " At selection screen:

at selection-screen.

if gv_flag = space.

loop at screen.

if screen-group1 = 'A1' .

screen-active = 1.

modify screen.

endif.

endloop.

loop at screen.

if screen-group1 = 'A2' .

screen-active = 1.

modify screen.

endif.

endloop.

loop at screen.

if screen-group1 = 'A3' .

screen-active = 1.

modify screen.

endif.

endloop.

gv_flag = 'X'.

elseif gv_flag = 'X'.

loop at screen.

if screen-group1 = 'A1' .

screen-active = 0.

modify screen.

endif.

endloop.

loop at screen.

if screen-group1 = 'A2' .

screen-active = 0.

modify screen.

endif.

endloop.

loop at screen.

if screen-group1 = 'A3' .

screen-active = 0.

modify screen.

endif.

endloop.

gv_flag = space.

endif.