Skip to Content

Layout - ALV - User Specific

Hi,

I am trying to save the layout of an ALV / User specific,

The user specific option is grayed out

I ran a trace to check on the Authorization object to see a RC=0

Am i missing something?

Cheers | Remi

untitled.png (12.3 kB)
s-layout.png (5.0 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Jan 12 at 06:45 AM

    Hi Remi,

    Check your ALV Program and check the i_save, please see below for your reference.

     call function 'REUSE_ALV_GRID_DISPLAY'
        exporting
          i_callback_program       = sy-repid
          i_callback_top_of_page   = 'TOP_OF_PAGE'
          i_callback_pf_status_set = 'SET_PF_STATUS'
          i_callback_user_command  = 'USER_COMMAND'
          it_fieldcat              = im_fcat
          is_layout                = lt_lout
          i_default                = 'X'
    
    
          i_save                   = 'U'  " <--- U = User-Specific
                                                 A = Standard and user-specific save mode
                                                 X = Standard Save Mode
    
        tables
    
          t_outtab                 = im_data
    
        exceptions
    
          program_error            = 1
    
          others                   = 2.
    
    Add comment
    10|10000 characters needed characters exceeded

    • A little table with all values for I_SAVE and meanings:

                     Cannot be   Save & seen    Save & seen 
      I_SAVE           saved     by all users  by current user
      -------------  ----------  ------------  ---------------
      ' ' (default)       X  
      X                                X  
      U                                               X
      A                                X              X

      Note: if your ALV is built with SALV, "I_SAVE = 'A' " is to be replaced with this code:

      salv->get_layout( )->SET_SAVE_RESTRICTION( cl_salv_layout=>restrict_none ).
  • Jan 14 at 04:15 PM
    Tan Michael, Sandra Rossi - Works!
    I had set i_save to 'X', modified it to 'U'. Thanks
    Add comment
    10|10000 characters needed characters exceeded