10-24-2007 1:39 PM
which r the classes we can use to display alv
also im using the class CL_SALV_TABLE and im using factory method in that class,it is givin me output in grid display.
can we change it in alv list display?
10-24-2007 1:44 PM
The class used to display and create an ALV list is
CL_GUI_ALV_GRID
The most important method might be SET_TABLE_FOR_FIRST_DISPLAY
What you need is a dynpro with a custom container, create an object for the container (type ref to CL_GUI_CUSTOM_CONTAINER) create a class for the ALV and create a field catalogue.
This is a wonderful PDF explaining ALV basics:
10-24-2007 2:22 PM
Hi Amit,
Yes it is possible to display same in list format.set parameter list_display in factory method.
try.
cl_salv_table=>factory(
exporting
<b>list_display = abap_true</b>
importing
r_salv_table = gr_table
changing
t_table = gt_outtab ).
catch cx_salv_msg.
endtry.
you will find losts of exmples in package SALV_OBJECTS_INT.also you can refer the report SALV_DEMO_TABLE_SIMPLE.
Now this all we are discussing is ALV Object Model.you can also use the class CL_GUI_ALV_GRID or FM REUSE_ALV_GRID_DISPLAY.you will find lots of example in package SLIS.
Hope it will help you.
regards,
ABHIJIT ZOPE
10-24-2007 2:37 PM
Here is an overview of the classes which may be used with the CL_SALV_TABLE(and other main classes).
http://help.sap.com/saphelp_nw2004s/helpdata/en/02/dcf6408fb18031e10000000a1550b0/frameset.htm
Regards,
RIch Heilman
10-24-2007 2:42 PM
Hi Amit,
check in SE24
search for CLALV in SE24
you can get all class names which display ALV
in that search for list