Application Development and Automation 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: 
Read only

Table data display in simple basic ALV list form

Former Member
0 Likes
751

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

4 REPLIES 4
Read only

Former Member
0 Likes
615

Hi,

I guess there is nothing like that , Only grid display using classes

Read only

Former Member
0 Likes
615

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

Read only

Former Member
0 Likes
615

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

Read only

Former Member
0 Likes
615

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