‎2006 Dec 07 1:29 PM
Hifriends,
I know the class CL_GUI_ALV_GRID used to display data in a grid,
but i want to display data in basic ALV list dsipaly.
Please let me know the class used for it.
Regards,Sowjanya
‎2006 Dec 07 1:32 PM
Hi,
I guess there is nothing like that , Only grid display using classes
‎2006 Dec 08 12:41 AM
You can find all kinds of examples for ALV here
http://www.geocities.com/mpioud/Abap_programs.html
http://www.sap-img.com/abap-function.htm
regards,
Ravi
Note - Please mark all the helpful answes
‎2006 Dec 08 12:50 AM
Hi,
I believe there is no class for ALV LIST..You can use FM REUSE_ALV_LIST_DISPLAY..
Check this example..
TYPE-POOLS: slis.
DATA: gt_fieldcat TYPE slis_t_fieldcat_alv.
DATA: s_fieldcatalog TYPE slis_fieldcat_alv.
DATA: BEGIN OF wa_test,
vbeln LIKE vbap-vbeln,
posnr LIKE vbap-posnr,
matnr LIKE vbap-matnr,
kwmeng LIKE vbap-kwmeng,
END OF wa_test.
DATA: v_repid TYPE syrepid.
v_repid = sy-repid.
DATA it_test LIKE STANDARD TABLE OF wa_test.
SELECT vbeln posnr matnr kwmeng UP TO 100 ROWS
INTO TABLE it_test FROM vbap.
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
i_program_name = v_repid
i_internal_tabname = 'WA_TEST'
i_inclname = v_repid
CHANGING
ct_fieldcat = gt_fieldcat.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
it_fieldcat = gt_fieldcat
TABLES
t_outtab = it_test.
Thanks,
Naren
‎2006 Dec 08 6:59 AM
Hi,
Try to find out in these programs.
ALV Demo program
BCALV_DEMO_HTML
BCALV_FULLSCREEN_DEMO ALV Demo: Fullscreen Mode
BCALV_FULLSCREEN_DEMO_CLASSIC ALV demo: Fullscreen mode
BCALV_GRID_DEMO Simple ALV Control Call Demo Program
BCALV_TREE_DEMO Demo for ALV tree control
BCALV_TREE_SIMPLE_DEMO Program BCALV_TREE_SIMPLE_DEMO
BC_ALV_DEMO_HTML_D0100 Include BC_ALV_DEMO_HTML_D0100
Rgds,
Prakashsingh