'Reuse_alv_grid_display' - how to enable save layout button

Hi,
am not getting the option 'save layout' button in my ALV. I have tried the following code.
s_layout-colwidth_optimize = c_on.
s_layout-zebra = c_on.
s_variant-report = sy-repid.
s_variant-username = sy-uname.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
is_layout = s_layout
it_fieldcat = t_fieldcat
is_variant = s_variant
is_save = 'A'
TABLES
t_outtab = rt_final
EXCEPTIONS
program_error = 1
OTHERS = 2.
Please help.

Dear Arvind,
If you are using "REUSE_ALV_GRID_DISPLAY" and not passing "I_CALLBACK_PROGRAM = SY-REPID", You will not be able to save layout.
So I request all to pass following parameters to save layout.
   CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
      I_CALLBACK_PROGRAM = SY-REPID
      IS_LAYOUT                     = WA_LAYOUT
      IT_FIELDCAT                   = IT_FIELDCAT
      I_SAVE                           = 'X'
      IS_VARIANT                    = 'X'
    TABLES
      T_OUTTAB                      = IT_DATA
    EXCEPTIONS
      PROGRAM_ERROR        = 1
      OTHERS                         = 2.
  IF SY-SUBRC <> 0.
* Implement suitable error handling here
  ENDIF.
With Regards,
Tushar Trivedi.

Similar Messages

  • How to add 'Save Layout' button when use OO ALV?

    thx

    Hi,
    Try passing this parameter :
    <b>
    wa_variant-report     = sy-repid.</b>
    *-- Display Report
      CALL METHOD o_alvgrid->set_table_for_first_display
        EXPORTING
          it_toolbar_excluding    = lt_excl_func
    <b>      is_variant                   = wa_variant</b>
          i_save                        = c_a
          is_layout                    = p_layout
        CHANGING
          it_outtab                     = p_output[]
          it_fieldcatalog               = p_fieldcat[]
        EXCEPTIONS
          invalid_parameter_combination = 1
          program_error                         = 2
          too_many_lines                      = 3
          OTHERS                               = 4.
      IF sy-subrc <> 0.
        MESSAGE i050 WITH text-004.    " Error in Displaying
        LEAVE LIST-PROCESSING.
      ENDIF.

  • How to enable the SAVE LAYOUT button?

    When using CALL METHOD G_ALVGRID_HDR->SET_TABLE_FOR_FIRST_DISPLAY, how do I enable the SAVE LAYOUT push button?
    It shows the Change layout button but does not allow me to save the layout as the SAVE LAYOUT button is not available.
    I am using the following code but it does not show the SAVE LAYOUT button.
      CALL METHOD G_ALVGRID_HDR->SET_TABLE_FOR_FIRST_DISPLAY
        EXPORTING
          I_SAVE                        = L_SAVE
          IS_VARIANT                    = LS_VARIANT
          IS_LAYOUT                     = LS_LAYOUT
          IS_PRINT                      = LS_PRINT
          IT_TOOLBAR_EXCLUDING          = I_EXCLUDE
        CHANGING
          IT_SORT                       = I_SORT_HDR
          IT_OUTTAB                     = I_OUTTAB_HDR[]
          IT_FIELDCATALOG               = I_FCAT_HDR
        EXCEPTIONS
          INVALID_PARAMETER_COMBINATION = 1
          PROGRAM_ERROR                 = 2
          OTHERS                        = 3.
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                   WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    Pl advise.
    Thanks,
    Ven

    pass the variant and enable is_save = 'A'.
    in my case I had to upgrade the gui also.

  • How to enable save and archieve button in smartform output?

    How to enable save and archieve button in smartform output?

    Hi,
    While populating your output parameters, use parameter TDARMOD (Print Archieve Mode: 1,2 3).
    Hope this will hint you how to resolve the issue.
    BR,
    Vinit

  • When I navigate web with Firefox my Thinkpad trackpoint center button is not working. With other web browsers it works well. Where is the problem in firefox, how to enable TrackPoint center button?

    When I navigate web with Firefox my Thinkpad trackpoint center button is not working. With other web browsers it works well. Where is the problem in firefox, how to enable TrackPoint center button?

    I have exactly the same settings in Options (in both computers)
    for history, these 2 add-ons and all other stuff in Options. The only difference is that on 1 pc sessions can be saved and closed tabs can be reopened, on other main pc they stopped to work. + no any other add-on that does similar things works on this pc.
    It is also interesting that I can reopen closed visited sites from History Panel, but not by pressing the Button. For now I only manually bookmark links to a temporary folder.
    Recently (some 2 month ago) I pressed x and Firefox closed all tabs without saving them without displaying save & quit pop up.
    so I changed 4 settings in about.config
    browser.tabs.warn on close true
    browser.warn on quit true
    browser.warn on restart true
    browser.show.quit warning true
    but the problem with sessions appeared only 1 week ago.
    So I guess the problem is not with the History settings or other settings. Seems that something responsible for button or for storing info about tabs/sessions got corrupted. :(

  • 'Save layout' button missing in the ALV report layout screen

    Hi Friends,
         In one of our ALV report the 'save layout' button is missing in the report output screen.i have used the OO concept for creating the ALV output and not the function module.I have attached the code below used for creating the ALV grid.
    CREATE OBJECT alv_grid
          EXPORTING i_parent = g_container_2.
    CALL METHOD alv_grid->set_table_for_first_display
         exporting
                   i_structure_name = 'PA0002'
                   is_layout =
           CHANGING
                     it_outtab = gt_outtab
                     it_fieldcatalog = wa_fieldcat.
    But i'm not able to trace why the 'save layout' button is missing in the output.Can anyone of you help me in sorting out this problem.
    Thanks and Regards,
    Vadivel.

    Pass <u><i><b>A to I_SAVE</b></i></u> parameter. That will give the options to the user to save the layout outs.
    I_SAVE = SPACE
    Layouts cannot be saved.
    I_SAVE = 'U'
    Only user-defined layouts can be saved.
    I_SAVE = 'X'
    Only global layouts can be saved.
    I_SAVE = 'A'
    Both user-defined and global layouts can be saved.
    Regards,
    Ravi
    Note : Please mark all the helpful answers
    Message was edited by: Ravikumar Allampallam

  • How to enable Previous Step Button in First  Substep of FPM Road Map

    Hello All,
    I have created three MainSteps M1 M2 M3.
    In Main Step M2 having Substeps Say S1 S2 S3 S4.
    In M2 of S1 Previous Button by default it is disabled. Means user can't go back from First Substep(S1) to Main Step2 (M2).
    Please let me know how to enable  "Previous Step"  Button in First  Substep (S1) of FPM Road Map in M2.
    Thanks in Advance.
    Br
    -CW

    Hello BS,
    Thanks for your suggestions.
    Yes we can do with custom button.
    Is there anyway to enable standard  Previous Step Button in First  Substep instead of creating cutom button.
    Please guide me if any other options.
    BR
    -CW

  • How to enable the variant button in my report

    Hi experts,
    How can I enable the variant button at the top menu bar of my report?

    Hi Miv,
    In the above post of mine I didn't give info. on creating variant.
    Here is how to create a variant:
    On the Selection screen after giving INPUT. <b>Just press ctrl+S</b>.
    to create a variant.Give the variant name and save it.
    <b>
    Reward all helpful answers</b><b>
    One request, i.e., don't forget to close the thread by giving points if your problem.</b>
    Regards,
    V.raghavender.

  • Save layout Button in Object Oriented ALV

    Hi  gurus,
    I am working on Object Oriented ALV. I am facing one problem when the outpput get shown on the screen the save layout and select layout buttons are not appearing on the application toolbar of alv.
    TRY .
          cl_salv_table=>factory( IMPORTING r_salv_table = g_alv_out
                                   CHANGING t_table      = i_alv ).
        Set status GUI
          g_alv_out->set_screen_status(
              pfstatus      = 'STANDARD'
              report        = sy-repid
              set_functions = g_alv_out->C_FUNCTIONS_ALL ).
           g_columns = g_alv_out->get_columns( ).
        Set new description texts for columns
          PERFORM f_set_column_name USING:
                'LTEXT' text-001 text-001 text-001 space,
                'NAME1' text-002 text-002 text-002 space,
                'TXZ01' text-003 text-007 text-007 space,
                'KWERT' text-004 text-004 text-004 space,
                'WEMNG' text-005 text-010 text-011 space,
                'BALNC' text-012 text-013 text-014 space,
                'AFNAM' text-006 text-008 text-009 space.
          PERFORM f_set_column_name USING 'WEMNG'
                  space space space 'WAERS'.
          PERFORM f_set_column_name USING 'KWERT'
                  space space space 'WAERS'.
        Set column as hotspot
          g_column ?= g_columns->get_column( 'EBELN' ).
          g_column->set_cell_type( g_column->hotspot ).
          g_events = g_alv_out->get_event( ).
          CREATE OBJECT gr_events .
          SET HANDLER gr_events->on_double_click FOR g_events.
        Display report
          g_alv_out->display( ).
        CATCH cx_salv_msg.
      ENDTRY.
    where in the Status  STANDARD I have entered all the buttons includeing these two buttons
    Can you please Help me in solving this issue.
    thanks,
    Vinod.
    Edited by: vinod parhad on Jul 2, 2010 1:35 PM

    data: gr_layout  type ref to cl_salv_layout,
    gr_alv     type ref to cl_salv_table,
    gs_key     type salv_s_layout_key,
    * in your SALV routine.... after FACTORY call
    gs_key-report = sy-repid.
    * User can save layout.
      gr_layout  = gr_alv->get_layout( ). "layouts
      gr_layout->set_key( gs_key ).  "Pass Program Name
      gr_layout->set_save_restriction( cl_salv_layout=>restrict_none ). "User can save
    See also Rich Heilman's excellent tutorials on SALV by searching for SALV Tutorial,
    See also programs named: SALV* for demonstrations of SALV outputs and how to code.
    Edited by: BreakPoint on Jul 2, 2010 1:46 PM add references for tutorials

  • Enabling save layout function in the Tcode VA05

    Can any one tell me how to save variants and layouts in the Tcode VA05. the save icon is disabled in the report.
    In settings menu of the report VA05 choose and current options are enabled in Layout but save is not...
    Because of this i have to filter the report each time i open the report.

    now again in va25 i want to give multiple values in material field in the selection screen....i want all the quotations for those materials

  • Select layout & save layout button missing in the toolbar

    Hi guys,
    I've just developed my first ALV using ABAP objects, but the tollbat doesn't contain buttons select &save layout.
    what could be worng?
    Thanks a lot!
    olian

    Look at ALV display variant related parameters
    - is_variant Don't forget to give the report name is_variant-report = sy-repid before calling set_table_for_first_display.
    - is_save Give to is_save a value allowing to save variant to get the save icon. (X-standard, A-all, U-user variants, not space)
    (Also take a look at [ALV Gird Control (BC-SRV-ALE)|http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVALV/BCSRVALV.pdf])
    Regards

  • REUSE_ALV_GRID_DISPLAY , how to pass the 'tick' button to internal table

    hi all i have coded:
    DATA: BEGIN OF itab OCCURS 0,
          vbeln LIKE vbak-vbeln,
          posnr LIKE vbap-posnr,
          chk(1),
         END OF itab.
    SELECT vbeln
           posnr
           FROM vbap
           UP TO 20 ROWS
           INTO TABLE itab.
    x_fieldcat-fieldname = 'CHK'.
    x_fieldcat-tabname = 'ITAB'.
    x_fieldcat-col_pos = 1.
    x_fieldcat-input = 'X'.
    x_fieldcat-edit = 'X'.
    x_fieldcat-checkbox = 'X'.
    APPEND x_fieldcat TO it_fieldcat.
    CLEAR x_fieldcat.
    x_fieldcat-fieldname = 'VBELN'.
    x_fieldcat-seltext_l = 'VBELN'.
    x_fieldcat-tabname = 'ITAB'.
    x_fieldcat-col_pos = 2.
    APPEND x_fieldcat TO it_fieldcat.
    CLEAR x_fieldcat.
    x_fieldcat-fieldname = 'POSNR'.
    x_fieldcat-seltext_l = 'POSNR'.
    x_fieldcat-tabname = 'ITAB'.
    x_fieldcat-col_pos = 3.
    APPEND x_fieldcat TO it_fieldcat.
    CLEAR x_fieldcat.
    l_layout-window_titlebar = 'Popup window'.
    x_events-name = slis_ev_end_of_page.
    x_events-form = 'END_OF_PAGE'.
    APPEND x_events  TO it_events.
    CLEAR x_events .
    x_events-name = slis_ev_top_of_page.
    x_events-form = 'TOP_OF_PAGE'.
    APPEND x_events  TO it_events.
    CLEAR x_events .
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
      EXPORTING
        i_callback_program       = sy-repid
        is_layout                = l_layout
        i_callback_pf_status_set = 'STATUS'
        i_callback_user_command  = 'USER_COMMAND'
        it_fieldcat              = it_fieldcat
        it_events                = it_events
       I_SCREEN_START_COLUMN    = 10
       I_SCREEN_START_LINE      = 1
       I_SCREEN_END_COLUMN      = 50
       I_SCREEN_END_LINE        = 20
      TABLES
        t_outtab                 = itab
      EXCEPTIONS
        program_error            = 1
        OTHERS                   = 2.
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    itab-chk is a check button, after execute for the second time, i need to get this ticked button to perform upload transaction..how to pass the ticked button inside itab ?

    just loop at itab and pass X to chk
    loop at itab into wa_itab.
       wa_itab-chk = 'X'.
       modify itab from wa_itab.
    endloop.

  • How To Enable Group Layout When Creating Chart in Crystal Reports XI

    Hi
    I Created a chart, and i placed the same on Report Header, when i want to change the layout Option As Group, it is disabled, how to enable the Group Layout Option.

    Hello
    You should have your group already created and your summary. you place your graph outside the group (RH or RF)
    Luc

  • Cp6 - How do I save custom button images?

    Hello all,
    I have a project which uses custom buttons. When I click on the button, from the stage, I see the button and other custom buttons in the Properties/General section (as Image buttons).
    The problem is that these buttons are embedded in the project. How do I save them to the hard drive so that I may edit them? I see no option to save them in their 3 states (over, up, down).
    BTW, as I mentioned, they are currently embedded in the project and they are not located in: Adobe Captivate 6 x64\Gallery\Buttons
    Anyone?
    Thank you,
    Doug

    Hi Charles,
    last week Kirby Krieger and me did a little investigation in vanishing button sets; you may wish to have a look at this thread: Control Bar Button Sets Drop-down shows non-existing Sets "Wedding", "Sports", "Animals". I wonder, if your button sets vanish for the same reason, switching between libraries.
    When you close Aperture and restart (a regular "quit", not "force quit", I assume, otherwise all will be discarded ) then the button sets will be stored in your Aperture Library, and in the System Preferences file
         ~/Library/Preferences/com.apple.Aperture.plist Aperture stores the name of the button group last selected.
    So the button sets are bound to your library. If you switch between Aperture Libraries, and the other Library does not have a button group by the name you last selected, then Aperture will fall back on the default button set. By clicking the "Edit button" in the keyword controls and selecting one of your previously defined set in the left columm of the button editor, usually your button sets should reappear. Does that apply to your case? Do you switch between multiple Aperture Libraries? Then make sure to select a button set group that is defined in all libraries before quitting and switching to another library. Also your Aperture Preference file might be locked or corrupted. Then it might help to remove the preference file as described in Aperture 3 Trouble Shooting Basics http://support.apple.com/kb/HT3805
    The import/export buttons:
    You can save your button set to a file, and when you switch to another library, you can import the saved file to use the same button sets with that library. Export and Import should not be necessary, if you are only quitting and reopening the same library.
    Regards
    Léonie

  • How to enable the add button in worksheet properties in OLAP

    Hi
    After Changing the time to Pacific, im able to manage the catalog..But still im not able to share any of my olap worksheets.
    I have also granted the BISM and D40 objects from ' user_objects table ' to the user from whom im trying to share the report..
    but in my OLAP report..the worksheet properties shows me the add priveleges button in a disabled form..pls can any body help me out..it is an urgent issue and cud'nt enable the add button..
    please give some guidance...
    Thank you,
    S. Kokila

    Hi,
    Normally, for the archiving or generation of the invoice document in PDF format is handled by maintaining the output records through VV31/VV32 with the relevant printer, storage mode ( 3- print and archive or 2- archive only ), no. of messages ( means no of copies ) in the communication method.
    Then when you click the print button through VF03 in the print options pop-up you get a print at the physical printer and at the same time an archived copy ( PDF copy ) attached with the document.
    So, please make sure the output records are fine to allow a PDF copy generated and then try to print and check in VF03 by entering into the billing document.
    Hope this helps you.
    However, from the print preview you normally would not be allowed to save or print.
    Regards,
    Ram
    Edited by: Ramakrishna Peri on Apr 3, 2009 9:16 AM

Maybe you are looking for

  • Can't create a multiple file PDF from PDF forms created in Designer

    Hi I want to create a single PDF which combines 6 pdf forms created in Adobe Designer (all as separate pages). When I try to create a single PDF from these multiple files using the "Create a PDF from Multiple files" command, my A-3D won't let me do t

  • I am not able to register a new ap in WLC

    The issue is i am not able to add new APs on WLC. Currently, there are 48 APs registered. But it does not allow 49th AP. i tried a new ap to configure and add in the network but it is not registring but when i remove any other ap from the network the

  • Os language preferences not changing system menu and windows

    Hello fellow problem solvers; I am trying to switch system preferences to French from English under X.4.3, and after log out or reboot Finder, File, Edit, View, and Go , stay in English in the finder. Applications that have localisations work fine, l

  • TextEdit "Open Recent" list contains a folder I can't open

    In TextEdit I went from File > Open Recent > - and noticed in that list a folder icon, titled: ".de0146.000"! Puzzled, I tried to open it, and naturally got an error message saying that TextEdit cannot open a file in the "Folder" format. So I tried u

  • Iweb beginner (with a capital B)

    Hi guys, I've had my iMac for a couple of yrs now, and I'm a bit of a musician, and have just finished a load of songs on GB. It's taken a long time to learn how to do it, and they sound good. I'd like to make a wee website for myself now, and pop my