Skip to Content
author's profile photo
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 comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Best Answer
    author's profile photo
    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 comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    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 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 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.