cancel
Showing results for 
Search instead for 
Did you mean: 

Total Rows with VC?

Former Member
0 Kudos

Is there a way to provide a total row in a table in VC? I'm retrieving a set of financial data via a remote-enabled function module, and I'd like to total it up at the bottom of the table. How do I accomplish this? Is it possible to do in VC without having to edit the function module?

Thanks,

Dan

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Daniel,

create an own ABAP RFC function module and call the other FM, then you can loop over the table and add the total row.

Best Regards,

Marcel

Former Member
0 Kudos

OK...We've decided to add a "TOTAL" row to the function module, and it works. Now, another problem....When the user sorts the fields by clicking on the column headers, the total row now doesn't stay at the bottom as we want it to.

Can you disable sorting on a table? I can't find it anywhere in VC.

Dan

Former Member
0 Kudos

Totals row

https://wiki.sdn.sap.com/wiki/display/VC/AddTotalsrow

Sorting table: turning it off

https://wiki.sdn.sap.com/wiki/display/VC/LockTableColumn+Header

Answers (1)

Answers (1)

Former Member
0 Kudos
Former Member
0 Kudos

Navneet,

Thanks for the information. Unfortunately, it's not what I was looking for. I was wanting to add a total row to the <b>same</b> table as the data, at the bottom.

Example Table:

Dept. #1 50.00$

Dept. #2 125.75$

Dept. #3 82.50$

<b>Total 258.25$</b>

The three detail rows would be returned from the function module. The total row is what I'm wanting VC to generate.

I really have no problem with getting the function module changed...I was just curious if the VC tool would allow what I'm wanting to do.

Dan