If possible, one SoftReference refer to more than one object?

Hello,
I want design a cache to keep huge number objects.
If create a new SoftReference intance for each object,
will take a lot of space and time.
So, one SoftReference refer to more than one object, if possible?

or arrange your objects into buckets somehow and have
soft references to the bucketsEn, It's a good idea. but I think it doesn't work.
My problem is:
There are many caches(cache1, cache2.......), they may cache a lot of same object instance.
then, I want to keep a object pool, and try to get the equal object from pool before put a object into a cache, if there is an equal object, put the equal object into cache, if there is no equal object, put the target object into pool and cache. the object pool may very huge because there is lot of objects. So it's necessary to release the object in the pool if no cache referes to the object(the caches contain the object may removed). Then SoftReference come into my mind. I try to create a SoftReference for each object in the pool, but soonly, I find there are two problems:
1, A lot SoftReference instances take much memory.
2, Need some time to new and reclaim the SoftReference intances.
I think SoftReference may work fine to cache the object frequently used,
but the object number can't be too large.
Now, I don't use object pool. replace starting a thread to scan those cache s and combine the same objects intervally. It can scan about 2000,000 objects one second in my pc. It's ok for my project. But I am looking for some better way still.

Similar Messages

  • Is it possible to add musc from more than one computer like on ipods?

    is it possible to add music from more than computer like with ipods

    No.  The iPhone will synch with only ONE iTunes library at a time.

  • ADF Faces Skins: Way to refer to more than one alias in a selector?

    Is there any way to refer to more than one alias at a time in a selector? The obvious one,
    .SpotlightStyles
      -ora-rule-ref:selector(".AFVeryLargeFont:alias");
      -ora-rule-ref:selector(".AFMediumForeground:alias");
    }doesn't seem to work...it looks like only the last mentioned rule gets used.
    Thanks much,
    Avrom

    Hi,
    well not quite sure about your issue. But normally additional key fields for a characteristic are maintained doing a compounding of the characteristic to at least one other characteristic. You can do that in the infoobject maintenance on the tab compounding.
    regards
    Siggi

  • Is it possible to Face Time with more than one person?

    All of my grandchildren posess iiPads, and I regularly Face Time with them---individually.  Is it possible to Face Time with more than one person?

    Not at present-no.

  • Error:Ref cound more than 1 when add the field

    hai,
    I got the error like "Ref cound more than 1" when i add the field in the table.I use this fuction
    Public Function createUserFields(ByVal tablename As String, ByVal fieldName As String, ByVal fieldDescription As String, ByVal dataType As SAPbobsCOM.BoFieldTypes, Optional ByVal dataSize As Long = 0, Optional ByVal subType As SAPbobsCOM.BoFldSubTypes = SAPbobsCOM.BoFldSubTypes.st_None, Optional ByVal linkedTable As String = "") As Boolean
    Dim v_UserField As SAPbobsCOM.UserFieldsMD
    Dim v_RetVal As Long
    Dim v_ErrCode As Long
    Dim v_ErrMsg As String = ""
    Try
    createUserFields = False
    If Not UserFieldExists(tablename, fieldName) Then
    app.StatusBar.SetText("Creating Table " + tablename + " ...... :> Adding Field: " & fieldName & " - " & fieldDescription, SAPbouiCOM.BoMessageTime.bmt_Long, SAPbouiCOM.BoStatusBarMessageType.smt_Warning)
    v_UserField = com.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserFields)
    v_UserField.TableName = "@" + tablename
    v_UserField.Name = fieldName
    v_UserField.Description = fieldDescription
    v_UserField.Type = dataType
    If dataType = SAPbobsCOM.BoFieldTypes.db_Alpha Then
    v_UserField.Size = dataSize
    End If
    If Not (subType = SAPbobsCOM.BoFldSubTypes.st_None) Then
    v_UserField.SubType = subType
    End If
    If linkedTable "" Then v_UserField.LinkedTable = linkedTable
    ' If Not (v_progressBar Is Nothing) Then v_progressBar.Text = tablename + ":> " + "Adding Field:> " & fieldName & " :> " & fieldDescription
    v_RetVal = v_UserField.Add()
    If v_RetVal = 0 Then
    createUserFields = True
    Else
    com.GetLastError(v_ErrCode, v_ErrMsg)
    app.StatusBar.SetText("Failed to add UserField " & fieldName & v_ErrCode & " " & v_ErrMsg, SAPbouiCOM.BoMessageTime.bmt_Medium, SAPbouiCOM.BoStatusBarMessageType.smt_Error)
    End If
    System.Runtime.InteropServices.Marshal.ReleaseComObject(v_UserField)
    v_UserField = Nothing
    GC.Collect()
    End If
    can any one help me?
    Regards,
    Ramya.s

    HI
    In 2007 i always got the same problem.
    Solution:
    1st create all tables
    then
    2nd create all fields
    and do not use any querys to exists the table or field
    >If Not UserFieldExists(tablename, fieldName) Then
    use lretcode when you add the field / Table, even it is -2035 it is already exists, do not care.
    '... your original code
                If v_RetVal <> 0 Then
                    Select Case v_RetVal
                        Case -2035 'means already exist
                        Case Else
                            com.GetLastError(v_ErrCode, v_ErrMsg)
    '... your original code
                    End Select
                End If
    Only this way was working for me....
    Regards,
    J.
    Edited by: Janos  Nagy on Jul 30, 2008 2:58 PM

  • Is it possible to display spool having more than 50 pages?

    Hi All,
    Is it possible to display spool having more than 50 pages?
    Standard SAP transactions like SP01/SP02/SM37allows till 50 pages if i am not wrong!
    Thanks,
    Vinod.

    in the setting of any spool I selected 10000 pages as the last page... I dont have spool to check and see if it really displays all 10000 pages.
    sp01> getin into some spool > hit settings buttons on the top.

  • Of possible interest to those running more than one graphics card

    This bit of information in relation to GPU and OpenGL features and limitations in Photoshop CS4 had totally escaped me until today. Though it doesn't affect my setup, it might be of interest to others who may have missed it too.
    Excerpt from http://www.adobe.com/go/kb404898
    Q. Does Photoshop take advantage of dual-GPU display cards?
    A. Not at this time.
    Q. Why can't Photoshop take advantage of more than one display card?
    A. When you move an image window between two monitors that are each on a separate display card, the GPU attached to the second monitor does not have access to the data necessary to accelerate drawing. The SLI and Crossfire technologies that use more than one GPU to speed up full-screen games will not work with Photoshop, because their use is limited by design to accelerate only full-screen games.

    In this case, I would re-think states here and create only Transition In notifications:
    -> Transition In: Status: ACTIVE
    -> Transition In: Status: PASSIVE
    -> Transition In: Status: SUSPENDED
    So it would not send double notification (leaving state A and entering state B). If you don't want such notification for newly created users, maybe think about request MPRs as Mark suggested? Then you can set different workflow (and notification) for each
    state changes.
    If you found my post helpful, please give it a Helpful vote. If it answered your question, remember to mark it as an Answer.

  • Is it Possible to enable or have more than one RAP in a Mesh Network?

    Hi all,
    My WLAN has a 4404 WCS and is running in mesh mode. The area of coverage is wide and i need to have extra RAPs in strategic locations to minimize the hop count of some outdoor APs. The extra RAPs are wired back to the switch via fibre. How can i enable more than one RAP in this case? Please help!!!

    Sure, you can have multiple RAPs. Just set the role of any AP that can hit the controller via the wire as a RAP. The MAPs will then use the best route to the controller. If you want to specify which MAPs go to a particular RAP just set different BGN's. Also I would suggest setting different channels for each RAP.

  • Is it possible to trigger download of more than one file in a single click.

    Hi
    Is there a way to initiate download of multiple files by a single click on Button ? I have a download button in my page which on clicking initiates download of a single file. I have a usecacse, where i need trigger downnload of 2/3 files with the same single click. Is it possible ?
    Thanks in advance.

    On solution would be to zip the multiple files into one and send this to the client.
    An other possible way (never tested this) is to use the click on the button to send the files in a sequence. You send the first file, then queue a click onto a hidden button to send the next and repeat this until all files are send. I'm not sure how the client reacts, e.g. if the second file is send while the first file still needs to be accepted on the client or if the user first has to accept the file, download it and then get the next dialog.
    For a sample of how to queue a click onto a hidden button you can check http://tompeez.wordpress.com/2011/07/14/validate-data-before-export-via-afexportcollectionactionlistener-or-affiledownloadactionlistener/
    Timo

  • Is it possible to use or find more than five colors?

    hello :-)
    Is it possible to find a harmony of eleven colors in adobe kuler?
    And if it - is how can I do this?
    greets Jasmin

    I was attempting to use Kuler as a means to unite all the adobe programs around my color templates. With this use in mind, I was definitely interested in seeing the option to add more colors. Strangely enough, however, I've learned Kuler doesn't sync with photoshop CC (you can save to the web from it, but you can't download to PS from Kuler,) so I'm not entirely sure how useful this is to me. I have to manually download the profiles and drag them into the swatches category in order to use them, which to be fair is pretty useful (better than me manually entering them) - but it's a far cry from the ideal cloud-based organization structure of having your pallette's right where you need them in all your adobe applications.
    My two cents: Adobe needs a much more comprehensive overhaul for tieing in professional pallette's. This may be Kuler, or it may not... either way, I see no difference thus far between using the products as I used to and using the creative cloud. When I think of cloud-based products I think of everything I need being tied to my account. Currently that's not possible with colors, it seems.
    For what it's worth, I think it's implemented very well in InDesign, so with that respect I think Kuler is great save for the limitation of 5 colors. Perhaps it's worth having a "create" category, and a "library" category - that way you can label each color and save them in any amount you wish for retention of your current pallette's. I think that would be really cool - and if it was tied into Photoshop the same way it is tied into InDesign it would be nearly perfect. Seems like a relatively small tweak to the overall structure with a big payoff for us professionals if it can be implemented.

  • Is it possible to change encryption keystore more than once??

    It seems that once my environment has been informed of a keystore to use for ssl communication, it can't be changed. Is this so?
    I need to be able to do the following:
    1) Set a keystore for ssl communicaton
    2) Establish an ssl connection, (send and receive stuff), and end the connection.
    3) CHANGE THE KEYSTORE TO SOME OTHER THAN THAT USED IN STEP ONE.
    4) Repeat. step 2.
    However, step 3 seems to fail. The properties are set, but in step 4 the server STILL reports that the client is using the PREVIOUS key for encryption.
    Is there a way to FORCE it to change?
    Thank you in advance for your consideration.
    Here's some of the code:
    ======================================================
    Methods for beginning and ending session:
    public String start_session(File client_hashcode_file)
    throws Exception
    try {
    sslsocketfactory = (SSLSocketFactory)SSLSocketFactory.getDefault();
    m_ssl_socket = (SSLSocket)sslsocketfactory.createSocket(m_server_host, m_server_port);
    m_ssl_socket.startHandshake(); //Added this to see if it would force the change
    m_socket_writer = new BufferedWriter(new OutputStreamWriter(m_ssl_socket.getOutputStream()));
    m_socket_reader = new BufferedReader(new InputStreamReader(m_ssl_socket.getInputStream()));
    catch (Exception e) {
    throw new Exception("Server connection failed: [" + e.getMessage() + "]");
    // Process, process, process......
    public void
    end_session()
    throws java.io.IOException
    m_ssl_socket.getSession().getSessionContext().setSessionTimeout(1);
    m_ssl_socket.getSession().invalidate();
    m_ssl_socket.close();
    =========================================================
    Method to set/REset keystore:
    public void newCert(String keystorePath, char[] passwd)
    throws KeyStoreAccessException
    // Set some stuff...
    // Set the system properties required to use this certificate for
    // client authentication.
    the_properties.setProperty("javax.net.ssl.keyStore", keystorePath);
    the_properties.setProperty("javax.net.ssl.keyStoreType", "PKCS12");
    the_properties.setProperty("javax.net.ssl.keyStorePassword", password);
    // Set some other stuff...
    }

    Not via system properties. You could code something up using your own TrustStoreManager.

  • EPS Javascript saves more than visible object

    In prior versions of illustrator we used a script that basically saved the visible bounds of a masked object as an EPS file. With the upgrade to CS4 and Multiple Artboards this save function (EPSSaveOptions) no longer does the same visible bounds. I have read several post of similar issues, but what I am asking is:
    In there a way to make the visible bounds of the eps file equal the artboard on the active artboard only? The artboard seems to be driving the crop box. When I manually save the file as EPS the visible bounds are correct. When I save from the script it is not? As with other posts I do not want to go backwards within compatibility...I would like to keep the file at the CS4 level. What command am I missing? We have tried making the crop box = visibleBounds to no avail.
    Any help would be appreciated...my last resort is to report this bug to Adobe to see if they have a patch.

    *later edit* why dun u just get first artboard of the document.artboards collection, set it's bounds to the object you want to export and set artboardRange of the EPSSaveOptions to 1 ... this will export only the visible bounds of the object.
    Something like:
    var myWorkingArtboard = app.activeDocument.artboards[0];
    //masked object takes my mind to something in a clipping mask
    for(j = app.activeDocument.pathItems.length - 1; j >=0; j--) {
         if(app.activeDocument.pathItems[j].clipping ==true) {
              //we just found our clipping mask; the bounds of the pageItem must be the visible bounds of the clipped object so...
              myWorkingArtboard.artboardRect =  app.activeDocument.pathItems[j].geometricBounds; //because stroke and whatever else will not be part of the clipping mask
    var myEpsSaveOpts = new EPSSaveOptions();
    myEpsSaveOpts.saveMultipleArtboards = true;
    myEpsSaveOpts.artboardRange = "1";
    //rest of the export code here

  • Possible to return more than one value?

    If I have a somethign like this:
    public int test()
    return 5;
    }Is it possible to have test() return more than one value? And if it can, can you post an example showing how?

    Could you post an example of how to do this?If you do not know how to define a class, you need to start from the very beginning.
    Sun's basic Java tutorial
    Sun's New To Java Center. Includes an overview of what Java is, instructions for setting up Java, an intro to programming (that includes links to the above tutorial or to parts of it), quizzes, a list of resources, and info on certification and courses.
    http://javaalmanac.com. A couple dozen code examples that supplement The Java Developers Almanac.
    jGuru. A general Java resource site. Includes FAQs, forums, courses, more.
    JavaRanch. To quote the tagline on their homepage: "a friendly place for Java greenhorns." FAQs, forums (moderated, I believe), sample code, all kinds of goodies for newbies. From what I've heard, they live up to the "friendly" claim.
    Bruce Eckel's Thinking in Java (Available online.)
    Joshua Bloch's Effective Java
    Bert Bates and Kathy Sierra's Head First Java.
    James Gosling's The Java Programming Language. Gosling is
    the creator of Java. It doesn't get much more authoratative than this.

  • Is possible to connect to more than one core WAE from edge?

    Hi,
    I am trying to find in the documentation, but it is being hard to solve, if it is possible to connect simultaneously to more than one Core-WAE from a Edge-WAE

    With the release of 4.1, the concept of core and edge becomes less of a concern. All devices are edge and acceleration is between any edge device.
    The WAE is looking for the present of TCP option 21. If found, the WAE knows there is a peer WAE it can accelerate with.
    -Dan

  • Can a Method listen to more than one event in ABAP OO ?

    Hi,
    is it possible to prepare/register a handler method for e.g two events of two different classes ?
    Or can a method generally listen to only one event ?
    It seems that the syntax allows only one event ?
    methods event_handler for event my_event of my_class.
    Thanks for help in advance
    Olaf

    An event can refer to more than one object but you have to instantiate the objects
    for example   I have 2 grids and want to handle events depending on which grid
    the user is selecting / requesting actions on. (I've just posted the relevant bits coded here as data extraction etc you can code normally).
    FORM instantiate_grid
    * Create Grid container
    * Instantiate Grid class
    * Instantiate Event Handler class
    * Display the Grid
       USING  grid_container  TYPE REF TO cl_gui_custom_container
              class_object  TYPE REF TO cl_gui_alv_grid
              container_name TYPE scrfname.
    * create the container
      CREATE OBJECT grid_container
      EXPORTING container_name = container_name.
    * Create the ALV grid object using
    * container just created
      CREATE OBJECT  class_object
      EXPORTING
         i_parent = grid_container.
    *  Exclude the SUM function from the GRID toolbar
      ls_exclude = cl_gui_alv_grid=>mc_fc_sum.
      APPEND ls_exclude TO lt_exclude.
    * Instantiate our handler class
    * lcl_event_handler
      CALL METHOD class_object->register_edit_event
        EXPORTING
          i_event_id = cl_gui_alv_grid=>mc_evt_enter.
      CREATE OBJECT g_handler.
      SET HANDLER g_handler->handle_double_click FOR class_object.
      SET HANDLER g_handler->handle_hotspot_click FOR class_object.
      SET HANDLER g_handler->handle_toolbar FOR class_object.
      SET HANDLER g_handler->handle_user_command FOR class_object.
      SET HANDLER g_handler->handle_data_changed FOR class_object.
      SET HANDLER g_handler->handle_data_changed_finished FOR class_object.
    ENDFORM.                    "instantiate_grid
    MODULE status_0100 OUTPUT.
      IF grid_container IS INITIAL.
        PERFORM instantiate_grid
           USING grid_container
                 grid1
                 'CCONTAINER1'.
    * Grid title Primary Grid
        struct_grid_lset-grid_title = 'Delimit Old org Units - Selection'.
        struct_grid_lset-edit =  'X'.
        struct_grid_lset-sel_mode = 'D'.
        PERFORM display_grid
         USING
            grid1
             <dyn_table>
             it_fldcat.
      ENDIF.
      SET PF-STATUS '001'.
      SET TITLEBAR '000' WITH 'Delimit Old Org Units'.
    ENDMODULE.                    "status_0100 OUTPUT
    * PAI module
    MODULE user_command_0100 INPUT.
      CASE sy-ucomm.
        WHEN 'BACK'.
          LEAVE PROGRAM.
        WHEN 'EXIT'.
          LEAVE PROGRAM.
        WHEN 'CANC'.
          LEAVE PROGRAM.
        WHEN 'RETURN'.
          LEAVE PROGRAM.
      ENDCASE.
    ENDMODULE.                    "user_command_0100 INPUT
    MODULE status_0200 OUTPUT.
      IF grid_container1 IS INITIAL.
        PERFORM instantiate_grid
           USING grid_container1
                 grid2
                 'CCONTAINER2'.
    * Grid title  secondary grid
        struct_grid_lset-grid_title = 'Delimited Objects'.
        struct_grid_lset-edit =  ' '.
        PERFORM display_grid
         USING
            grid2
             <dyn_table1>
             it_fldcat1.
      SET PF-STATUS '001'.
      SET TITLEBAR '000' WITH 'Org Units Delimited'.
    endif.
    ENDMODULE.                    "status_0200 OUTPUT
    In your local event handling class use the variable SENDER to  determine which grid / object triggered the event
    for example
    CLASS lcl_event_handler DEFINITION .
      PUBLIC SECTION .
        METHODS:
    **Hot spot Handler
        handle_hotspot_click FOR EVENT hotspot_click OF cl_gui_alv_grid
                          IMPORTING e_row_id e_column_id es_row_no,
    **Double Click Handler
        handle_double_click FOR EVENT double_click OF cl_gui_alv_grid
                                        IMPORTING e_row e_column es_row_no
                                        sender,
    ** Toolbar handler.
    handle_toolbar
            FOR EVENT toolbar OF cl_gui_alv_grid
                IMPORTING e_object e_interactive
                sender,
    * button press
        handle_user_command
            FOR EVENT user_command OF cl_gui_alv_grid
                IMPORTING e_ucomm
                 sender,
    * data changed
    handle_data_changed
        FOR EVENT data_changed OF cl_gui_alv_grid
          IMPORTING er_data_changed,
    *data changed finished
    handle_data_changed_finished
         FOR EVENT data_changed OF cl_gui_alv_grid,
    download_to_excel.
    ENDCLASS.                    "lcl_event_handler DEFINITION
    * Implementation methods for lcl_event_handler
    CLASS lcl_event_handler IMPLEMENTATION.
    *Handle Hotspot Click
    * When a "hotspotted"cell is double clicked
    * Hotspot indicatore needs to be set in
    * the field catalog.
    * Not required for this application.
      METHOD handle_hotspot_click .
        PERFORM mouse_click
          USING e_row_id
                e_column_id.
        CALL METHOD grid1->get_current_cell
          IMPORTING
            e_row     = ls_row
            e_value   = ls_value
            e_col     = ls_col
            es_row_id = ls_row_id
            es_col_id = ls_col_id
            es_row_no = es_row_no.
        CALL METHOD grid1->refresh_table_display.
        CALL METHOD grid1->set_current_cell_via_id
          EXPORTING
            is_column_id = e_column_id
            is_row_no    = es_row_no.
      ENDMETHOD.                    "lcl_event_handler
    *Handle Double Click
      METHOD  handle_double_click.
        CASE sender.
          WHEN grid1.
    * returns cell double clicked  FROM GRID 1
    * Ignore any event from GRID 2
            PERFORM double_click
               USING e_row
               e_column.
        ENDCASE.
      ENDMETHOD.                    "handle_double_click
    * Add our buttons to standard toolbar
      METHOD handle_toolbar.
        CASE sender.
    * Only add functionality to PRIMARY GRID (GRID 1)
          WHEN grid1.
    * append a separator to normal toolbar
            CLEAR ls_toolbar.
            MOVE 3 TO ls_toolbar-butn_type.
            APPEND ls_toolbar TO e_object->mt_toolbar.
    * Delimit Org
            CLEAR ls_toolbar.
            MOVE 'PROC' TO ls_toolbar-function.
            MOVE icon_railway TO ls_toolbar-icon.
            MOVE 'DELIMIT' TO ls_toolbar-quickinfo.
            MOVE 'DELIMIT ORG UNIT' TO ls_toolbar-text.
            MOVE ' ' TO ls_toolbar-disabled.
            APPEND ls_toolbar TO e_object->mt_toolbar.
    * Select All Rows
            MOVE 'SELE' TO ls_toolbar-function.
            MOVE icon_select_all TO ls_toolbar-icon.
            MOVE 'ALL CELLS' TO ls_toolbar-quickinfo.
            MOVE 'ALL CELLS' TO ls_toolbar-text.
            MOVE ' ' TO ls_toolbar-disabled.
            APPEND ls_toolbar TO e_object->mt_toolbar.
    * Deselect all Rows.
            MOVE 'DSEL' TO ls_toolbar-function.
            MOVE icon_deselect_all TO ls_toolbar-icon.
            MOVE 'DESELECT ALL' TO ls_toolbar-quickinfo.
            MOVE 'DESELECT ALL' TO ls_toolbar-text.
            MOVE ' ' TO ls_toolbar-disabled.
            APPEND ls_toolbar TO e_object->mt_toolbar.
            ENDCASE.
         move  0 to ls_toolbar-butn_type.
         move 'EXCEL' to ls_toolbar-function.
         move  space to ls_toolbar-disabled.
         move  icon_xxl to ls_toolbar-icon.
         move 'Excel' to ls_toolbar-quickinfo.
         move  'EXCEL' to ls_toolbar-text.
         append ls_toolbar to e_object->mt_toolbar.
      ENDMETHOD.                    "handle_toolbar
      METHOD handle_user_command.
    * Entered when a user presses a Grid toolbar
    * standard toolbar functions processed
    * normally
       g_sender = sender.
        CASE e_ucomm.
          WHEN 'PROC'.    "Process selected data
            PERFORM get_selected_rows.
          WHEN 'SELE'.
            PERFORM select_all_rows.
          WHEN 'DSEL'.
            PERFORM deselect_all_rows.
          WHEN 'EXCEL'.
              call method me->download_to_excel.
            WHEN OTHERS.
        ENDCASE.
      ENDMETHOD.                    "handle_user_command
      METHOD handle_data_changed.
    * only entered on data change  Not req for ths app.
        PERFORM data_changed USING er_data_changed.
      ENDMETHOD.                    "data_changed
      METHOD handle_data_changed_finished.
    * only entered on data change finished  Not req for ths app.
        PERFORM data_changed_finished.
      ENDMETHOD.                    "data_changed_finished
    * Interactive download to excel
      method download_to_excel.
      field-symbols:
       <qs0>   type standard table,
       <qs1>   type standard table.
      data: G_OUTTAB1 type ref to data,
            g_fldcat1 type ref to data,
            LS_LAYOUT type KKBLO_LAYOUT,
            LT_FIELDCAT type KKBLO_T_FIELDCAT,
            LT_FIELDCAT_WA type KKBLO_FIELDCAT,
            L_TABNAME type SLIS_TABNAME.
    case g_sender.
      when grid1.
         get reference of <dyn_table> into g_outtab1.
         get reference of it_fldcat into g_fldcat1.
       when grid2.
       get reference of <dyn_table1> into g_outtab1.
         get reference of it_fldcat1 into g_fldcat1.
    endcase.
       assign g_outtab1->* to <qs0>.
        assign g_fldcat1->* to <qs1>.
           call function  'LVC_TRANSFER_TO_KKBLO'
          exporting
            it_fieldcat_lvc   = <qs1>
    *     is_layout_lvc     = m_cl_variant->ms_layout
             is_tech_complete  = ' '
          importing
            es_layout_kkblo   = ls_layout
            et_fieldcat_kkblo = lt_fieldcat.
        loop at lt_fieldcat into lt_fieldcat_wa.
          clear lt_fieldcat_wa-tech_complete.
          if lt_fieldcat_wa-tabname is initial.
            lt_fieldcat_wa-tabname = '1'.
            modify lt_fieldcat from lt_fieldcat_wa.
          endif.
          l_tabname = lt_fieldcat_wa-tabname.
        endloop.
        call function 'ALV_XXL_CALL'
             exporting
                  i_tabname           = l_tabname
                  is_layout           = ls_layout
                  it_fieldcat         = lt_fieldcat
                  i_title             = sy-title
             tables
                  it_outtab           = <qs0>
             exceptions
                  fatal_error         = 1
                  no_display_possible = 2
                  others              = 3.
        if  sy-subrc <> 0.
          message id sy-msgid type 'S' number sy-msgno
                 with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        endif.
    endmethod.
    ENDCLASS.                    "lcl_event_handler IMPLEMENTATION
    The sender instance is a variable such as  g_sender type ref to cl_gui_alv_grid.       "Sender instance.
    The above example is for OO ALV grids but should work for other interactive cases where a User presses a key or does a mouse action.
    Cheers
    jimbo

Maybe you are looking for

  • Re : Payment Terms 40 days due on 10 th month

    Needs Payment Term Configuration  : Payment Terms 40 days due on 10 th month Regards Chandu

  • Creating Active directory

    Hi Geeks, i need to develope an interface which is run every day and will send SAP HR data to Microsoft Active directory. It will handle 3 scenarios 1. create new accounts in Active directory for all new hires on the current date ( ie the date on whi

  • Authorization of goods issue at shop floor.

    Hi PP Gurus, I am mapping the process & get lured into the authorization of goods issue of RAW materials. After MRP run PR are automatically created for RAW materials due to 'control parameters' settings in MRP run screen. Now at the time of Producti

  • How do I add FaceBook?

    I purchased my HP Photosmart 6510 because it advertised access to FaceBook, yet I have not been able to add it. How do I accomplish the addition?

  • User status should be in disabled and locked

    Hi All, i am using Oracle IDM 11g, After reconcilation happend from trusted source user should be created in disabled and locked status IDM. for this what i need to do the setups can any one ine help me out in this Regards Siva