Skip to Content
author's profile photo Former Member
Former Member

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

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 😊

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Nov 09, 2008 at 04: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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 09, 2008 at 05: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.

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

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

    Thanks,

    Chidanand

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.