Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Total and subtotal description

Former Member
0 Likes
1,164

Hi,

I need help regarding to alv grid - totals and subtotals.

At this moment on bottom of alv grid i have text descriptions for total and subtotals in one row.

Text1Text2Subtotal textTotal Value (sum of subtotals)
AA1A1A1234567

*Text1 and Text2 are descriptions of categories of totals

I need to have every description in separate row like this:

Text1Text2Subtotal textTotal Value (sum of subtotals)
A
A1
A1A1234567

Thanx in advance.

Hi,

I need help regarding to alv grid - totals and subtotals.

At this moment on bottom of alv grid i have text descriptions for total and subtotals in one row.

Text1Text2Subtotal textTotal Value (sum of subtotals)
AA1A1A1234567

*Text1 and Text2 are descriptions of categories of totals

I need to have every description in separate row like this:

Text1Text2Subtotal textTotal Value (sum of subtotals)
A
A1
A1A1234567

Thanx in advance.

3 REPLIES 3
Read only

Former Member
0 Likes
1,108

This message was moderated.

Read only

Former Member
0 Likes
1,107

This message was moderated.

Read only

Former Member
0 Likes
1,107

Hello,

Only option is to create you own field  in output structure as total & subtotal..

In this case you need to do subtotal & total in your code before calling ALV.

for eg.

TYPES: BEGIN OF ty_output,

        col001(255)     TYPE c,

        col002(255)     TYPE c,

        col003(255)     TYPE c,

        col004(255)     TYPE c,

        col005(255)     TYPE c,

        col006(255)     TYPE c,

        col007(255)     TYPE c,

        subtotal(20)     TYPE c,

        total(20)          TYPE c,

        END OF ty_output.


Regards,

Sameer