on 05-20-2005 6:06 AM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.