Added sentence with more than 255 char in header ALV report
I have one report in which i need to show all profit center entered in selection option in header of ALV grid .
earlier report was using 'REUSE_ALV_COMMENTARY_WRITE' with 'TOP_OF_PAGE' event which allows only 60 character.
so i used "HTML_TOP_OF_PAGE" of ALV with "cl_dd_document".
but it allows only 255 character and when user enters long range in selection option then my string in header is cut from 255th character.
so is there any way to solve this problem as i need to display all valid profit center from input and in some case string containing valid profit center can be longer than 255 character.
Try creating your ALV using Split container.
Split the container horizontally into 2. Use the top container as header.
Now you can fill as many data into header using a class method.