Application Development and Automation 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: 
Read only

Hiding selection screen fields?

Former Member
0 Likes
7,384

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
Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
1,100

Hi,

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

Rgds,

Sandeep

Read only

Former Member
0 Likes
1,100

Hi,

Use SELECT OPTIONS NO INTERVALS NO EXTENTIONS

then the icon will not display

Reward if it helps

Read only

Former Member
0 Likes
1,100

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.

Read only

Former Member
0 Likes
1,100

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

Read only

Former Member
0 Likes
1,100

did u try NO DISPLAY option

Read only

Former Member
0 Likes
1,100

HI

use NO EXTENTION for that

it will remove that ICON also

Read only

0 Likes
1,100

The selection screen is a standard SAP screen...

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

thats the issue

Read only

0 Likes
1,100

Hi Balaji,

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

Read only

Former Member
0 Likes
1,100

loop at screen.

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

screen-active = 0.

modify screen.

endif.