2015 Dec 07 12:39 PM
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
2015 Dec 07 1:54 PM
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
2015 Dec 07 2:18 PM
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
2015 Dec 07 2:21 PM
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.
2015 Dec 07 3:14 PM
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
2015 Dec 07 3:25 PM
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