cancel
Showing results for 
Search instead for 
Did you mean: 

question about ALV OO

Former Member
0 Kudos

Hi, everyone

I have a question about ALV .

There is two ALV display function, 'REUSE_ALV_LIST_DISPLAY' and 'REUSE_ALV_GIRD_DISPLAY'.

Using these two funcion, we can display the ALV in two style, list and grid.

My question is how I can show the List style in the OO program module.

I use CL_GUI_ALV_GRID, and by which way, I can show a ALV as the effect 'REUSE_ALV_LIST_DISPLAY' do.

Do something setting in the IS_LAYOUT when call SET_TABLE_FOR_FIRST_DISPLAY?

Any suggestion is welcome, thanks a lot

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

In ALV GRID display u will call method as

w_layout TYPE lvc_s_layo ,

CALL METHOD o_alvgrid->set_table_for_first_display

EXPORTING

is_variant = w_variant

i_save = c_a

is_layout = w_layout

CHANGING

it_outtab = p_output[]

it_fieldcatalog = p_fieldcat[]

EXCEPTIONS

invalid_parameter_combination = 1

program_error = 2

too_many_lines = 3

OTHERS = 4.

IF sy-subrc <> 0.

MESSAGE i001 WITH text-e06."Error in ALV report display

LEAVE LIST-PROCESSING.

ENDIF.

But u wont be using this in list.

Cal also refer this link to get more idea with sample programs,

http://www.sapdevelopment.co.uk/reporting/alvhome.htm

Thanks & Regards,

Judith.

Answers (0)