Skip to Content
author's profile photo Former Member
Former Member

Hide a selection field

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 ?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 05, 2005 at 05:54 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 05, 2005 at 06:14 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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'.

  • Posted on Jan 05, 2005 at 06:41 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.