CL_SALV_HIERSEQ_TABLE CHECKBOX_HOTSPOT

Hi All,
I am using below code to display hierarchical ALV
TRY.
    CALL METHOD cl_salv_hierseq_table=>factory(
    EXPORTING t_binding_level1_level2 = w_ibinding
      IMPORTING r_hierseq = w_table
        CHANGING t_table_level1 = t_vbak1
                 t_table_level2 = t_vbap1 ).
  CATCH cx_salv_data_error .
  CATCH cx_salv_not_found .
ENDTRY.
And using below code to display checkbox.
  try.
      w_columns = w_table->get_columns( level = 1 ).
      w_column ?= w_columns->get_column( 'CBOX' ).
      w_column->set_cell_type( if_salv_c_cell_type=>checkbox ). "checkbox_hotspot
      w_column->set_long_text( 'Check-box' ).
    catch cx_salv_not_found.                            "#EC NO_HANDLER
  endtry.
Checkbox will appear in display mode.
I need checkbox in EDITABLE MODE.
So I tried to use
  try.
      w_columns = w_table->get_columns( level = 1 ).
      w_column ?= w_columns->get_column( 'CBOX' ).
      w_column->set_cell_type( if_salv_c_cell_type=>checkbox_hotspot ). "checkbox_hotspot
      w_column->set_long_text( 'Check-box' ).
    catch cx_salv_not_found.                            "#EC NO_HANDLER
  endtry.
But its not working and giving dump saying that we cannot assign checkboc_hotspot in salv_c_cell_type.
Need your help .
I found out below from class documentation
Does this means that we cant not use CHECKBOX_HOTSPOT in cl_salv_hierseq_table.
ALV Tool                                 In Container                  Fullscreen                     Class.ABAP List
Simple, Two-Dim. Table          TEXT                               TEXT                                TEXT
                                                  CHECKBOX                     CHECKBOX                     CHECKBOX
                                                  CHECKBOX_HOTSPOT   CHECKBOX_HOTSPOT    -
                                                  HOTSPOT                        HOTSPOT                        HOTSPOT
                                                  BUTTON                           -                                       -
                                                  LINK                                 LINK                                 -
Hier.-Seq. List                          -                                      -                                      TEXT
                                                   -                                      -                                      CHECKBOX
                                                   -                                      -                                      HOTSPOT
Edited by: ASAPBAP on Nov 30, 2011 7:41 AM

SALV framework doesn't allow for Checkbox with HotSpot. Thus it is raising the exception.
Regards,
Naimesh Patel

Similar Messages

  • End of Page event in ALV report using SALV class[cl_salv_hierseq_table]

    Hi ,
    have been working on a ALV report using the class SALV cl_salv_hierseq_table
    I am facing few issues pertaining to two things:
    1. Displaying some subtotal text along with the subtotals.
    Example refer the standard demo example: SALV_DEMO_HIERSEQ_FORM_EVENTS
    Now instead of A 17 and A26 I would like to show text like Subtotal for the Carrid.for subtotals and grand totals
    Like   Subtotal for A 17 is :      XXXXXXX
              GrandTotal is         :      YYYYYY
    2. We have a page break and a new page for every purchasing group as in the standard example SALV_DEMO_HIERSEQ_FORM_EVENTS for CARRID.
    I need to display some variable values as number of documents ,total number of records etc at the end of each CARRID group before a new page starts for the next CARRID.Please note i do not want it on every page.it should only be diaplyed at the end of page whose next page would be for next CARRID.[basically at end of every carrid]Example:after displaying all details for AA need to display the number of records for that carrid at the end of the page[as page break is based on CARRID]/
    Thanks
    Jyotsna

    at end of page event, for CL_SALV_EVENTS_HIERSEQ, has some useful parameters allowing to know where you are at the time of event
    parameter VALUE is of type CL_SALV_FORM which contains public attribute IF_SALV_FORM~ACCDESCRIPTION; you can slo get contents of it
    about text of total/subtotal, this is normally set in the layout

  • CL_SALV_HIERSEQ_TABLE - Multiple level heirachial sequential list

    Class CL_SALV_HIERSEQ_TABLE  -  Can this class be used for multiple level heirarchial sequential list ?
    It works perfect for 2 level heirarchial list u2013 Thanks to Rich Heilman. Say for Eg, SCARR and SFLIGHT.
    My requirement has more levels. I looked into all the methods of the class, but none of them seems to help to append more levels.
    Here is my requirement.
    Selection screen had date range,  partner functions etc ..
    -->Select all Inquiries for given date range or (TABLE u2013 VBAK) given sold to party/ship to party etcu2026
    -->Get all statuses (system status /user status etc (TABLE u2013 JCDS and TJ30T ).
    -->Select all Quotations for given inquiry, if any
    -->Select all Orders for the selected quotations, if any
    -->Select all deliveries for selected orders, if any and read status, whether shipped or not (VBFA/LIKP/ VBUK )
    And list these in a multilevel heirarchial mode
    Inquiry1/created by/created on/ sold to party/ Application engineer/inside sales Rep
         Status1 / description/ active /  changed by / date      
         Status2/ description/ active /  changed by / date
         u2026..
         u2026..
         Status 5u2026..
              Quotation1 / Created on /created by/quantityu2026
                   Order1/created on/created by/
                        Delivery1 /created on / created by/ not shipped
                        Delivery2/ created on / created by / partially shipped
                   Order2/created on/created by
    Inquiry2/created by/created on/ sold to party/ Application engineer/inside sales Rep
         Status1 / description/ active /  changed by / date      
         Status2/ description/ active /  changed by / date
         u2026..
         u2026..
         Status 5u2026..
              Quotation1 / Created on /created by/quantityu2026
    I need atleast 3 internal tables, 1 for Inquiry, another for status data, another for Quotation/order/delivery.
    Anyone has any clue, how to achieve this ? cl_salv_tree also doesnu2019t seems to helpu2026
    As per my understanding, we could pass only 1 single structure to a tree output.
    For eg, all lines of the tree output should be of the same structure. (please correct me if I am wrong )..
    But In my case, the fields on each level are different, and I need to pass different structures to the tree.
    Please let me know, if anyone have a clue..
    Thanks much

    Sujamol (or anyone),
    did you ever manage to do this? I would like to do the same.
    Report SALV_DEMO_HIERSEQ_COLUMN does it for two levels. What about 3, 4.....?
    Thanks.

  • Go back selection-screen from level2 of cl_salv_hierseq_table

    Hi,
    Problem is to go back on selection screen in one go using BACK , CANCEL or EXIT button
    cl_salv_hierseq_table is being called to display output list.
    Same class cl_salv_hierseq_table is being used to display new list if user wants to see.
    All output list goes into ABAP stack.
    Neither a single standard button BACK , CANCEL or EXIT allow me to go back on selection-screen directly from 2 level onwards . it goes one by one level
    Copied GUI-status to use on_user_command and tried to use LEAVE TO TRANSACTION / CALL TRANSACTION but selection screen values in select-options / parameters not retrived
    How to back on selection-screen from level2 onwards and see all values which are entered initially
    Thanks
    ammonin

    Hi,
    No custom screen is created in my program for displaying result.
    Calling METHOD display of CL_SALV_HIERSEQ_TABLE ,
    So every time each DISPLAY method goes into stack .
    In degug , I found FM REUSE_ALV_HIERSEQ_LIST_DISPLAY is being called
    As per your suggestion it happens only when I am on first level of display result
    If I am calling same METHOD display for another output without distroying exsiting one. it stores in ABAP stack
    I do not know how to initializie existing / Kill CL_SALV_HIERSEQ_TABLE session before calling it again
    Standard button BACK/EXIT/CANCEL does
    SET SCREEN 0
    LEAVE SCREEN and goes back to only one level back not on directly on selection screen.
    If it is on first level then only selection-screen comes with values.
    Thanks
    Amy

  • Which methods are used to rewrite the ALV layout in CL_SALV_HIERSEQ_TABLE

    Hi my friends,
       When using CL_SALV_HIERSEQ_TABLE to create a a hierarchical sequential ALV with aggregation function, the total includes two lines(orange and yellow). the first line is stored the value from header fields(main) and the second line is stored the value from item fields(slave).
       in fact, i don't calculate the header fields, so i don't want to display the first line. how to do it?
    i am looking forward to your reply.
    Thanks a million.

    continue to wait for your answers  

  • How can I activate the average calculation with cl_salv_hierseq_table class

    Hi there,
    Iu2019m using class cl_salv_hierseq_table to display a two level hierarchy (header and item) list.
    For some reason it seams that those calculations are active by default with class cl_salv_table but not for cl_salv_hierseq_table.
    I tried every suggestion from the class documentation and SAP help and nothing seams to work, the menu calculation options are always inactive except for the total calculation.
    After the cl_salv_hierseq_table=>factory...
    And before cl_salv_hierseq_table->display( )
    I triedu2026u2026.
    cl_salv_aggregations = cl_salv_hierseq_table->get_aggregations( 1 )
    cl_salv_aggregations->add_aggregation( 'COLUMN1' )
    COLUMN1 is a currency column in header level table
    u2026u2026..
    cl_salv_aggregations = cl_salv_hierseq_table->get_aggregations( 2 )
    cl_salv_aggregations->add_aggregation( 'COLUMN2' )
    COLUMN2 is a dec column in item level table
    u2026u2026..
    cl_salv_aggregations = cl_salv_hierseq_table->get_aggregations( 2 )
    cl_salv_aggregations->add_aggregation( columnname = 'COLUMN2' aggregation = if_salv_c_aggregation=>average )
    u2026u2026..
    cl_salv_aggregations = cl_salv_hierseq_table->get_aggregations( 2 )
    cl_salv_aggregations->set_aggregation_allowed( 'COLUMN2' )
    u2026u2026..
    cl_salv_aggregations = cl_salv_hierseq_table->get_aggregations( 2 )
    cl_salv_aggregations->set_numerical_aggregation( ).
    cl_salv_aggregations->set_aggregation_allowed( 'COLUMN2' )
    cl_salv_aggregations->add_aggregation( columnname = 'COLUMN2' aggregation = if_salv_c_aggregation=>average )
    u2026u2026..
    cl_salv_aggregations = cl_salv_hierseq_table->get_aggregations( 2 )
    cl_salv_aggregations->add_aggregation( 'COLUMN2' )
    cl_salv_aggregation = cl_salv_aggregations->get_aggregation( 'COLUMN2' )
    cl_salv_aggregation->set( if_salv_c_aggregation=>average )
    Any help will be appreciated!

    Thanks Harsh Bhalla,
    Subtotals can be built (displayed) at Header Level Only, true but the values to calculate those totals can come from either header or item level, otherwise it wouldnu2019t be of much use would it?
    Anyway my question is how to activate the average calculation as well because the totals calculations is already active for either item or header level by default.
    For reference when on the display layout Iu2019m referring to the menu Edit -> Calculate -> Mean Value.

  • Hide header in hier-seq table (CL_SALV_HIERSEQ_TABLE)

    Hello SDN Community members
    I am using a CL_SALV_HIERSEQ_TABLE class to display a hier-seq table.
    Is it possible to hide a header in this table?
    I am checking class methods, layout methods ... and so on and I see no tool to hide this header in each table of hier-seq list.
    I tried to hide all columns from header, but then list becomes corrupted, loose 'graphical consistency' I would say.
    I would appreciate some tips from your side.
    Kind Regards,
    P.

    Hi Milind,
    it is interesting but not necessarily helpful what people post here.
    Class CL_SALV_COLUMN has a method SET_ZERO (Specify Empty Cell Display). There is a documentation which says
    Specify Empty Cell Display
    Functionality
    By default, a zero is displayed in cells that contain no value.
    You use the SET_ZERO method to set whether these rows should contain a blank instead of a zero.
    Parameters
    VALUE
    optional
    Set zeros; SAP_BOOL type
    Output Constant Value
    with a zero  ABAP_TRUE 'X'
    with a blank ABAP_FALSE ' '
    Notes
    Concerns:
    CL_SALV_COLUMN
    CL_SALV_COLUMN_LIST
    CL_SALV_COLUMN_TABLE
    You may try something like
    METHOD grid_columns.
      DATA:
        lo_salv_columns_table    TYPE REF TO cl_salv_columns_table,
        lt_column_ref            TYPE salv_t_column_ref.
      FIELD-SYMBOLS:
        <column_ref>             TYPE LINE OF salv_t_column_ref.
      lo_salv_columns_table = io_salv->get_columns( ).
      lt_column_ref = lo_salv_columns_table->get(  ).
      LOOP AT lt_column_ref ASSIGNING <column_ref>.
        <column_ref>->SET_ZERO( ABAP_FALSE ).
      ENDLOOP.
    ENDMETHOD.
    Regards,
    Clemens

  • Editable fields (Rows and columns) using CL_SALV_HIERSEQ_TABLE

    Hi,
    I have to create an Hierarchical ALV with 2 Level using CL_SALV_HIERSEQ_TABLE.
    The problem is; i need check boxes as well as editable fields in column. I need checkboxes at item lines (which i am able to).
    Can anyone guide me how to make fields editable in CL_SALV_HIERSEQ_TABLE ?
    Thanks in advance.
    Regards,
    Hemant

    Editable fields(other than the checkboxes) are not supported using the ALV Object model(SALV classes).
    Regards,
    Rich Heilman

  • To get selected rows in Class  cl_salv_hierseq_table

    Hi,
    Following is the code I have used to get checkbox in parent entry using class CL_SALV_SELECTIONS .
    DATA: gt_parent TYPE TABLE OF scarr.
    DATA: gt_child TYPE TABLE OF sflight.
    DATA: gr_table  TYPE REF TO cl_salv_hierseq_table.
    DATA: gr_selections TYPE REF TO cl_salv_selections.
    DATA: lt_binding TYPE salv_t_hierseq_binding.
    DATA: ls_binding TYPE salv_s_hierseq_binding.
    SELECT * FROM scarr INTO CORRESPONDING FIELDS OF TABLE gt_parent.
    SELECT * FROM sflight INTO CORRESPONDING FIELDS OF TABLE gt_child.
    ls_binding-master = 'CARRID'.
    ls_binding-slave  = 'CARRID'.
    APPEND ls_binding TO lt_binding.
    CALL METHOD cl_salv_hierseq_table=>factory
      EXPORTING
        t_binding_level1_level2 = lt_binding
      IMPORTING
        r_hierseq               = gr_table
      CHANGING
        t_table_level1          = gt_parent
        t_table_level2          = gt_child.
    gr_selections = gr_table->get_selections( level = 1 ).
    gr_selections->set_selection_mode( cl_salv_selections=>if_salv_c_selection_mode~multiple ).
    gr_table->display( ).
    Now, I want to get the selected rows .Iam not sure how to code my requirement.
    Please help me with sample code.
    Thanks,
    Shivaa...
    Edited by: shiva prasad on Oct 7, 2009 4:44 PM

    at end of page event, for CL_SALV_EVENTS_HIERSEQ, has some useful parameters allowing to know where you are at the time of event
    parameter VALUE is of type CL_SALV_FORM which contains public attribute IF_SALV_FORM~ACCDESCRIPTION; you can slo get contents of it
    about text of total/subtotal, this is normally set in the layout

  • Hiding header details while using CL_SALV_HIERSEQ_TABLE

    Hi,
    I want to hide all the column <b>headers</b> of the Master table. I am using the following code below. But both the master and slave header details are hidden. Please tell me what is wrong.
    TRY.
    CALL METHOD cl_salv_hierseq_table=>factory
      EXPORTING
        t_binding_level1_level2 = it_binding
      IMPORTING
        r_hierseq               = gr_hierseq
      changing
        t_table_level1          = it_master
        t_table_level2          = it_slave
    CATCH cx_salv_data_error .
    CATCH cx_salv_not_found .
    ENDTRY.
    TRY.
    CALL METHOD gr_hierseq->get_columns
      EXPORTING
        level  = c_level_1 " Level 1
      receiving
        value  = gr_columns_hierseq
    CATCH cx_salv_not_found .
    ENDTRY.
    CALL METHOD gr_columns_hierseq->set_headers_visible
      EXPORTING
        value  = IF_SALV_C_BOOL_SAP=>FALSE
    Thanks

    Hi,
    Do one thing.
    Before you pass the internal table to ALV ,sort the internal table and delete the duplicate entries.
    May it helps you.
    Regards.
    Deepak Sharma

  • Object Model - cl_salv_hierseq_table Check box hide and Display

    I am making use of Object model for creating the hierseq ALV.
    I have added a checkbox to my ALV by making use of
    gr_selections = gr_table->get_selections( level = 1 ).
    gr_selections->set_selection_mode(cl_salv_selections=>if_salv_c_selection_mode~multiple ).
    As u can make out by the Value Level = 1 the checkbox is at the header level.
    1.) My query is that i want to Enable the checkbox for some header level records and and Disable some header level records based on a condition.
    2.) Second query is that I want to read records from the alv in which the checkbox is checked..
    Kindly answer.
    Thanks,
    Nikhil Juneja

    Hi aRs.  You need to use the class CL_SALV_SELECTIONS for this.  See here,  
    DATA: gt_parent TYPE TABLE OF scarr.
    DATA: gt_child TYPE TABLE OF sflight.
    DATA: gr_table  TYPE REF TO cl_salv_hierseq_table.
    DATA: gr_selections TYPE REF TO cl_salv_selections.
    DATA: lt_binding TYPE salv_t_hierseq_binding.
    DATA: ls_binding TYPE salv_s_hierseq_binding.
    SELECT * FROM scarr INTO CORRESPONDING FIELDS OF TABLE gt_parent.
    SELECT * FROM sflight INTO CORRESPONDING FIELDS OF TABLE gt_child.
    ls_binding-master = 'CARRID'.
    ls_binding-slave  = 'CARRID'.
    APPEND ls_binding TO lt_binding.
    CALL METHOD cl_salv_hierseq_table=>factory
      EXPORTING
        t_binding_level1_level2 = lt_binding
      IMPORTING
        r_hierseq               = gr_table
      CHANGING
        t_table_level1          = gt_parent
        t_table_level2          = gt_child.
    gr_selections = gr_table->get_selections( level = 1 ).
    gr_selections->set_selection_mode( cl_salv_selections=>if_salv_c_selection_mode~multiple ).
    gr_table->display( ).
    This will give you the checkboxes in the parent level, you still need to write the code to get the selected rows.
    Regards.
    Rich Heilman

  • Grouping using cl_salv_hierseq_table

    Dear All,
    Using the class cl_salv_hierseq_table how can I use grouping like below:
    Country
    Customer No. Customer Name
    Customer No. Part Id                 Part Quantity          Rate
    Hierachy can be done using Bind (on KUNNR), but how to group them using one more level by Country?
    Thanks in advance.

    Dear All,
    Using the class cl_salv_hierseq_table how can I use grouping like below:
    Country
    Customer No. Customer Name
    Customer No. Part Id                 Part Quantity          Rate
    Hierachy can be done using Bind (on KUNNR), but how to group them using one more level by Country?
    Thanks in advance.

  • Object Model - cl_salv_hierseq_table Check box in the parent entry

    Hi,
    I am doing a report with cl_salv_hierseq_table (Object Model) , in that i  need to put a check box in the t_table_level1 level. I know that SALV is not have an option to edit.
    My requirement is from the list user select multiple parent entries (ie t_table_level1 ) and selected entries must be converted to web template and send to HTML repository.
    Currently i am struck up with creating a check box in HIERSEQ list
    Any Info?

    Hi aRs.  You need to use the class CL_SALV_SELECTIONS for this.  See here,  
    DATA: gt_parent TYPE TABLE OF scarr.
    DATA: gt_child TYPE TABLE OF sflight.
    DATA: gr_table  TYPE REF TO cl_salv_hierseq_table.
    DATA: gr_selections TYPE REF TO cl_salv_selections.
    DATA: lt_binding TYPE salv_t_hierseq_binding.
    DATA: ls_binding TYPE salv_s_hierseq_binding.
    SELECT * FROM scarr INTO CORRESPONDING FIELDS OF TABLE gt_parent.
    SELECT * FROM sflight INTO CORRESPONDING FIELDS OF TABLE gt_child.
    ls_binding-master = 'CARRID'.
    ls_binding-slave  = 'CARRID'.
    APPEND ls_binding TO lt_binding.
    CALL METHOD cl_salv_hierseq_table=>factory
      EXPORTING
        t_binding_level1_level2 = lt_binding
      IMPORTING
        r_hierseq               = gr_table
      CHANGING
        t_table_level1          = gt_parent
        t_table_level2          = gt_child.
    gr_selections = gr_table->get_selections( level = 1 ).
    gr_selections->set_selection_mode( cl_salv_selections=>if_salv_c_selection_mode~multiple ).
    gr_table->display( ).
    This will give you the checkboxes in the parent level, you still need to write the code to get the selected rows.
    Regards.
    Rich Heilman

  • Top of List event when using class cl_salv_hierseq_table

    Hi all,
      I am using above class to display Top of List .
    I am to able to display one line at top using following :
    gr_hierseq->set_top_of_list( lr_content ).
    But i have to display 5 lines in top of list.
    Please let me know how can this be achieved.
    Thanks and Regards,
    Taranam

    Wow, that example did suck.  Sorry for that.  I have spent a little time revising the example program into such a form that you can easily see what you need to do.  SO here it is, hope it helps.   Pay close attention to the implementation of the on_top_of_page event handler method.
    REPORT zsalv_demo_hierseq_form_events NO STANDARD PAGE HEADING.
    TYPES: BEGIN OF g_type_s_master.
    INCLUDE TYPE alv_chck.
    TYPES:   expand   TYPE char01,
           END OF g_type_s_master,
           BEGIN OF g_type_s_slave.
    INCLUDE TYPE alv_t_t2.
    TYPES: END   OF g_type_s_slave.
    TYPES: BEGIN OF g_type_s_test,
             amount      TYPE i,
             repid       TYPE syrepid,
             top_of_list TYPE i,
             end_of_list TYPE i,
           END OF g_type_s_test.
    CONSTANTS: con_master TYPE lvc_fname VALUE 'ALV_CHCK',
               con_slave  TYPE lvc_fname VALUE 'ALV_T_T2'.
    *... §5 Definition is later
    CLASS lcl_handle_events_hierseq DEFINITION DEFERRED.
    DATA: gs_test TYPE g_type_s_test.
    DATA: gt_master TYPE STANDARD TABLE OF g_type_s_master,
          gt_slave  TYPE STANDARD TABLE OF alv_t_t2.
    DATA: gr_hierseq TYPE REF TO cl_salv_hierseq_table.
    *... §5 object for handling the events of cl_salv_table
    DATA: gr_events_hierseq TYPE REF TO lcl_handle_events_hierseq.
    *       CLASS lcl_handle_events DEFINITION
    CLASS lcl_handle_events_hierseq DEFINITION.
      PUBLIC SECTION.
        METHODS:
          on_top_of_page FOR EVENT top_of_page OF cl_salv_events_hierseq
            IMPORTING r_top_of_page page table_index.
    ENDCLASS.                    "lcl_handle_events DEFINITION
    *       CLASS lcl_handle_events IMPLEMENTATION
    CLASS lcl_handle_events_hierseq IMPLEMENTATION.
      METHOD on_top_of_page.
        DATA: lr_content TYPE REF TO cl_salv_form_element.
        DATA: lr_grid   TYPE REF TO cl_salv_form_layout_grid,
               lr_grid_1 TYPE REF TO cl_salv_form_layout_grid,
               lr_grid_2 TYPE REF TO cl_salv_form_layout_grid,
               lr_label  TYPE REF TO cl_salv_form_label,
               lr_text   TYPE REF TO cl_salv_form_text,
               l_text    TYPE string.
    *... create a grid
        CREATE OBJECT lr_grid.
    *... in the cell [1,1] create header information
        CONCATENATE 'TOP_OF_PAGE' text-h01 INTO l_text SEPARATED BY space.
        lr_grid->create_header_information(
          row    = 1
          column = 1
          text    = l_text
          tooltip = l_text ).
    *... add a row to the grid -> row 2
        lr_grid->add_row( ).
    *... in the cell [3,1] create a grid
        lr_grid_1 = lr_grid->create_grid(
                      row    = 3
                      column = 1 ).
    *... in the cell [1,1] of the second grid create a label
        lr_label = lr_grid_1->create_label(
          row     = 1
          column  = 1
          text    = 'Number of Records'
          tooltip = 'Number of Records' ).
    *... in the cell [1,2] of the second grid create a text
        lr_text = lr_grid_1->create_text(
          row     = 1
          column  = 2
          text    = gs_test-amount
          tooltip = gs_test-amount ).
        lr_label->set_label_for( lr_text ).
    *... in the cell [2,1] of the second grid create a label
        lr_label = lr_grid_1->create_label(
          row    = 2
          column = 1
          text    = 'Output Tool'
          tooltip = 'Output Tool' ).
    *... in the cell [2,2] of the second grid create a text
        lr_text = lr_grid_1->create_text(
          row    = 2
          column = 2
          text    = 'Seq List'
          tooltip = 'Seq List').
        lr_label->set_label_for( lr_text ).
    *... in the cell [2,1] of the second grid create a label
        lr_label = lr_grid_1->create_label(
          row    = 3
          column = 1
          text    = 'Another Label'
          tooltip = 'Another Label' ).
    *... in the cell [2,2] of the second grid create a text
        l_text = text-t15.
        lr_text = lr_grid_1->create_text(
          row    = 3
          column = 2
          text    = 'Another Text'
          tooltip = 'Another Text').
        lr_label->set_label_for( lr_text ).
    *... content is the top grid
        lr_content = lr_grid.
    *... set the content
        r_top_of_page->set_content( lr_content ).
      ENDMETHOD.                    "on_top_of_page
    ENDCLASS.                    "lcl_handle_events IMPLEMENTATION
    * SELECTION-SCREEN                                                     *
    SELECTION-SCREEN BEGIN OF BLOCK gen WITH FRAME.
    PARAMETERS:
    p_amount TYPE i DEFAULT 30.
    SELECTION-SCREEN END OF BLOCK gen.
    * START-OF-SELECTION                                                   *
    START-OF-SELECTION.
      gs_test-amount = p_amount.
      gs_test-repid = sy-repid.
    *... §1 select data into global output table
      PERFORM select_data.
    * END-OF-SELECTION                                                     *
    END-OF-SELECTION.
      PERFORM display_hierseq.
    *&      Form  select_data
    * §1 select data into your global output table
    FORM select_data.
      FIELD-SYMBOLS: <ls_master> TYPE g_type_s_master.
      DATA: lt_slave TYPE STANDARD TABLE OF g_type_s_slave.
      SELECT * FROM (con_master)
        INTO CORRESPONDING FIELDS OF TABLE gt_master
        UP TO gs_test-amount ROWS.                              "#EC *
      LOOP AT gt_master ASSIGNING <ls_master>.
        SELECT * FROM (con_slave) INTO CORRESPONDING FIELDS
                   OF TABLE lt_slave
                   UP TO gs_test-amount ROWS
                   WHERE carrid EQ <ls_master>-carrid
                     AND connid EQ <ls_master>-connid.          "#EC *
        APPEND LINES OF lt_slave TO gt_slave.
      ENDLOOP.
    ENDFORM.                    " select_data
    *&      Form  display_hierseq
    *       text
    FORM display_hierseq.
      DATA:lt_binding TYPE salv_t_hierseq_binding,
           ls_binding TYPE salv_s_hierseq_binding.
      DATA:lr_functions TYPE REF TO cl_salv_functions_list.
      DATA:lr_columns TYPE REF TO cl_salv_columns_hierseq,
           lr_column  TYPE REF TO cl_salv_column_hierseq.
      DATA:lr_level TYPE REF TO cl_salv_hierseq_level.
    *... create the binding information between master and slave
      ls_binding-master = 'MANDT'.
      ls_binding-slave  = 'MANDT'.
      APPEND ls_binding TO lt_binding.
      ls_binding-master = 'CARRID'.
      ls_binding-slave  = 'CARRID'.
      APPEND ls_binding TO lt_binding.
      ls_binding-master = 'CONNID'.
      ls_binding-slave  = 'CONNID'.
      APPEND ls_binding TO lt_binding.
    *... §2 create an ALV hierseq table
      TRY.
          cl_salv_hierseq_table=>factory(
            EXPORTING
              t_binding_level1_level2 = lt_binding
            IMPORTING
              r_hierseq               = gr_hierseq
            CHANGING
              t_table_level1           = gt_master
              t_table_level2           = gt_slave ).
        CATCH cx_salv_data_error cx_salv_not_found.
      ENDTRY.
    *... Functions
    *... activate ALV generic Functions
      lr_functions = gr_hierseq->get_functions( ).
      lr_functions->set_all( abap_true ).
    *... *** MASTER Settings ***
      TRY.
          lr_columns = gr_hierseq->get_columns( 1 ).
        CATCH cx_salv_not_found.
      ENDTRY.
    *... set the columns technical
      TRY.
          lr_column ?= lr_columns->get_column( 'MANDT' ).
          lr_column->set_technical( if_salv_c_bool_sap=>true ).
        CATCH cx_salv_not_found.                            "#EC NO_HANDLER
      ENDTRY.
    *... set expand column
      TRY.
          lr_columns->set_expand_column( 'EXPAND' ).
        CATCH cx_salv_data_error.                           "#EC NO_HANDLER
      ENDTRY.
    *... set items expanded
      TRY.
          lr_level = gr_hierseq->get_level( 1 ).
        CATCH cx_salv_not_found.
      ENDTRY.
      lr_level->set_items_expanded( ).
    *... *** GENERAL Settings ***
    *... register to the events for top-of-page and end-of-page
      DATA: lr_events TYPE REF TO cl_salv_events_hierseq.
      lr_events = gr_hierseq->get_event( ).
      CREATE OBJECT gr_events_hierseq.
      SET HANDLER gr_events_hierseq->on_top_of_page FOR lr_events.
    *... display the table
      gr_hierseq->display( ).
    ENDFORM.                    "display_hierseq
    REgards,
    RIch Heilman

  • Displaying cl_salv_hierseq_table in grid layout.

    Hello,
    I have currently written an ABAP report where I am using the SALV classes. I am using the Hierarchical Sequential table.
    When I display the report it displays it in the older ABAP format. I wanted the display to be the newer grid format.
    Here is the code:
    DATA: gr_table TYPE REF TO cl_salv_hierseq_table.
    cl_salv_hierseq_table=>factory(
        EXPORTING t_binding_level1_level2 = ibinding
          IMPORTING r_hierseq = gr_table
            CHANGING t_table_level1 = ltbl_zaging_rep_str
                      t_table_level2 = ltbl_zaging_rep_pmnt_str ).
    gr_table->display( ).
    Is there anything I can do to my code to make it appear in the Grid Layout.
    Thank you for all your help in advance.
    Sumit.

    No, there is nothing that you can do.  The hierarchial list is presented in that view only. 
    Regards,
    Rich Heilman

Maybe you are looking for

  • How can I get data back that is in the trash?

    I don't seem to be able to retreive clips or other data that end up in the trash. When I click on the trash icon contained in the app I am only given the option of Cancel or Empty. Is that it? Once the data is in there it's gone? Thanks.

  • Multiple a/c assgt SRM PO - Error in process

    Hi all, SRM 5.0 SP 12 ecs When I create a purchase order with mutliple a/cassignment in SRM and order it,it gets replicated to ECC with the indicators "Confirmation-Related Invoice Verification" and "Confirm Performance of Service/Goods Receipt " che

  • How can I delete uploaded digital videos from iCloud?

    I have uploaded many digital videos that I have purchased and they have taken up almost all of my icloud space.  How can I delete them to free up space in icloud?  There's no more room to back up my devices.

  • Ship-To not assigned to Sold-To, even though able to create an order

    Hi, We have a peculiar scenario. We have a Sold-To Ex: 1100, ship to 1200 and 1300 for a sales area, ex 1000-10-10. Here only 1200 Ship-to is assigned to Sold to 1100. ( SH 1300 is not assigned to SP 1100). I am able to create an order for 1100 and 1

  • Bridge CS5 "Floating point support not loaded" Error R6002

    Hi, I have been getting this error ever since I got a virus and cleaned it off my computer. Obviously the virus attached itself to the bridge executable file and when it was "fixed" by the antivirus it has corrupted the bridge file. I have searched a