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

  • Need to re-add computer to iTunes Match each time I open iTunes

    Every time I start up iTunes (10.6.1.7) on my Windows Desktop PC (Windows 7 Home Premium, Service Pack 1, 64 bit), I see the cloud with lightening bolt icon next to the music item in the iTunes Library indicating that iTunes is not connected with iTu

  • How to use authorization object P_PERNR ?

    Hi, Gurus~ In our system, there is a user whose User ID is "00041", and she can modify her own 0008, we want to control it so that she can only display her own 0008, but process 0008 for all other employees So, i use the authorization object P_PERNR

  • Is there a way to put anchors in code to quickly navigate files?

    Hi, I've been using dreamweaver for some time now and I've been wondering if this feature exists. I'd like to be able to mark a section of code such as my h1-h6 definitions in a css file and by clicking a button, creating a keyboard shortcut, or some

  • I am unable to purchase Creative Cloud?

    I've tried about 10 times with two different credit cards but for some reason I am unable to purchase Creative Cloud. I keep getting this error message...... Your billing address doesn't seem to match the credit card you entered. Check to make sure y

  • Photoshop CS3 crashing on Save for Web & Devices

    I'm having a problem with Photoshop CS3 crashing every time I use the "Save for Web & Devices" option. It allows me to open the dialog box and configure my file, but as soon as I click Save, it crashes. Has anyone else had this issue and if so, how d