cancel
Showing results for 
Search instead for 
Did you mean: 

Making cuts every 2 rows in a table

Former Member
0 Kudos

Hi again forum

I have this requirement:

1) In one table, for example:


                     |       h1      |        h2       |      h3    |

                     |       rA1    |        rA2      |      rA3   |
                     |       rB1    |        rB2      |      rB3   |
                     |       rC1    |        rC2      |      rC3   |
                     |       rD1    |        rD2      |      rD3   |

2) I want to make cuts every 2 rows to summarize this colummns in a new row. Example:

    
                    |         h1     |        h2       |       h3    |

                    |         rA1    |        rA2     |       rA3   |
                    |         rB1    |        rB2     |       rB3   |
 New Row            |   rA1+rB1      |    rA2+rB2     |   rA3+rB3   |
                    |         rC1    |        rC2     |       rC3   |
                    |         rD1    |         rD2    |         rD3 |         
 New Row            |    rC1+rD1     |     rC2+rD2    |   rC3+rD3   |            
                             .                 .               .
                             .                 .               .
                             .                 .               .

Any idea, for insert the new row every n rows ?

Thnks

Josué Cruz

Edited by: Josue Cruz on Aug 26, 2008 5:23 PM

Accepted Solutions (0)

Answers (2)

Answers (2)

OttoGold
Active Contributor
0 Kudos

I don´t know how you have resolved this, but SAP recommends (and I recommen) to do this in backend/ ABAP (or Java) and display the result table with no scripting changes in the form.

It spares time, effort and performance of the app.

Otto

Former Member
0 Kudos

Answered by my self.