Application Development 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: 

ALV-Grid (via FM) - subtotals not expanded?!

Former Member
0 Kudos

Hi there.

I use an standard ALV-Grid with the normal function modules. In the ALV I created some ALV-variants for displaying the data including an special order and subtotals. Now my problem is that SAP shows in standard all detail-lines of an subtotal-line, but I want that the user can see only the subtotal lines and if he is interessted in more details he could expand the detail-lines...

is this possible and if yes: how?

Thanks!

Regards

JetGum

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi,

set this property to X

it_sortinfo-fieldname = 'ERNAM'.

it_sortinfo-tabname = 'IT_VBAK'.

it_sortinfo-subtot = 'X'.

it_sortinfo-obligatory = 'X'.

it_sortinfo-up = 'X'.

it_sortinfo-spos = '1'.

it_sortinfo-expa = 'X'.

APPEND it_sortinfo.

reward if usefull

2 REPLIES 2

Former Member
0 Kudos

hi,

set this property to X

it_sortinfo-fieldname = 'ERNAM'.

it_sortinfo-tabname = 'IT_VBAK'.

it_sortinfo-subtot = 'X'.

it_sortinfo-obligatory = 'X'.

it_sortinfo-up = 'X'.

it_sortinfo-spos = '1'.

it_sortinfo-expa = 'X'.

APPEND it_sortinfo.

reward if usefull

Former Member
0 Kudos

.