Skip to Content
0
Former Member
Apr 16, 2008 at 03:16 PM

ALV tree help required

46 Views

Hello All,

I need a help on ALV tree

My requirement is! i need to edit some fields in ALV tree.

In order to do this. I have written the below code

          gs_layout_node-fieldname = 'ZMENGE1'.
          gs_layout_node-editable = 'X'.
          APPEND gs_layout_node TO gt_layout_node.

    CALL METHOD lcl_gui_alv_tree2->add_node
      EXPORTING
        i_relat_node_key = p_node_key
        i_relationship   = cl_gui_column_tree=>relat_last_child
        i_node_text      = node_text
        is_outtab_line   = gs_merkpl
        it_item_layout   = gt_layout_node
      IMPORTING
        e_new_node_key   = s_node_key.

The program dumps when i expand nodes and it gives the following error. The fields are not in editable mode.

Exception condition "CNTL_ERROR" raised.
You may able to find an interim solution to the problem
in the SAP note system. If you have access to the note system yourself,
use the following search criteria:

------------------------------------------------------------------------
"RAISE_EXCEPTION" C
"CL_GUI_CFW====================CP" or "CL_GUI_CFW====================CM00P"
"UPDATE_VIEW"
------------------------------------------------------------------------
or

"CL_GUI_CFW====================CP" "CNTL_ERROR"

or

"ZV_HF_TREE " "CNTL_ERROR"
If you cannot solve the problem yourself, please send the
following documents to SAP:

1. A hard copy print describing the problem.
   To obtain this, select the "Print" function on the current screen.
-

2. A suitable hardcopy prinout of the system log.
   To obtain this, call the system log with Transaction SM21
   and select the "Print" function to print out the relevant
   part.

3. If the programs are your own programs or modified SAP programs,
   supply the source code.
   To do this, you can either use the "PRINT" command in the editor or
   print the programs using the report RSINCL00.

4. Details regarding the conditions under which the error occurred
   or which actions and input led to the error.

000040     CALL FUNCTION 'AC_SYSTEM_FLUSH'
000050          exporting CALLED_BY_SYSTEM = called_by_system
000060          EXCEPTIONS
000070               CNTL_SYSTEM_ERROR = 1
000080               CNTL_ERROR        = 2
000090               OTHERS            = 3.
000100
000110     CASE SY-SUBRC.
000120       WHEN 0.
000130       WHEN 1.                            "// system_error
000140         RAISE CNTL_SYSTEM_ERROR.
000150       WHEN 2.                            "// method_call_error
     >         RAISE CNTL_ERROR.
000170       WHEN 3.                            "// property_set_error
000180         RAISE CNTL_ERROR.
000190       WHEN 4.                            "// property_get_error
000200         RAISE CNTL_ERROR.
000210       WHEN OTHERS.
000220         RAISE CNTL_ERROR.
000230     ENDCASE.
000240
000250   ENDMETHOD.

Can any tell me what is the mistake i am doing.

Regards,

Lisa

Edited by: Lisa Roy on Apr 16, 2008 11:16 AM