Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Hiding selection screen fields?

Former Member
0 Kudos

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

9 REPLIES 9

Sandeep_Kumar
Advisor
Advisor
0 Kudos

Hi,

Use the screen name for the ICON and then use active = 0 while modifying screen.

Rgds,

Sandeep

Former Member
0 Kudos

Hi,

Use SELECT OPTIONS NO INTERVALS NO EXTENTIONS

then the icon will not display

Reward if it helps

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

did u try NO DISPLAY option

Former Member
0 Kudos

HI

use NO EXTENTION for that

it will remove that ICON also

0 Kudos

The selection screen is a standard SAP screen...

i cant add NO EXTENSIONS to it, but i need to hide it?

thats the issue

0 Kudos

Hi Balaji,

can you paste your code here so that we can analyse this .

Former Member
0 Kudos

loop at screen.

if screen-name CS '%select-option name%'

screen-active = 0.

modify screen.

endif.