11-09-2008 3:33 PM
Hi experts,
i am unable to show more than 90 fields in OOPS ALV grid and i need to show 250+ fields.
where is the proble residing and how can i resolve it.
please guide.
Thanks in Advance
Sandy
11-09-2008 4:00 PM
if you are trying to show more fields in the alv output you can try with class cl_salv_table
this is available only from ecc5.0 .
Edited by: Vijay Babu Dudla on Nov 9, 2008 11:05 AM
11-09-2008 4:51 PM
11-09-2008 4:57 PM
>
> Wow. What kind of business requirement is that?
Actually they are looking to merge "Inventory report" "Sales Report" "Asset Report" "Asset report wrt to Profit center" "Consolidation report" all in one Zreport
11-09-2008 5:03 PM
>
> Wow. What kind of business requirement is that?
imagine tthe end user 😛
11-09-2008 5:01 PM
Hi Sandeep,
Welcome to SDN !!!.....
Let me tell you, The requirement is very piculiar. and if you want to display 90+ fields. Thats not imposible in Normal OOALV. Instead of this you can implement your requirement by using SALV.
For more information You can check the Blog This would be helpful for you. also SALV is now become a Fututre in ABAP Reports....We dont need to create a container to display the alv.. For more information you can check out the below link.
Thanks,
Chidanand
12-22-2008 1:38 PM
Hi All,
Thanks you all for your valuable solutions.
Well, upto 90 fields SAP shows all the fields into ALV report and for the furter fields SAP by default initialize the NO_OUT field of FIELDCAT table with 'X' which means this field will not be displayed.
To solve the above problem I've just written the below mentioned code:
LOOP AT t_fieldcat INTO wa_fieldcat.
IF wa_fieldcat-no_out = 'X".
wa_fieldcat-no_out = space.
ENDIF.
Modify t_fieldcat from wa_fieldcat.
ENDLOOP.
...and then passed this fieldcat table in the below method:
CALL METHOD alv_grid->set_table_for_first_display
EXPORTING
is_variant = disvariant
i_save = 'A'
is_layout = layout
is_print = print
CHANGING
it_outtab = i_alv[]
it_fieldcatalog = t_fieldcat[]
it_sort = t_sort[]
EXCEPTIONS
invalid_parameter_combination = 1
program_error = 2
too_many_lines = 3
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
Now the ALV report is displaying as many fields as I want i.e. in my case 300 columns.
Sandy