06-15-2008 5:27 AM
Hi All,
I got a requirement that i need to display all 40 fields using ALV grid but i am unable to display all the fileds in output.
could any one suggested how to handle this.
thanks & regards
NSK
06-15-2008 12:25 PM
Hi Shashikanth,
This must be problem with REPORT statement.
Increase the LINE-SIZE to accomodate max. width of ur grid display.
eg: If ur output width is 350 characters then give below statement.
REPORT zxxx(Ur report name) LINE-SIZE 350 MESSAGE ID zxx.
It will definitely works.
For better readability set the attribute col_width_optimize = 'X'/
Thanks,
Vinod.
06-15-2008 8:26 AM
Hi;
In GRID display there should be no problem in displaying the fields.
1. check the program (report attribute "LINE-SIZE").
2. check fidlcat for "NO_OUT" = X is set for the fields
Still not able to fix then take the help from SE11....
Regadrs,
Prabhu Rajesh
06-15-2008 8:30 AM
Hi,
Once you get the output, there is an option "change layout" in the application tool bar. Click on that you can select the fields to be displayed on output.
Thanks
Vikranth
06-15-2008 12:03 PM
06-15-2008 12:25 PM
Hi Shashikanth,
This must be problem with REPORT statement.
Increase the LINE-SIZE to accomodate max. width of ur grid display.
eg: If ur output width is 350 characters then give below statement.
REPORT zxxx(Ur report name) LINE-SIZE 350 MESSAGE ID zxx.
It will definitely works.
For better readability set the attribute col_width_optimize = 'X'/
Thanks,
Vinod.
06-15-2008 4:37 PM
Hi..
You really need not complicate with all this ...
How will you handle if tomorrow your requirement changes to display 80 fields ?? With the above approach you will have to change the report code again !!
The solution is with OO ABAP ALV. Write the ALV report with ABAP Objects.
In this case if there are many fields that do not fit into screen, the system will automatically add a scroll bar. So problem solved. You don't have to worry if in future you want to display 80 fields in the same ALV.
In case you want to know how to create a ALV report with ABAP Objects check out the tutorial / example code on:
http://www.abaplearning.com/index.php?option=com_content&view=section&id=2&Itemid=14
(Probably you need to log in - as the section is for members only)
Cheers.