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: 

diff b/w "REUSE_ALV_LIST_DISPLAY" and "REUSE_ALV_GRID_DISPLAY"

Former Member
0 Kudos

Hi,

We have two function modules in ALV for displaying the output:

1) REUSE_ALV_LIST_DISPLAY

2) REUSE_ALV_GRID_DISPLAY

can any body please explane when we have to use LIST_DISPLAY and when we have to use GRID_DISPLAY.

Thanks in advance.

ramana

10 REPLIES 10

Former Member
0 Kudos

Hi,

Its just the look and feel.

The grid has a better look. But it cannot be displayed in background mode(in spool).

Check the outputs of the sample programs:

BALVEX01(for list)

and BCALV_TEST_GRID(Grid)

Regards,

Priyanka.

0 Kudos

Hi Priyanka,

Thanks

Former Member
0 Kudos

Hi,

both REUSE_ALV_LIST_DISPLAY,REUSE_ALV_GRID_DISPLAY are same but the o/pstructure is different.

in REUSE_ALV_GRID_DISPLAY we can give the title but in list it is not possible.

in GRID editiing rows is possible whereas in list it is not possible.

<b>check this link for more help.</b>

rgds,

bharat.

0 Kudos

Hi bharat,

Thanks

0 Kudos

Hi bharat,

Thanks for your answer.

Can you please explane me how we edit row in GRID display.

Thanks in advance.

Ramana

Former Member
0 Kudos

hi Ramana,

        • ------all these functions changes onl;y in the list scrreen---------********8

1)REUSE_ALV_LIST_DISPLAY --- when we use this fun module,then it is like a static list, means, u cannot do these operations

-- hide

-- change the order of coloumns

-- total

-- grid title

2) REUSE_ALV_GRID_DISPLAY --- when we use this , it will have all the above features mentioned...

With Regards,

S.Barani

Message was edited by:

S BHARANIDARAN

0 Kudos

Hi Barani,

Thank for you answer.

I tried for the optoins which you told

-- hide

-- change the order of coloumns

-- total

-- grid title

but among the above "total" is possible in list display also. can you please check and clrify me.

thanks

ramana

0 Kudos

Hi,

Hope fine.

Can you please reply my question.

thanks,

Ramana

Former Member
0 Kudos

<b>When there are no editable fields u can simply use LIST DISPLAY else go for GRID

When you want to run in background go for LIST else GRID</b>

a) from abap coding point of view,

alv list is done with Function modules,

alv gris can also be done with FM,

but can also be done using OO concepts.

b) Alv grid (using oo concept) requires

designing the screen layout .

Hence, in one screen, we can show more

then one alv grid

(we cannot show more than

one alv list on one screen)

c) ALV grid uses ActiveX controls

present on the Presentation Server.

Hence, it consumes More Memory

on the presentation server.

d) ALV LIST is Display Only.

Whereas

ALV Grid Can Be made EDITABLE for entry purpose.

e) In alv grid, these options are possible,

but not in alv list.

without horizontal lines

without vertical lines

without cell merging during sorts

display total lines above the entries

ALV LIST Can be coded using only FMs

ALV GRID Can be coded using FMs and object oriented concepts

ALV LIST Can be displayed hieraicharlly

ALV GRID cannot be displayed hierarichally

Former Member
0 Kudos

hi,

1) REUSE_ALV_LIST_DISPLAY

to display o/p list ina normal form with no graphical represntations like adding colors, having no user defined field names for fields, confirmation messages for deleting a field..........

2) REUSE_ALV_GRID_DISPLAY

to display o/p in graphical manner with different options with the help of various FM's like

REUSE_ALV_FIELDCATALOG_MERGE [ for buliding a structure o/p ]

REUSE_ALV_EVENETS_GET [ for diff alv events]

REUSE_ALV_COMMENTARY_WRITE [ for having a logos, images ]

REUSE_ALV_VARIANTS_DEFAULT [ for variants]

....................

................

if helpful reard some points.

with regards,

suresh babu aluri.