11-15-2007 11:48 AM
i am using a report category for my selection screen.
Amongst the selection fields, i dont need a particular one.
Hence i need to hide it.
The field that needs to be hidden is a SELECT OPTIONS NO INTERVALS
So i can accept multiple values.
So it has got a EXTENSION icon.
I am successful in removing the Field and text , but the ICON still remains.
How can i remove that?
regards,
Balaji
11-15-2007 11:51 AM
Hi,
Use the screen name for the ICON and then use active = 0 while modifying screen.
Rgds,
Sandeep
11-15-2007 11:52 AM
Hi,
Use SELECT OPTIONS NO INTERVALS NO EXTENTIONS
then the icon will not display
Reward if it helps
11-15-2007 11:54 AM
SELECT-OPTIONS NO EXTENSION is there.
One more thing is you can make all filed in active by use
loop at screen.
if screen-name eq '%select-option name%'
screen-active = 0.
modify screen.
endif.
11-15-2007 11:57 AM
Hi,
Check this piece of code you will get the solution.
&----
*& Report Z_HRA1
*&
&----
*&
*&
&----
REPORT Z_HRA1.
tables: pa0000, pa0001.
parameters: p_chk1 as checkbox user-command rusr,
p_chk2 as checkbox user-command rusr,
p_chk3 as checkbox user-command rusr,
p_chk4 as checkbox user-command rusr,
p_chk5 as checkbox user-command rusr.
selection-screen: begin of block blk1 with frame.
select-options: s_pernr for pa0000-pernr modif id ABC no-extension no intervals,
s_stat2 for pa0000-stat2 modif id DEF,
s_werks for pa0001-werks modif id GHI,
s_persg for pa0001-persg modif id JKL,
s_persk for pa0001-persk modif id MNO.
selection-screen: end of block blk1.
AT SELECTION-SCREEN output.
LOOP AT SCREEN.
IF SCREEN-GROUP1 = 'ABC'.
IF p_chk1 = 'X'.
SCREEN-ACTIVE = 1.
ELSE.
SCREEN-ACTIVE = 0.
ENDIF.
MODIFY SCREEN.
ENDIF.
IF SCREEN-GROUP1 = 'DEF'.
IF p_chk2 = 'X'.
SCREEN-ACTIVE = 1.
ELSE.
SCREEN-ACTIVE = 0.
ENDIF.
MODIFY SCREEN.
ENDIF.
IF SCREEN-GROUP1 = 'GHI'.
IF p_chk3 = 'X'.
SCREEN-ACTIVE = 1.
ELSE.
SCREEN-ACTIVE = 0.
ENDIF.
MODIFY SCREEN.
ENDIF.
IF SCREEN-GROUP1 = 'JKL'.
IF p_chk4 = 'X'.
SCREEN-ACTIVE = 1.
ELSE.
SCREEN-ACTIVE = 0.
ENDIF.
MODIFY SCREEN.
ENDIF.
IF SCREEN-GROUP1 = 'MNO'.
IF p_chk5 = 'X'.
SCREEN-ACTIVE = 1.
ELSE.
SCREEN-ACTIVE = 0.
ENDIF.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
Reward if helpful.
Regards,
Harini.S
11-15-2007 11:57 AM
11-15-2007 12:00 PM
11-15-2007 12:56 PM
The selection screen is a standard SAP screen...
i cant add NO EXTENSIONS to it, but i need to hide it?
thats the issue
11-15-2007 12:58 PM
Hi Balaji,
can you paste your code here so that we can analyse this .
11-15-2007 1:05 PM
loop at screen.
if screen-name CS '%select-option name%'
screen-active = 0.
modify screen.
endif.