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

Difference between the 2 FM's

Former Member
0 Likes
1,967

Hi experts can anyone please tell me the difference between the 2 function modules:

REUSE_ALV_GRID_DISPLAY and REUSE_ALV_GRID_DISPLAY_LVC . I have seen in the coding for editable ALV that they have made use of the former FM rather than the regular REUSE_ALV_GRID_DISPLAY.

( Source: <a href="http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_editable.htm">Editable ALV from sapdevelopment.co.uk</a> ) So can anyone explain as to whether its actually possible to code the editable ALV using the REUSE_ALV_GRID_DISPLAY FM or not. Thanks

4 REPLIES 4
Read only

Former Member
0 Likes
836

hi

'REUSE_ALV_GRID_DISPLAY' is for the SLIS type pool.

'REUSE_ALV_GRID_DISPLAY_LVC' is for the LVC type pool which of course has a better functionality.

1) Common in display result

REUSE_ALV_GRID_DISPLAY_LVC and REUSE_ALV_GRID_DISPLAY have similar display view

2) Common in usage

REUSE_ALV_LIST_DISPLAY and REUSE_ALV_GRID_DISPLAY have very similar parameters for

function call (types from slis)

one rarely use fm REUSE_ALV_GRID_DISPLAY_LVC as class cl_gui_alv_grid provides more

power and functionality.

regards

Navjot

reward if helpfulll

Message was edited by:

navjot sharma

Read only

Former Member
0 Likes
836

REUSE_ALV_GRID_DISPLAY uses SLIS Type group

and

REUSE_ALV_GRID_DISPLAY_LVC uses LVC_.. Structures

And coming to your second question, You can edit the fields using REUSE_ALV_GRID_DISPLAY but you cannot disable the editable fields

So you cannot write the same code using REUSE_ALV_GRID_DISPLAY

better to use REUSE_ALV_GRID_DISPLAY_LVC or OOPS ALV

Read only

Former Member
0 Likes
836

Hi Navjot & chandrasekhar,

Thanks for your replies. I do still have 1 small doubt. In the example at :

http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_editable.htm

he had declared the SLIS type-pool eventhough he was making use of the REUSE_ALV_GRID_DISPLAY_LVC FM. Could you please say as to why he had to declare the SLIS type pool even for this FM. Sorry am new to ALV's

Read only

0 Likes
836

hi ,

though he declare SLIS he did not use that anywhere in the program , you can remove and checkout