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

How to remove multiple selections button in LDB selection screens

Hi Friends,

I am facing a problem while doing an HR object. I took an LDB with Selection screen '100'. i got the company code select-option in it. But i need to avoid multiple selection button so that i have to take only a single company code to print the ALV heading as the company Text. Please tell me quickly, how can i do it.

Regards,

Santosh.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    Posted on Jul 26, 2007 at 05:23 PM

    You may have to do something like below where S_BUKRS is your company code select option of the LDB.

    REPORT  zakstest1 NO STANDARD PAGE HEADING.
    
    TABLES t001.
    
    TYPE-POOLS: sscr.
    
    SELECT-OPTIONS s_bukrs FOR t001-bukrs.
    
    *--------------
    INITIALIZATION.
    *--------------
    *-- Remove the the ranges option
      PERFORM remove_ranges_for_sel_options.
    
    *&---------------------------------------------------------------------*
    *&      Form  remove_ranges_for_sel_options
    *&---------------------------------------------------------------------*
    *       text
    *----------------------------------------------------------------------*
    FORM remove_ranges_for_sel_options.
    
      DATA: optlist  TYPE sscr_opt_list,
            restrict TYPE sscr_restrict,
            ass      TYPE sscr_ass.
    
    *-- Allow EQ only
      CLEAR optlist.
      optlist-name       = 'EQ_ONLY'.
      optlist-options-eq = 'X'.
      APPEND optlist TO restrict-opt_list_tab.
    
      CLEAR ass.
      ass-kind    = 'S'.
      ass-sg_main = 'I'.
      ass-sg_addy = 'N'.
    *-- Make S_BUKRS range to have only EQ
      ass-name    = 'S_BUKRS'.
      ass-op_main = 'EQ_ONLY'.
      APPEND ass TO restrict-ass_tab.
    
      CALL FUNCTION 'SELECT_OPTIONS_RESTRICT'
        EXPORTING
          restriction            = restrict
        EXCEPTIONS
          too_late               = 1
          repeated               = 2
          selopt_without_options = 3
          selopt_without_signs   = 4
          invalid_sign           = 5
          empty_option_list      = 6
          invalid_kind           = 7
          repeated_kind_a        = 8
          OTHERS                 = 9.
    
    ENDFORM.                    " rem_ranges

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 26, 2007 at 05:16 PM

    Hi,

    Please use fm LDB_PROCESS

    Note: Check the fm documentation have with example

    aRs

    Points are always welcome

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 26, 2007 at 05:23 PM

    hi,

    tyr this.

    Use LOOP AT SCREEN -- ENDLOOP to hide the fields under AT SELECTION-SCREEN OUTPUT event.

    LOOP AT SCREEN.

    IF SCREEN-NAME = <FLDNAME>.

    SCREEN-ACTIVE = 0.

    SCREEN-INVISIBLE = 1.

    MODIFY SCREEN.ENDIF.

    ENDLOOP.

    Thanks,

    Mahesh

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 26, 2007 at 06:04 PM

    If you want to allow 'Greater than' or 'Less than' option, you can consider using:

    Select-option: S_BUKRS like t001-bukrs No intervals no-extension.

    This will restrict the user to entry of a single value for the selection option, but with the possibility of also choosing single value options like 'Greater than' or 'Less than or equal'.

    If you do not want the value option to be allowed, then follow with the function module <b>SELECT_OPTIONS_RESTRICT</b> in the initialization routine.

    <b><i>Please reward points for helpful answer.</i></b>

    Minami

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 23, 2016 at 07:05 AM

    Dear santhosh,

    This is the easy way to hide "Multiple selection" from LDB select Option.

    *To hide multiple selection

    LOOP AT SCREEN.

    IF screen-name CS'%_PNPBUKRS_%_APP_%-VALU_PUSH'.

    screen-invisible = 1.

    MODIFY SCREEN.

    ENDIF.

    ENDLOOP.



    Regard,

    Pappu Kumar.

    Add a comment
    10|10000 characters needed characters exceeded

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.