Skip to Content
author's profile photo Former Member
Former Member

layouts are not saving permanently

Hi all,

In my alv report Iam saving layouts but after closing that session

and again Iam running the program it is giving message that

no layouts found.

how to save layouts permanently for a report.

any suggestion will be rewarded.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 04, 2007 at 03:10 PM

    are you using

    call FM REUSE_ALV_VARIANT_DEFAULT_GET and set the parameter I_SAVE accordingly ( U = Userspecific, X = general, A = both)

    Thanks

    Seshu

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 04, 2007 at 03:13 PM

    Hello,

    make this change.

     CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
          EXPORTING
               I_CALLBACK_PROGRAM      = l_f_program_name
                I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
                I_CALLBACK_TOP_OF_PAGE  = 'TOP_OF_PAGE'
               IS_LAYOUT               = g_r_layout
               IT_FIELDCAT             = g_t_fieldcat
                I_SAVE                  = 'X'  " Check here
               IS_PRINT                = g_r_slis_print_alv
                IS_VARIANT              = g_r_alv_variant
          TABLES
               T_OUTTAB                = g_t_output
          EXCEPTIONS
               PROGRAM_ERROR           = 1
               OTHERS                  = 2.
    
    
    

    Vasanth

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.