cancel
Showing results for 
Search instead for 
Did you mean: 

Group data in Tableview with Iterator

Former Member
0 Kudos

Hello,

does anybody know if i can group data in a tableview like in a "normal" ALV?

As example:

I have a table with 3 columns:

matnr werks text1

1234 0100 refrigerator kitchen

1234 0100 refrigerator house 2

0987 0200 seat meeting room

I want the data displayed like this:

1234 0100 refrigerator kitchen

refrigerator house 2

0987 0200 seat meeting room

ist it possible?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

U can display it very basic and for this purpose only TableViews made for.

also go through std. BSP application : SBSPEXT_HTMLB

page : Table View


// code like this 
<htmlb:tableView       id              = "I_FINAL"
                       onRowSelection  = "MyEventRowSelection"
                       selectionMode   = "lineEdit"
*// Mention ur internal table name* 
                       table           = "//migoclobj/i_final" 
                       iterator        = "<%=tv_iterator%>"
                       visibleRowCount = "10"
                       width           = "10" >
        <htmlb:tableViewColumns>
*// put field name as per in ur internal tables*
          <htmlb:tableViewColumn columnName="MATNR"/>
          <htmlb:tableViewColumn columnName="TXZ01"/>
          <htmlb:tableViewColumn columnName="MENGE"/>
          <htmlb:tableViewColumn columnName="MEINS" />
          <htmlb:tableViewColumn columnName="LGORT"/>
          <htmlb:tableViewColumn columnName="ENTRY_QNT"
                                  edit     = "TRUE" />
          <htmlb:tableViewColumn columnName="ENTRY_UOM"
                                  edit     = "TRUE" />

        </htmlb:tableViewColumns>
      </htmlb:tableView>

this may help u.

Regards

Sachin

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello Benjamin,

This task can be easily achieved by grouping the values using AT NEW option before appending it to the specified table (ie) the grouping task should be done in the internal table itself and once it gert completed it can be easily appended to the specified table through which the needed output can be obtained.

With Regards,

SHARMILA BRINDHA.M

former_member416498
Active Participant
0 Kudos

Hi Benjamin

Please see this standard application sbspext_table. Page name: TableViewFixedColumns.bsp

This will surely help you.

Thanks

Vijay.M