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

ALV GRID

Former Member
0 Likes
843

Hi All ,

Am using two function modules for Alv i.e FM : 'REUSE_ALV_FIELDCATALOG_MERGE'

FM : 'REUSE_ALV_GRID_DISPLAY'

The program runs fine but with a problem , i could not display the 'SAVE VARIENT ICON' after the user selects fields for a change lay out icon.Could any one suggest wht might be the problem ??

Thanks In Advance ,

Vin.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
797

Hi,

Use the I_SAVE parameter to the function module REUSE_ALV_GRID_DISPLAY with the value 'A'.

This will allow to save the variant..

Thanks,

Naren

Hi,

Use the I_SAVE parameter to the function module REUSE_ALV_GRID_DISPLAY with the value 'A'.

This will allow to save the variant..

Thanks,

Naren

6 REPLIES 6
Read only

Former Member
0 Likes
798

Hi,

Use the I_SAVE parameter to the function module REUSE_ALV_GRID_DISPLAY with the value 'A'.

This will allow to save the variant..

Thanks,

Naren

Read only

Former Member
0 Likes
797

Refer the program: BCALV_GRID_11

Regards,

Ravi

Read only

venkata_ramisetti
Active Contributor
0 Likes
797

Hi,

Please check the demo program BALVST03_GRID. It contains ssame feature.

You have to pass X to the import parameter I_SAVE in the function module REUSE_ALV_GRID_DISPLAY.

Thanks,

Ramakrishna

Read only

Former Member
0 Likes
797

hi

Use the import paramter I_SAVE(Variants can be saved) which by default is SPACE. pass 'X' into this, which will display the icon and Variants can be saved.

Hope this helps.

Regards,

Richa

Read only

0 Likes
797

Hi,

Its seems to be working for a single use of

FM : REUSE_ALV_GRID_DISPLAY.

But in my case am using like this

IF d_sales = 'X'.

call function 'REUSE_ALV_GRID_DISPLAY'

else.

call function 'REUSE_ALV_GRID_DISPLAY'.

in this case the i_save = 'X' doesnot seem to be working ..any idea ??

Thxs,

vin

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
797

Please make sure that you are also passing the variant structure with the sy-repid and sy-uname in it .




<b>  DATA: VARIANT TYPE  DISVARIANT.

  VARIANT-REPORT = SY-REPID.
  VARIANT-USERNAME = SY-UNAME.</b>

* Call ABAP List Viewer (ALV)
  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
            IT_FIELDCAT = FIELDCAT
<b>            IS_VARIANT  = VARIANT
            I_SAVE      = 'X'</b>
       TABLES
            T_OUTTAB    = I_ALV.

Regards,

Rich Heilman