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

ALV (hide column)

Former Member
0 Likes
645

Hi,

Is there any method in ALV grid to hide a column with quantity and display only the subtotals along with the line items displayed.

for example.

customer

a

a(subtotal-22)

b

b

b(subtotal-26)

The quantity column is hidden.

please send your suggestions,

Rajesh.

3 REPLIES 3
Read only

Former Member
0 Likes
609

Hi ,

as per my knowledge there is no such option to hide column, So what u can do is try to make use of SORT+FIELD MERGE Fms to get only Subtotals.

check

fcat-no_out = 'X'.---> not for display

Regards

Prabhu

Read only

Former Member
0 Likes
609

I am not sure whether u can hide it or not.

But if u want to display the subtotal without displaying the quantity, u can hide that column using alv layout settings and the subtotal can be added as one record in internal table itself using sort and sum. Then you can pass that internal table to alv for displaying.

Best Regards,

Vibha Deshmukh

*Plz mark useful answers

Read only

Former Member
0 Likes
609

Hi,

i will be generating subtotals in different ways with respect to some particular columns. so it not possible to have subtotals in internal table.

The code 'fcat-no_out' doen'snt display the column and also the subtotals,

is there any other solution.

Thanks,

Rajesh.