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: 

Hide a selection field

Former Member
0 Kudos

I need to have a selection field , But the user should not be able to see it. How to hide the same from the selection screen ?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Perhaps you could use the NO-DISPLAY addition for select-options.

If you intend to use the field only for internal processing, you could use RANGES as well.

Regards

Message was edited by: Shehryar Khan

5 REPLIES 5

Former Member
0 Kudos

Hi,

Perhaps you could use the NO-DISPLAY addition for select-options.

If you intend to use the field only for internal processing, you could use RANGES as well.

Regards

Message was edited by: Shehryar Khan

Former Member
0 Kudos

Hi,

u can try out following code:

parameters: param1,

param2.

at selection-screen output.

loop at screen.

if screen-name = 'PARAM1'.

screen-invisible = 1.

screen-active = 0.

endif.

modify screen.

endloop.

0 Kudos

Hi,

The previous code segment I gave, does not hide the name(text) of the parameter..so make following change in the if condition:

if screen-name = 'PARAM1' or

screen-name = '%_PARAM1_%_APP_%-TEXT'.

former_member355937
Participant
0 Kudos

Hello,

You can try the following code:

TABLES: MARA.

PARAMETERS : p_werks1 TYPE werks_d MODIF ID bk1,

p_werks2 TYPE werks_d MODIF ID bk1'

SELECT-OPTIONS SO_MATNR FOR MARA-MATNR MODIF ID bk1.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF screen-group1 = 'BK1'.

screen-active = 0.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

Regards,

Jeff

0 Kudos

i think the way Jeffrey and Tejal suggested the invisible fields will become visible if you create a variant and then fill the selection screen fields with the variant. NO DISPLAY is the best option but you cant use this for check boxes etc.