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

ALV Layout saving option

In my alv report , I am not able to enable the layout save toolbar .. The toolbar is not visible . Also, I want to know how we can put horizontal and vertical line in alv and also How to display Documentation help in ALV . Can anybody pls answer to my questions .. I am not a beginner in ALV. But not an expert too .. Pls help me ..

Thanking u in advance ..

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 16, 2004 at 10:16 AM

    Hi Shankara,

    In the REUSE_ALV_LIST_DISPLAY or any other such func. module pass value 'A' for the parameter I_SAVE if you want to save user specific layouts or pass 'X' if you want system specific layouts. In case of user specific only that user will be able to get the layout on F4.

    For horizontal and vertical lines, to my knowledge they will automatically appear till u set the option NO_VLINE to 'X' in the layout.

    regarding the documentation help I'm still not clear what exactly u require. If you are talking about documentation of fields when F1 key is pressed, then for that you have to set in the fieldd catalog (a) either the ROLLNAME or (b)REF_FIELDNAME & REF_TABNAME

    like T_FCAT-ROLLNAME = 'VBELN_VL'. "For Delivery No.



    Hope this answers you queries.


    Satyadev Dutta

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 16, 2004 at 10:37 AM

    Hello Shankar,

    1. Are you not able to see the ALV Toolbar itself? If yes, there's a parameter in the layout called NO_TOOLBAR. Please check that this parameter is set to space.

    2. In case you are able to see the toolbar, but are not able to see the <i>Layout Button</i>, then, as Satyadev had pointed out, the parameter i_save has to be set accordingly to one of the following.

    ' ' = Display variants cannot be saved

    'X' = Standard save mode

    'U' = User-specific save mode

    'A' = Standard and user-specific save mode

    3. Can you be a little more clear about Horizontal and Vertical Lines ? Do you mean the grid lines? In my experience, I have never had to explicitly code for the grid lines. they appear by default. Only you have to suppress them explicitly if you don't want them.

    4. Regarding Documentation, do you mean the documentation for the whole grid? or the F1 help for the cells of the grid ?


    Anand Mandalika.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hello Shankar,

      In general, you would automatically get the F1 help for the fields by default, if the field has been declared with reference to a standard field in the ABAP Dictionary.

      The ALV List is not different in this regard.

      In case you have some fields in the list which do not refer to the dictionary fields or if the data-element does not have the documentation maintained, then you would have to program the Help yourself. In this case, you will have to handle the event (of pressing the key F1) yourself. In the event handler, you can call a function module like DOCUSHOW*. However, this is a pretty rare case.


      Anand Mandalika.

      P.S. If the answers help you, please do reward the points as and when you read them.

  • author's profile photo Former Member
    Former Member
    Posted on Jan 09, 2014 at 11:38 AM


    you have to set i_save property 'A'- user can edit(allow to change)

    'X'- user cant't edit default not set (not allow to change)

    'U'- default selected (but not allow to change)



    i_callback_program = g_repid

    i_structure_name = 'ITAB1'

    is_layout = gs_layout

    it_fieldcat = gt_fieldcat[]

    it_sort = gt_sort[]

    it_events = gt_events[]

    is_print = gs_print

    i_save = 'A' / 'X'/ 'U'


    t_outtab = itab1


    program_error = 1

    OTHERS = 2.

    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.