2007 Aug 24 7:28 AM
Hi Experts,
Is it possible to display data horrizontally in an alv report. I mean to say that the field headings are at the top and the data is being shown from top to bottom, however I require the fields to be at the left hand side of the display and the data to be displayed horizontally.
2007 Aug 24 8:04 AM
Define an internal table structure with the first column CHAR(30) for the titles, then subsequent columns of appropriate type for data values. Fill the table in the way you want the data to show in the report, and then display the ALV with no headings on columns and with the first column as a "Key" so it does not scroll.
If different formats of data need to go in a single column position, define it as type CHAR of appropriate length, and WRITE the different values to it with appropriate formatting.
You lose a lot of the functionality of the ALV (Sorts, Totals, etc) but get the layout you want. Also cannot display a lot of data due to number of columns / width restrictions.
Andrew
2007 Aug 24 8:04 AM
Define an internal table structure with the first column CHAR(30) for the titles, then subsequent columns of appropriate type for data values. Fill the table in the way you want the data to show in the report, and then display the ALV with no headings on columns and with the first column as a "Key" so it does not scroll.
If different formats of data need to go in a single column position, define it as type CHAR of appropriate length, and WRITE the different values to it with appropriate formatting.
You lose a lot of the functionality of the ALV (Sorts, Totals, etc) but get the layout you want. Also cannot display a lot of data due to number of columns / width restrictions.
Andrew
2007 Aug 24 11:04 AM
Hi Andrew, thankx for useful info, however this is my first alv report. Can u provide me sample code to support ur view.
Regards,
Tushar Gupta