Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

how to show more than 90+ upto 300 fields in OOPS ALV grid

Former Member
0 Kudos

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

6 REPLIES 6

former_member188685
Active Contributor
0 Kudos

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

0 Kudos

Wow. What kind of business requirement is that?

0 Kudos

>

> 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

0 Kudos

>

> Wow. What kind of business requirement is that?

imagine tthe end user 😛

former_member598013
Active Contributor
0 Kudos

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.

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/cda3992d-0e01-0010-90b2-c4e1f899...

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/eac1fa0b-0e01-0010-0990-8530de49...

Thanks,

Chidanand

0 Kudos

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