Skip to Content
avatar image
Former Member

How to suppress the "Find Variant" pop-up window?

Hello experts,

When I open a variant for a program I get a pop up window with options to find variant, e.g. variant name, created by or changed by. The created by defaults to the user id of the person that is searching. Our client has more than 10 variants.

If you have not created any variants, you will not find any. There is an easy way to overcome this. You just delete your user id and execute. Then you get the variant.

However, one of our end-users asks if we can either suppress that window or change it so that the 'created by' is always empty.

Do you know where and how the pop up is configured. Can you somehow make the 'created by' field empty or simple supress that window?

Kind Regards,

-C

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Oct 21, 2008 at 08:43 PM

    You get the "Find Variant" window if your report has more than 10 variants. This is hardcoded in SAP Standard code.

    Check FM RS_VARIANT_CATALOG constant C_VARILIST.

    The only way I know of, to suppress the "Find Variant" window is to do a code mod in

    Include "LSVARTOP" and change it to some higher value. But this needs modification of SAP Standard code.

    Note 540779 - FAQ: Information system
    4. Question:
                  Why does the system display an additional selection dialog box for the variants on the selection
     screen with the 'Get variant' function? 
    
                  Answer: 
    
                  As of Release 4. 5, the system does not immediately display the list of variants when there are 
    more than 10 selection screen variants. Instead, the system first displays a dialog box with selection 
    options for the variants and the name of the creator is prefilled with the user name. This is defined in the 
    source code. Therefore, the only way to change this behavior is by modifying the corresponding points in
     the source code . However, this affects all selection screens in the system. 
    
                  You can modify one of the two following places: 
    
    The number that determines how many variants are displayed in an additional dialog box:
    
                        Include LSVARTOP, change value at flagged position, for example, to '9999': 
    
                        CONSTANTS: C_PDLIST_WIDTH TYPE I VALUE '24',
              C_VARILIST     TYPE I VALUE '10'.    <----- 
    
    Hiding the default name in the dialog box:
                        Include LSVARE01 / AT SELECTION-SCREEN OUTPUT, turn the flagged lines into a 
    comment: 
    
                              if l_flag_first eq space or l_report ne rsvar-report.
            l_flag_first = 'X'.
             l_report = rsvar-report.
            ename-sign = 'I'.                      <-----
            ename-option = 'EQ'.                  <-----
            ename-low = sy-uname. collect ename.   <-----
          endif. 
    
    
    

    Edited by: Aparna Shekhar on Oct 21, 2008 3:47 PM

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Thank you guys for your helpful response. Even though there is no workaround to this issue I can explain with a very good argument about this limitation. Thank you very much for your detailed responses.

      Kind Regards,

      -C

  • Oct 21, 2008 at 08:52 PM

    That popup comes whenever we have more than 10 Variants.

    This is the code which calls the Popup in the FM RS_VARIANT_CATALOG:

      DESCRIBE TABLE VARIANT_TABLE LINES SY-TFILL.                
    * Sind überhaupt Varianten vorhanden                          
      IF SY-TFILL EQ 0.                                           
        MESSAGE S260 RAISING NO_VARIANTS.                         
        EXIT.                                                     
      ELSEIF SY-TFILL GT C_VARILIST AND POP_UP EQ 'X'             
         and sy-binpt is initial. " and sy-uname ne 'KSCHMIDT'.   
        CALL SELECTION-SCREEN 100 STARTING AT 10 10       " << POPUP          
                              USING SELECTION-SET 'SAP&1'.        
        IF SY-SUBRC NE 0.                                         
           MESSAGE W599 RAISING NO_VARIANT_SELECTED.              
        ELSE.                                                     
    

    So, to avoid this popup, avoid creating more variants (which is not good for users).

    Regards,

    Naimesh Patel

    Add comment
    10|10000 characters needed characters exceeded