CL_SALV_TREE

Has anyone been able to get the set_medium_text and
set_long_text functions to work?

That's interesting,  the only one that I can get to work is the set_short_text.  Seems like you have found a bug.  You might want to report to OSS.
Regards,
RIch Heilman

Similar Messages

  • How to set selected row on startup of an alv tree build with cl_salv_tree

    HI,
    I have a cl_salv_tree and want the tree structure to open a specific node when starting the report. My coding is something like that:
      DATA: lr_selections       TYPE REF TO cl_salv_selections_tree,
            lr_nodes            TYPE REF TO cl_salv_nodes,
            lr_node             TYPE REF TO cl_salv_node,
            lv_node_index(12)   TYPE c,
            lt_nodes            TYPE salv_t_nodes,
            ls_nodes            TYPE salv_s_nodes,
            lr_item             TYPE REF TO cl_salv_item.
    lr_selections = lr_tree->get_selections( ).
    lt_nodes = lr_selections->get_selected_nodes( ).
    lr_item = lr_selections->get_selected_item( ).
    IF lr_item IS NOT BOUND.
      lr_nodes = lr_tree->get_nodes( ).
      lr_node = lr_nodes->get_node( lv_node_index ).  "lv_node_index is the index of the node i want to be open on startup
      ls_nodes-key = lv_node_index.
      ls_nodes-node = lr_node.
      APPEND ls_nodes TO lt_nodes.
      lr_selections->set_selected_nodes( lt_nodes ).
    ELSE.
      ls_nodes-node = lr_item->get_node( ).
      ls_nodes-key = ls_nodes-node->get_key( ).
      APPEND ls_nodes TO lt_nodes.
      lr_selections->set_selected_nodes( lt_nodes ).
    ENDIF.
    This coding is also used, when the report is running and someone clicks an a row. So thats why I check if a item is marked
    or the total row.
    But the tree always starts without opening the node.
    Do I use the right methods or am I totally wrong ????
    Thx for your help in advance
    dinodini
    Edited by: dinodini on Nov 16, 2010 6:51 PM

    What you are looking for is the similar functionality which could be achieved by the method EXPAND_NODE of the ALV Tree created using CL_GUI_ALV_TREE. In SALV Tree, you can use the method EXPAND of the class CL_SALV_NODE to show all the subnodes of that node, not by using the SELECTION.
    Once you add the Node using the method ADD_NODE, you should call the method EXPAND to expand that subtree.
                lr_nodes  = lr_tree->get_nodes( ).
                lr_node =  lr_nodes->ADD_NODE( ... )
                lr_node->EXPAND( COMPLETE_SUBTREE = 'X' ).
    Regards,
    Naimesh Patel

  • Dynpro pai call after checkbox click in cl_salv_tree

    Hello experts,
    I have a cl_salv_tree in a custom container on a dynpro. I activated editable checkboxes. I want to pass data from the ALV to the dialogue program after activating the checkbox: So I set up an event handler for CHECKBOX_CHANGE. There I set some screen data of the dynpro. I do also some changes in the tree itself.
    The tree display is being updated in this way, but the dynpro data isn't because no PBO is being processed. To enforce this, I put a "leave screen" command at the end of the event handling. Now, the screen data shows up fine. But the tree does not refresh. How can I refresh both screen and tree control data?
    Thanks to all
    Joerg

    You could execute a CALL METHOD cl_gui_cfw=>set_new_ok_code to trigger a PAI/PBO
    Regards,
    Raymond

  • CL_SALV_TREE: how to avoid the toolbar

    I use CL_SALV_TREE to show a popup-window that has only one container for the tree. The user may choose an item from the tree by doubleclicking it.
    I do not need any toolbar for this functionality, so I do not set any function. But above the tree there is a line of free space left in the container, where the toolbar normally would be shown. Is it possible to switch the toolbar off, so that the tree will use the complete container without leaving empty space for a toolbar?

    CL_SALV_TREE uses CL_SALV_CONTROLLER_TREE and this uses an adapter.
    CL_SALV_TREE within a container creates an adapter of  type CL_SALV_TREE_ADAPTER and this creates a CL_SALV_GUI_TREE with the parameter no_toolbar = abap_false, so you always get a toolbar - with icons or not depends on your choice of functions, without icons you'll get empty space.
    CL_SALV_TREE without a container (fullscreen) creates an adapter of  type CL_SALV_FULLSCREEN_TREE_ADAPTE and this creates a CL_SALV_GUI_TREE with the parameter no_toolbar = abap_true, so you never get a toolbar, no icons and no empty space.
    Have a look at SALV_DEMO_TREE_SIMPLE. You can choose between fullscreen and tree in dynpro (container). Fullscreen-mode is without toolbar (but with icons from gui-status SALV_STANDARD). Container-mode is with toolbar (or empty space when you delete the functions).
    So, I suppose there is no easy way to get rid of the empty space - unless you take CL_SALV_GUI_TREE directly
    regards, Karsten
    Edited by: Karsten Korte on Sep 22, 2009 4:19 PM

  • Toolbar for CL_SALV_TREE

    I am trying to develop a ALV Tree using CL_SALV_TREE and am having difficulty integrating the toolbar. Normally the code below would work for CL_SALV_TABLE but it does not show me the toolbar for TREE. I want to be able to use some of the functionality like Export, Print Preview and so on which is standard in every ALV Report. Please help. Thank you
    FORM display_fullscreen .
    *... §1 create an ALV tree
      TRY.
          cl_salv_tree=>factory(
            IMPORTING
              r_salv_tree = gr_tree
            CHANGING
              t_table      = gt_outtab ).
        CATCH cx_salv_no_new_data_allowed cx_salv_error.
          EXIT.
      ENDTRY.
      PERFORM create_tree.
    DATA: gr_functions TYPE REF TO CL_SALV_FUNCTIONS_TREE.
    gr_functions = gr_tree->get_functions( ).
    gr_functions->set_all( abap_true ).
      gr_tree->display( ).
    ENDFORM.                    " display_fullscreen

    ... a little more ... see http://help.sap.com/saphelp_nw04/helpdata/en/41/b22041d69ba52fe10000000a155106/content.htm

  • Question to CL_SALV_TREE

    Hi,
    i have a problem with CL_SALV_TREE when i expand all lines.
    I use NODE->EXPAND( ) for each header lines.
    it works, but when the output is comming it's shows the last lines, not the
    first ones. Is there any parameter to start the output on the top?
    When i don't use expand it starts with top.
    Another question. I there a possibility to set expand for all for example
    in Header settings? Hoe and where shell i set it?
    Thanks.
    Regards, Dieter

    Hi Rich,
    First_key has the value 1 !!
    Hier my code:
    FORM TREE_HIERARCHIE.
      NODES = GR_TREE->GET_NODES( ).
      LOOP AT IT_ITAB_TMP INTO WA_ITAB.
        WRITE WA_ITAB-QMNUM TO TEXT_HIER.
        CONCATENATE TEXT_HIER WA_ITAB-QMTXT INTO TEXT_HIER SEPARATED BY SPACE.
        ON CHANGE OF WA_ITAB-QMNUM.
          TRY.
              NODE = NODES->ADD_NODE( RELATED_NODE = ''
                                      DATA_ROW     = WA_ITAB
                                      TEXT         = TEXT_HIER
                                      RELATIONSHIP = CL_GUI_COLUMN_TREE=>RELAT_LAST_CHILD ).
              QMNUM_KEY = NODE->GET_KEY( ).
              IF FIRST_KEY IS INITIAL. FIRST_KEY = QMNUM_KEY. ENDIF.
            CATCH CX_SALV_MSG.
          ENDTRY.
        ENDON.
        TRY.
            WRITE 'Aktionen' TO TEXT_HIER.
            NODE = NODES->ADD_NODE( RELATED_NODE = QMNUM_KEY
                                    TEXT         = TEXT_HIER
                                    DATA_ROW     = WA_ITAB
                                    RELATIONSHIP = CL_GUI_COLUMN_TREE=>RELAT_LAST_CHILD ).
            LAST_KEY = NODE->GET_KEY( ).
          CATCH CX_SALV_MSG.
        ENDTRY.
      ENDLOOP.
      IF P_STUFEX = 'X'.
        CALL METHOD NODES->EXPAND_ALL.
      ENDIF.
      TRY.
          CALL METHOD NODES->SET_TOP_NODE
            EXPORTING
              NODE_KEY = FIRST_KEY.
        CATCH CX_SALV_MSG .
      ENDTRY.
    ENDFORM.                    "TREE_HIERARCHIE
    It still doesn't work. thanks.
    Regards, Dieter

  • CL_SALV_TREE not displaying medium and short text

    Hi All,
            Is it possible to get the medium and long text to be displayed using SALV TREE(CL_SALV_TREE)? I have searched the forums and got the below information. Is there any other way?
    [CL_SALV_TREE;
    [http://www.sapfans.com/forums/viewtopic.php?f=13&t=351428]
    Regards,
    Srikanth.

    It looks like a Bug. This method COMPLETE_METADATA_TREE of the class CL_SALV_CONTROLLER_METADATA is responsible for setting up the column headings. The code lines in the methods are:
      field-symbols: <fcat> type LVC_s_FCAT.
      loop at t_fieldcatalog assigning <fcat>.
        if not <fcat>-scrtext_s is initial.
          <fcat>-coltext = <fcat>-scrtext_s.
        elseif not <fcat>-scrtext_m is initial.
          <fcat>-coltext = <fcat>-scrtext_m.
        elseif not <fcat>-scrtext_l is initial.
          <fcat>-coltext = <fcat>-scrtext_l.
        endif.
        <fcat>-seltext = <fcat>-coltext.
      endloop.
    So the work around would be, you set all of the other heading text to blank. Like if you want the Medium text, set Short text as blank. If you want the long text, set both Short and Medium text to blank.
    * Will generate column heading from Long Text.
      lr_column = ir_columns->get_column( 'CONNID' ).   
      lr_column->set_short_text( '' ).
      lr_column->set_medium_text( '' ).
    Regards,
    Naimesh Patel

  • Docking Container and CL_SALV_TREE

    Hi,
    i get problems with this code.
    i'm using docking container, not customer container.
      CREATE OBJECT GR_DCONTAINER
        EXPORTING
          PARENT = CL_GUI_CONTAINER=>SCREEN0
          SIDE   = CL_GUI_DOCKING_CONTAINER=>DOCK_AT_LEFT
          RATIO  = 90.
      PERFORM DYNP_SPLITTEN.
      CREATE OBJECT GR_ALVGRID_RIGHT
        EXPORTING
          I_PARENT = O_PARENT_GRID_RIGHT.
      TRY.
          CL_SALV_TREE=>FACTORY(
            EXPORTING
              R_CONTAINER  = O_PARENT_GRID_RIGHT
            IMPORTING
              R_SALV_TREE  = GR_TREE
            CHANGING
              T_TABLE      = ITAB ).
    <b>    CATCH CX_SALV_NO_NEW_DATA_ALLOWED CX_SALV_ERROR.
          EXIT.</b>
      ENDTRY.
    i get the catch-event and the report ends.
    Question: Does the ALV-TREE need customer container or can
    i use docking container (how??).
    thanks for help.
    Regards Dieter

    Sure,  in this case, it is impelmented in a docking container hanging from a selection screen, but it is pretty much the same as hanging off a dynpro.
    REPORT zrich_0001.
    DATA: gt_outtab1 TYPE TABLE OF sflight,
          gt_outtab2 TYPE TABLE OF sflight.
    DATA: ls_outtab TYPE sflight.
    DATA: gr_tree  TYPE REF TO cl_salv_tree.
    DATA: nodes TYPE REF TO cl_salv_nodes,
          node TYPE REF TO cl_salv_node.
    DATA: docking TYPE REF TO cl_gui_docking_container.
    PARAMETERS: p_check.
    AT SELECTION-SCREEN OUTPUT.
      CREATE OBJECT docking
          EXPORTING
    *         PARENT = CL_GUI_CONTAINER=>SCREEN0
               side = cl_gui_docking_container=>dock_at_left
              ratio = 90.
    *... Select Data
      SELECT * FROM sflight INTO CORRESPONDING FIELDS OF TABLE gt_outtab1 UP TO 5 ROWS.
    *... Create Instance with an Empty Table
      CALL METHOD cl_salv_tree=>factory
        EXPORTING
          r_container = docking
        IMPORTING
          r_salv_tree = gr_tree
        CHANGING
          t_table     = gt_outtab2.
    *... Add the Nodes to the Tree
      nodes = gr_tree->get_nodes( ).
      LOOP AT gt_outtab1 INTO ls_outtab.
        TRY.
            node = nodes->add_node( related_node = ' '
                                    relationship = cl_gui_column_tree=>relat_first_child ).
            node->set_data_row( ls_outtab ).
          CATCH cx_salv_msg.
        ENDTRY.
      ENDLOOP.
    *... Display Table
      gr_tree->display( ).
    Regards,
    RIch Heilman

  • Example cl_salv_table and cl_salv_tree

    Hi all,
    does anyone have a nice example where there's a combination of the cl_salv_table and cl_salv_tree?
    In the SALV_OBJECTS package I didn't find a example which combines the two.
    The RF monitor (ZLRF1) has both (even 2 tables), but uses the old-fashion cl_gui_alv_grid and cl_gui_column_tree,
    I would like to create a programm which has a simular interface.
    greetings Fred.

    check with RSDEMO* in SE38

  • Class cl_salv_tree in Netweaver 2004

    Hi
    Has anyone successfully been able to use this class to display a tree? Any examples would be greatly appreciated.
    Thanks
    Message was edited by: Faaiez Sallie

    Hi ,
    Here is the example from sap help .. the code runs.
      data: gt_outtab1 type table of sflight,
            gt_outtab2 type table of sflight.
      data: ls_outtab type sflight.
      data: gr_tree  type ref to cl_salv_tree.
      data: nodes type ref to cl_salv_nodes,
            node type ref to cl_salv_node,
            key type SALV_DE_NODE_KEY.
    *... Select Data
      select * from sflight into corresponding fields of table gt_outtab1 up to 5 rows.
    *... Create Instance with an Empty Table
      call method cl_salv_tree=>factory
        IMPORTING
          R_SALV_TREE = gr_tree
        changing
          t_table      = gt_outtab2.
    *... Add the Nodes to the Tree
      nodes = gr_tree->get_nodes( ).
      loop at gt_outtab1 into ls_outtab.
        try.
          node = nodes->add_node( related_node = key
                                  relationship = cl_gui_column_tree=>relat_first_child ).
          node->set_data_row( ls_outtab ).
        catch cx_salv_msg.
        endtry.
      endloop.
    *... Display Table
      gr_tree->display( ).
    regards
    austin

  • CL_SALV_TREE PopUp

    Hello!
    Is ther any way to show a alv tree of CL_SALV_TREE in a popup window?
    When I call a screen by "_CALL SCREEN 0120 STARTING AT 20 20 ENDING AT 100 100._" the screen appears blank! But when I call it "_CALL SCREEN 0120_" the alv is shown correctly!
    I would like to display the alv in a popup!
    Is that possible?
    Best Regards!

    Yes, TREE could be displayed in the Popup.
    I copied the standard program SALV_DEMO_TREE_SIMPLE and changed the call screen statement to
      call screen 100 STARTING AT 20 20 ENDING AT 100 50.
    and it is working as expected.
    Try this and if it is still not working than it might be an issue with your SAP GUI.
    Regards,
    Naimesh Patel

  • CL_SALV_TREE key node problem

    Hi,
    I am strugling with class cl_salv_tree. I want to build a tree based on entries from a table. Each entry should be related to its supernode as a child (so we had same number of nodes as number of rows in table).
    I have the following code:
    DATA: ref_nodes TYPE REF TO cl_salv_nodes,
              new_node  TYPE REF TO cl_salv_node,
              key_node  TYPE salv_de_node_key.
    "get all nodes
    ref_nodes = ref_table->get_nodes( ).
    LOOP AT gt_sflight INTO wa_sflight.
        IF sy-tabix = 1.
          key_node = space.   "first entry is child of root node
        endif.
        "here my problem starts...
        TRY.
            new_node = ref_nodes->add_node(
                    related_node   = key_node
                    data_row       = wa_sflight
                    relationship   = cl_gui_column_tree=>relat_last_child ).   "add row a child
            "get new row's key
            key_node = new_node->get_key( ).
          CATCH cx_salv_msg .
        ENDTRY.
      ENDLOOP.
    The problem is that only first entry is added to tree, hence as a result I have one node which is child of ROOT node.
    I am wondering where is the error. I look through demo SALV_DEMO_TREE_SIMPLE but it seems my logic is correct here. Can you please help me to identify my bug?
    Thank you
    Marcin

    Oh ok...
    I tried by copying the SALV_DEMO_TREE_SIMPLE to Z report and changed the logic in the SUPPLY_DATA and it gave me what you are trying to achieve.
      loop at lt_outtab into ls_data.
        IF sy-tabix = 1.
          l_last_key = space.   "first entry is child of root node
        endif.
        perform add_complete_line using  ls_data
                                         l_last_key
                                changing l_last_key.
      endloop.
    I am not sure, how much deep hierarchy we could have. If you have much data than it would be a good idea to do it like this.
    Regards,
    Naimesh Patel

  • Bug in CL_SALV_TREE when using ADD_AGGREGATION / SET_STYLE ?

    Hi Experts!
    I am trying to implement  CL_SALV_TREE for creating a tree report which will be capable of performing AVERAGE and TOTAL on numeric (INT / DEC) columns. Secondly, I am trying to change the color (style) of the cell (item) based on its value.
    To add aggregations I am doing something like this:
    DATA: lr_aggregations TYPE REF TO cl_salv_aggregations.
      lr_aggregations = gr_tree->get_aggregations( ).
      lr_aggregations->clear( ).
    TRY.
          lr_aggregations->add_aggregation( columnname  = 'BKJOB'
                                            aggregation = if_salv_c_aggregation=>total ).
          lr_aggregations->add_aggregation( columnname  = 'CNJOB'
                                            aggregation = if_salv_c_aggregation=>total ).
          lr_aggregations->add_aggregation( columnname  = 'AVCAP'
                                            aggregation = if_salv_c_aggregation=>total ).
        CATCH cx_salv_not_found cx_salv_data_error cx_salv_existing.
      ENDTRY.
    And for changing the STYLE (background color) of a cell (item) I am using following code:
    TRY .
            LOOP AT it_nodes INTO wa_nodes.
              l_node_key = wa_nodes-key.
              nodes = gr_tree->GET_NODES( ).
              node = nodes->get_node( l_node_key ).
              item = node->get_item( 'BKCAP' ).
              lv_val = item->get_value( ).
              ASSIGN lv_val->* TO <lv_value>.
              IF <lv_value> GT '100.00'.
                item->set_style( lv_high ). "5 (Red)
              ELSEIF <lv_value> BETWEEN '80.00' AND '100.00'.
                item->set_style( lv_med ). "7 (Yellow)
              ELSEIF <lv_value> LT '80.00'.
                item->set_style( lv_low ). "6 (Green)
              ENDIF.
            ENDLOOP.
          CATCH cx_salv_msg.
        ENDTRY.
    The color changes work fine for leaf nodes but it doesn't if it is parent node. If I comment the aggregation code, it displays the color.
    I believe ADD_AGGREGATION method overrides the STYLE of the NODE ITEM.
    Is it a bug? Any fixes?
    Thanks & Regards,
    Aabhas K Vishnoi

    Actually, when you don't add the aggregations in your TREE, the Node record is exactly same as your very first Leaf so, it takes the same property as the Leaf's property. That's why we can see the color on the first node when we don't apply the Aggregations.
    Now, when we apply the aggregations, system applies its own Style on the NODE (Dark Blue color) and this style overrides the style of the Leaf.
    Regards,
    Naimesh Patel

  • CL_SALV_TREE: How to read the value of a double-clicked field

    Hey Guys!
    I have build a list with CL_SALV_TREE. When the user makes a DOUBLE CLICK in a especially field of a line I want to call a transaction with the field's value.
    Can you please tell me how exactly I can get the value of the double-clicked field?
    Reacting on the double-click-event is no problem (thanks to the sap-sample-codes), but I just don't know how to find the item-value having node-key and columname.
    I got this far:
    *       CLASS lcl_handle_events DEFINITION
    class lcl_handle_events definition.
      public section.
        methods:
          on_double_click for event double_click of cl_salv_events_tree
            importing node_key columnname.
    endclass.                    "lcl_handle_events DEFINITION
    *       CLASS lcl_handle_events IMPLEMENTATION
    class lcl_handle_events implementation.
      method on_double_click.
    *   selecting field's value
    *   call transaction
        message i000(0k) with node_key columnname. 'just for test
    endmethod.                    "on_double_click
    endclass.                    "lcl_handle_events IMPLEMENTATION
    I googled a lot and also searched in this forum and found some questions to a similar topic, but no solution to my problem.
    Can you help me with some example-code?
    Thank you very much!!!

    You need to get the Node and node value of the selected column like this.
    METHOD on_double_click.
        DATA: lr_nodes TYPE REF TO cl_salv_nodes,
              lr_node  TYPE REF TO cl_salv_node,
              lr_val   TYPE REF TO  cl_salv_item,
              lr_data  TYPE REF TO data.
        FIELD-SYMBOLS: <lv_val> TYPE ANY.
        lr_nodes = gr_tree->get_nodes( ).           " All nodes
        lr_node = lr_nodes->get_node( node_key ).   " selected node
        IF columnname IS NOT INITIAL.
          lr_val =  lr_node->get_item( columnname ).   " Object for selected column
          lr_data = lr_val->get_value( ).              " value of selected column
          ASSIGN lr_data->* TO <lv_val>.
        ENDIF.
      ENDMETHOD.                    "on_double_click
    Regards,
    Naimesh Patel

  • How to store a layout, when using CL_SALV_TREE with a container?

    Hello,
    I'd like to use an object of type CL_SALV_TREE, that is placed on a custom container (and therefore not displayed in fullscreen).
    But how do I get the functionality to store a layout, when using CL_SALV_TREE not in fullscreen mode? If you use it in fullscreen mode, you just have to define the function code in your gui status and everything is ok.
    But since I want to place my CL_SALV_TREE on a custom container, that method does not work. If I call <my_salv_tree>->get_functions( ) it returns a table, that holds just six entries. So, the appropiate function for storing a layout does not seem to be in the default set of functions, when using CL_SALV_TREE with a custom container. But how do I activate this function?
    I already call the functions get_layout() and set_key() - so that shouldn't be the problem. Or is just not possible to use CL_SALV_TREE on a custom container and have the possibility to store layouts?
    Kind regards, Lars

    Hello,
    I'd like to use an object of type CL_SALV_TREE, that is placed on a custom container (and therefore not displayed in fullscreen).
    But how do I get the functionality to store a layout, when using CL_SALV_TREE not in fullscreen mode? If you use it in fullscreen mode, you just have to define the function code in your gui status and everything is ok.
    But since I want to place my CL_SALV_TREE on a custom container, that method does not work. If I call <my_salv_tree>->get_functions( ) it returns a table, that holds just six entries. So, the appropiate function for storing a layout does not seem to be in the default set of functions, when using CL_SALV_TREE with a custom container. But how do I activate this function?
    I already call the functions get_layout() and set_key() - so that shouldn't be the problem. Or is just not possible to use CL_SALV_TREE on a custom container and have the possibility to store layouts?
    Kind regards, Lars

  • How to set column title for CL_SALV_TREE

    Dear all,
    I am using CL_SALV_TREE to create a report. But, some unexpected problem comes up. I have used below code to set the title for each column:
      LR_COLUMNS = GR_TREE->GET_COLUMNS( ).
      LR_COLUMN = LR_COLUMNS->GET_COLUMN( 'FIELDNAME' ).
      LR_COLUMN->SET_LONG_TEXT( 'Long Text' ).
      LR_COLUMN->SET_MEDIUM_TEXT( 'Medium Text' ).
      LR_COLUMN->SET_SHORT_TEXT( 'Short Text' ).
    But, it seems that above code does not take effect when report is running. The title for column remains the info of ABAP Dictionary. Is anyone can help me to resolve this problem? It's very urgent for me!
    Looking forward to receiving your replies! Thank you very much!
    Justin,

    Hello Justin
    I copied the sample report <b>SALV_DEMO_TREE_FUNCTIONS</b> (available on IDES ECC 5.0) and added the following coding to routine <i>set_columns_technical</i>:
    [code]&----
    *&      Form  set_columns_technical
          text
    FORM set_columns_technical.
      DATA: lr_columns TYPE REF TO cl_salv_columns,
            lr_column  TYPE REF TO cl_salv_column.
      lr_columns = gr_tree->get_columns( ).
      lr_columns->set_optimize( abap_true ).
      lr_columns->set_column_position( columnname = 'PRICE'
                                       position   = 1 ).
    change a column's alignment
      TRY.
          lr_column ?= lr_columns->get_column( 'CURRENCY' ).
          lr_column->set_alignment( if_salv_c_alignment=>right ).
    "$Comment: added coding
          DATA:
            ld_short    TYPE scrtext_s,
            ld_medium   TYPE scrtext_m,
            ld_long     TYPE scrtext_l.
          ld_short = 'Short'.
          lr_column->set_short_text( ld_short ).
          ld_medium = 'Medium Col Text'.
          lr_column->set_medium_text( ld_medium ).
          ld_long = 'Long Column Text'.
          lr_column->set_long_text( ld_long ).
    "$Comment: added coding
        CATCH cx_salv_not_found.                            "#EC NO_HANDLER
      ENDTRY.
    ...[/code]
    At least the new short text is displayed on the ALV tree. I assume that you have to be very careful and scrupulous in choosing the correct data types for the method calls.
    Regards
      Uwe

Maybe you are looking for