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: 

problem in displaying column Headings in ALV Grid Display

Former Member
0 Kudos
1,101

Hi Experts,

I have an issue in displaying ALV Report column as below using cl_salv_table=>factory methods.

Total
Hours Amount
21$28.16
24$32.15

Could you please help me out with the technical stuff that how to resolve it.

Regards,

Sam

5 REPLIES 5

former_member183045
Contributor
0 Kudos
176

As far as I know this is not possible in standard ALV lists. You can use plain old tables like described in header group in wd alv | SCN

... or with Webdynpros. a good example can be found in the SAP Demo example WDR_TEST_TABLE

or under: https://help.sap.com/saphelp_nw73/helpdata/en/45/da482e47ce4c9cb3dc173f5cfad992/content.htm

0 Kudos
176

Hi Andreas Gau,

Thanks for your response, This report is not for Webdynpro application. Could you plz suggest me if we can do this in ALV report using OOP's?

Regards,

Samba

Former Member
0 Kudos
176

Hi Sam,

1. If you are using local structure for your internal table which you are displaying, we can just change the field name of your structure to get that output.

2. In case of standard structure, get control of all columns and change the text of the columns as required. Please go through the SAP demo report 'SALV_DEMO_TABLE_COLUMNS' ( form 'display_fullscreen' ) for your reference.

Thanks,

Arun.

0 Kudos
176

Hi Arun,

Thanks for your reply. I tried have checked the report program but my requirement was not related to this report.

What exactly you mean to change the field names if it was internal declared structure ? Could you please provide a sample for quick view if you have ?

Regards,

Samba

Former Member
0 Kudos
176

This question has bee asked a number of times in the forum. I don't recall any answer that gives you the answer you want. I think the best you will be able to do is to change the column names to "Total Hours" and "Total Amount".

Rob