Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

classes used to display alv

Former Member
0 Kudos

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?

4 REPLIES 4

Former Member
0 Kudos

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:

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/abap/an%20easy%20r...

abhijitzope
Active Participant
0 Kudos

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

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

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

Former Member
0 Kudos

Hi Amit,

check in SE24

search for CLALV in SE24

you can get all class names which display ALV

in that search for list