Drag From cl_column_tree_model To cl_gui_alv_grid Is not Working ???

Hi,
I have building a program that will have one split screen and one of them has cl_column_tree_mode at top, and the other has cl_gui_alv_grid at bottom.
I can Drag And Drop Lines From ALV GRID to TREE and i can use ONDRAG event of ALVGRID, DROP event of TREE Control and ONDROPCOMPLETE event of ALVGRID.
But when i try to reverse it as like that Drag From TREE to ALVGRID, just DRAG event of TREE is triggering.
I have implemented end registered ONDROP event for ALVGRID but it is no triggering.
Have i something which missed ? Some of code at the above.
*****************CODE****************************************
*I created Application Ocject, Custom Container and Spliiter in here
**       Definition of drag drop behaviour
    create object behaviour_top.
    call method behaviour_top->add
        exporting
              flavor = 'LINEFROM' "I dont know where i can use this
              dragsrc = 'X'
              droptarget = 'X'
              effect = cl_dragdrop=>move.
    call method behaviour_top->add
         exporting
               flavor = 'LINETO'   "I dont know where i can use this
               dragsrc = 'X'
               droptarget = 'X'
               effect = cl_dragdrop=>move.
    call method behaviour_top->get_handle
         importing handle = handle_top. "I am not sure that i can use this handle for both TREE Nodes and ALV Rows, But i am using it for both.
******************************   TREE   ********************************
*   CREATE TREE
    ls_treemhhdr-heading = 'Nakliye ve Makaralar'.
    ls_treemhhdr-width   =  35.
    create object gref_column_tree
     exporting
     node_selection_mode   = cl_column_tree_model=>node_sel_mode_single
     item_selection        = space
     hierarchy_column_name = 'NUMBER'
     hierarchy_header      = ls_treemhhdr.
    call method gref_column_tree->create_tree_control
      exporting
        parent                       = container_1    .
*   Events for tree control
    set handler g_application->handle_tree_drag for gref_column_tree.
    set handler g_application->handle_tree_drop for gref_column_tree.
*   Build TREE
    perform build_tree using gref_column_tree. "I use HANDLE_TOP in this when creating nodes.
******************************   TREE   ********************************
****************************  ALV GRID  ********************************
*   create ALV Grid
    create object alv_grid
                  exporting i_parent = container_2.
*   Events alv control
    set handler g_application->handle_alv_drag for alv_grid.
    set handler g_application->handle_alv_drop for alv_grid.
    set handler g_application->handle_alv_drop_complete for alv_grid.
    gs_layout-grid_title = 'İs Listesi'.
    gs_layout-s_dragdrop-row_ddid = handle_top. "I think this is a important thing
    call method alv_grid->set_table_for_first_display
         exporting is_layout        = gs_layout
         changing  it_fieldcatalog  = gt_fieldcat
                   it_outtab        = i_tabout[].
****************************  ALV GRID  ********************************
*I have implemented all methods for this class, it hink its not important to see *which code its has, important is why its not triggering.
class lcl_application definition.
  public section.
    data: next_node_key type i.
    methods:
*   ALV EVENTS
    handle_alv_drag for event ondrag of cl_gui_alv_grid
        importing e_row e_column e_dragdropobj,
    handle_alv_drop for event  ondrop of cl_gui_alv_grid
        importing e_row e_column es_row_no e_dragdropobj,
    handle_alv_drop_complete for event ondropcomplete of cl_gui_alv_grid
        importing e_row e_column e_dragdropobj,
*   TREE EVENTS
    handle_tree_drag for event drag  of cl_column_tree_model
        importing node_key item_name drag_drop_object,
    handle_tree_drop for event drop  of cl_column_tree_model
        importing node_key drag_drop_object,
    handle_tree_drop_complete for event drop_complete of cl_column_tree_model
        importing node_key ITEM_NAME drag_drop_object.
endclass.

Thanks kaipha,
in examples in SE83 i have noticed that i have to create an inctance for drag drop object when drag starts.
  method handle_tree_drag.
    data: "local_node_table type node_table_type,
          new_node type mtreesnode,
          dataobj type ref to lcl_dragdropobj_from_tree,
          l_keytxt(30) type c.
    catch system-exceptions move_cast_error = 1.
*           create and fill dataobject for events ONDROP and ONDROPCOMPLETE
            create object dataobj. "When i create dataobj in here
            move node_key to dataobj->node_key.
            drag_drop_object->object = dataobj. "And when i call this method, ALV Drop event has begin triggered
    endcatch.
    if sy-subrc <> 0.
      call method drag_drop_object->abort.
    endif.
  endmethod.

Similar Messages

Maybe you are looking for

  • How do i create multiple databases on the same unix box?

    Hello experts. Please send me some guidelines on how to create multiple databases on the same unix box and how to configure their startups including listeners. Please also, list me the possible precautions to takes especially if the existing database

  • Dual Monitor Out of Frequency

    I am reposting this from another area to see if get a response here. I have a G5 Dual 1.8 machine with a GeForce FX 5200 DVI-VGA and ADC-VGA adapters. It drives to 17in Daewoo LCD monitors. It all worked fine with dual monitors until I upgraded to 10

  • IPod Info for those who need it

    Just thought I'd give some help to those who need it. - For those who are having trouble with their ipods accepting some videos and not others, try shortening the names of the video files. As long as the video files are in the proper format, this sho

  • How do I create tabs for pdf documents?

    I need to create tabs for documents I am saving as a single pdf file.

  • Info record mandatory

    Dear All, I want to make info record as mandatory without which no one should raise PO, where do I need to do this setting.  Kindly Guide. Rgds Srini