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: 

fm REUSE_ALV_GRID_DISPLAY

Former Member
0 Kudos

I'm using this function module...

the output look like this <a href="http://img92.imageshack.us/img92/9213/pic11fc.png">[Click here]</a>

but for a reason I cannot save the customized layout. The Save option is disabled! <a href="http://img92.imageshack.us/img92/500/pic21dk.png">[ click here]</a>

anyone has the same problem?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi

You have to set the parameter I_SAVE of fm REUSE_ALV_GRID_DISPLAY, from help:

'' = Display variants cannot be saved

Defined display variants (such as delivered display variants) can be selected for presentation regardless of this indicator. However, changes cannot be saved.

'X' = Standard save mode

Display variants can be saved as standard display variants.

Saving display variants as user-specific is not possible.

'U' = User-specific save mode

Display variants can only be saved as user-specific.

'A' = Standard and user-specific save mode

Display variants can be saved both as user-specific and as standard

variants. Users make their choice on the dialog box for saving the

display variant.

Max

6 REPLIES 6

Former Member
0 Kudos

Hi

You have to set the parameter I_SAVE of fm REUSE_ALV_GRID_DISPLAY, from help:

'' = Display variants cannot be saved

Defined display variants (such as delivered display variants) can be selected for presentation regardless of this indicator. However, changes cannot be saved.

'X' = Standard save mode

Display variants can be saved as standard display variants.

Saving display variants as user-specific is not possible.

'U' = User-specific save mode

Display variants can only be saved as user-specific.

'A' = Standard and user-specific save mode

Display variants can be saved both as user-specific and as standard

variants. Users make their choice on the dialog box for saving the

display variant.

Max

Former Member
0 Kudos

there is a parameter called i_Save in the reuse function module pass constant 'A' to it

it will give u a save option

Harish

Former Member
0 Kudos

hi,

check these threads...

0 Kudos

Don't miss I_CALLBACK_PROGRAM parameter, however.

Use the way below:

Data:
     l_callback_program like sy-repid.

move sy-repid to l_callback_program.

....

Transfer variable l_callback_program to REUSE_ALV_GRID_DISPLAY.

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Hi, you need to set the I_SAVE parameter during the function call. This will enable it. You also must pass the variant parameters as well.




data: variant type disvariant.

variant-report = sy-repid.
variant-username  = sy-uname.

call function 'REUSE_ALV_GRID_DISPLAY'
 EXPORTING
    I_SAVE                            = 'U' " or 'X'.
    IS_VARIANT                        = variant
    
    ....

Regards,

Rich Heilman

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Duplicate.

Message was edited by: Rich Heilman