07-06-2015 10:00 AM
hi Experts,
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.
07-06-2015 3:40 PM
Hi Zubin,
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.
Regards
Roopa
07-06-2015 3:40 PM
Hi Zubin,
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.
Regards
Roopa
07-06-2015 4:18 PM
Hi Zubin,
Even if you try to circumvent this particular issue, I am quite certain that there will be more challenges in the future, for eg printing becomes a problem when the list width is more than 255 characters.
My suggestion: Don't provide the user input in the ALV header.
If the report is executed online, then the user must be knowing what he had entered on the 1st screen. Is there a point in reminding him what he had entered?
If the report is run as a background job, use this option to print the selection-conditions in the spool.
Thanks,
Juwin