cancel
Showing results for 
Search instead for 
Did you mean: 

Two loops in a table in main window

Former Member
0 Kudos

Hi all,

I have a main window and under it I have created a table with header main window and footer for 6 fields with 6 cells and 6 texts, each text under each cell.

I want to run a loop for first 3 fields and another loop for the other fields.

I mean the table should be partitioned as 3 and 3 fields.

The first 3 fields say Item, description and Debit in one part and the other part date, credit and particulars

.

I want to run two loops to run calculate the debits and credits?

Now my point is how to partition the table into two?

Do I have to create two tables and take 3 in one and the other 3 in the second table?

If I create 2tables then how to calculate the second part fields data ?

I mean how to get the data or show the data in the right side of the table?

Please answer

Thx

Accepted Solutions (0)

Answers (2)

Answers (2)

sudhir_uppalapati
Participant
0 Kudos

Do the Looping in the INITIALIAZATION and move all the data to 1 final internal table.

In the main window loop on the final Internal table & display the data.

Former Member
0 Kudos

Hi

Create two loops in the main window and in first loop display only three fields and in second loop display remaining three fields but border of the cells need to change to white color so that it will not display the black color lines in the main window.

One variable to calculate sum of first loop and display sum at the bottom the main window and another variable to calculate sum of second loop and display sum at the bottom..

Regards

Srilaxmi

Regards

Srilaxmi