Skip to Content
author's profile photo Former Member
Former Member

Hide default folder icon in a node of an alv tree --> cl_gui_alv_tree

Hi All,

Can anyone tell me please if there is a way to hide default folder icon in a node of an alv tree --> cl_gui_alv_tree?

Regards...

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Apr 14, 2011 at 11:45 PM

    Hi,

    the method add_node has paramter is_node_layout with two fields: n_image and exp_image. These fields define what icon is displayed. If you leave them blank it used default folder icons. So you can replace it with some more suitable icons.

    Cheers

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi,

      just check prorgam BCALV_TREE_DEMO. Fo example in routine ADD_CARRID_LINE you can see that they leave fields ls_node-n_image and ls_node-exp_image blank. If you got debugger and change it to some meaningful value then you will see that you are able to change icons. If you set both values to BNONE then there won't be any icon.

      Cheers

  • Posted on Apr 15, 2011 at 04:03 AM

    Hi,

    Refer to the below links

    Hide default folder icon in a node of an alv tree

    CALL METHOD simple_model->add_node
               EXPORTING node_key          = node_key
                     ......
                image             =  'BNONE' 

    'BNONE' : No image is displayed. The node text begins at the position in which the image would normally be displayed. If you use this value for a node, you should also use it for all of its other same-level nodes.

    http://help.sap.com/saphelp_nw2004s/helpdata/en/28/1cfc4ccf4611d3a7030000e83dd863/frameset.htm

    Regards,

    Judith

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.