Google Search - Blog...........

ABAP - Displaying All Rows In An ALV Using OOPS Concept.

If you are on Higher version using CL_SALV_TABLE class we can show all the fields.

in MY MARA Table 222 fields are there .

it is displaying all of them .

this code will work only if you are on higher versions

REPORT ZALV_TEST.

data:
imara type table of mara.
data: gr_table type ref to cl_salv_table.
data: gr_functions type ref to cl_salv_functions.
data: gr_display type ref to cl_salv_display_settings.
start-of-selection.
select * into table imara from mara up to 10 rows.

cl_salv_table=>factory( importing r_salv_table = gr_table changing t_table = imara ).

gr_functions = gr_table->get_functions( ).
gr_functions->set_all( abap_true ).

gr_table->display( ).


ALSO READ:

- ALV Header With Logo.

- Including Line After Subtotal In ALV Display.

- ALV Subtotals In Different Blocks.

- ALV With Page Numbers & Subtotals.

..... Back To Index On ALV List/ Grid Display.

..... Back To MAIN INDEX.


1 comment:

  1. Hi,

    I'm new programming with cl_salv_table and i have a doubt with the class. My question is how you add just a print in the report.

    Thanks,
    Elvis (elvis.hau@hyfas.pt)

    ReplyDelete