Save Layout and change Layout button.

Hi Guys,
            Im calling the below method of class: cl_gui_alv_grid.
    gs_variant_lic-report = sy-repid.
    gs_variant_lic-username = sy-uname.
      CALL METHOD gi_alv_lic->set_table_for_first_display
        EXPORTING
          i_structure_name         = 'Z_STRUC'
          is_variant                    = gs_variant_lic
          i_save                        = 'A'
          is_layout                    = ls_layout
However, the Select layout and Save Layout button dont appear.
Instead i get the button 'Choose Layout'.
If i dont pass gs_variant, i get single button 'Change Layout'.
My requirement is to get 3 buttons: 'Change Layout', 'Select Layout' and 'Save Layout'.
How can i achieve that?
Thanks,
Rohit.

Please share how did u solved it?

Similar Messages

  • '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 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.

  • '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.

  • I uploaded and edited my RAW image, clicked 'Save As', and changed the file type from .psed to .jpg.

    I edited my raw image in Photoshop CS6, selected 'Save As', and changed the file type from .psed to .jpg. I also selected 12 and large file when the window popped up, concluding my 'saving as'. My computer does not recognize the file type and won't open them. Can someone help me? Thanks!

    When naming files, stick to the letters of the ENGLISH alphabet, numbers and underscores.  Do not use illegal characters like apostrophes, commas, asterisks, ampersands, hatch or pound signs, diacritics or accented characters, slashes, etc.
    While the period (dot) is not an illegal character per se, your file names should have only one period and that should always be followed by the file type extension.
    EDITED typo: se
    Message was edited by: station_two

  • I have an ipod 2g and my lock button wasn't working so i took the ipod apart and changed the button. the top half works but the bottom doesn't so i cant unlock my ipod but i can still listen to music and such

    i have an ipod 2g and my lock button wasn't working so i took the ipod apart and changed the button. the top half works but the bottom doesn't so i cant unlock my ipod but i can still listen to music and such

    Take it apart again and find out and fix what you messed up.
    First I would try restoring the iPod. to factory settings/new iPod

  • 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

  • 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

  • If I change internet providers, how do I save mail and change settings?

    I am going to have a representative from a different broadband service come over tomorrow and see if my house is within the area served by her company (Clearwire). If it is I plan to drop my satellite service and go with this, assuming it is faster. In case I do this, I realize there are a few things I need to know first that I hope someone here can help me with.
    1. If I go with the new service provider, my email address will change. Does this mean that what is in my current mailbox (I have several folders with emails I have saved) will no longer be accessible? How do I backup what is in all the folders now in a way that I will be able to get into it with a different provider? (I have an external hard drive, but it is usb so cloning is not a possibility.)
    2. If the new service works, I think I will have to make changes like DNS numbers and such. Hate to admit this, but I do not remember where to find and change these things.
    3. What else might I be forgetting to think of that I need to know?
    Thanks very much in advance for all advice and suggestions.

    Do not change the settings for the existing account.
    You should create a new account in Mail for the email account provided by Clearwire.
    Before deleting the email account in Mail provided by your Satellite internet provider, create an "On My Mac" location mailbox - one for the account's Inbox mailbox and one for the account's Sent mailbox. Transfer messages from the Satellite account's Inbox and Sent mailbox to the user created "On My Mac" mailboxes. When completed, delete the Satellite provider's email account.
    You shouldn't have to change anything with the new provider. I assume Clearwire provides an Ethernet modem and sends an installer to set up the equipment, etc.?

  • 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.

  • Illustrator crashes when using save as and changing the save location yosemite OS

    I am having a problem with illustrator crashing when using save as to save a file to another location than the one it was previously saved in. It will save to the same location just fine but on macbook pro with yosemite os it crashes immediately when i change the save location.  Tried reinstall and also tried other users and still does it. Any solutions?

    Hi Parisian tiger
    What happens when you try to open any file from the same location where you are saving the file using Save As command ?
    Will it be possible to join a connect session with me ?
    Please do let me know about your time availability ?
    Thanks & Regards,
    Raghuveer Singh
    [email protected]
    Time Zone: +5:30 GMT (IST)

  • Button Save layout not appearing in the Applicaion toolbar

    I am displaying an ALV output thru OOPS like
      my_salv_table->set_screen_status(
        pfstatus      =  l_pfstatus
        report        =  my_repid
        set_functions = my_salv_table->c_functions_all ).
    I have set my pfstatus prior to this . In my PF status I have set the save layout button also . But it is not appearing in the ALV output . But when I execute the pfstatus individually the button is appearign in the application  tolbar .
    Moreover I tried to explicitly set the save layout button
    l_functions_list = MY_SALV_TABLE->GET_FUNCTIONS( ).
    l_functions_list->set_save_layout( IF_SALV_C_BOOL_SAP=>TRUE ).
    But also it is not appearing in the ALV layout

    Hi you can copy the status from the standard ALV program 'SAPLSALV' to your program.For that u nedd to follow thease steps.
    1. go to se41.
    2. enter standard program name 'SAPLSALV'.
    3. select the status name 'STANDARD' via F4 help.
    4. Click on the copy 'status' button on the application tool bar.
    5. enter your program name and give the name of status as zstandard.
    status will get copied.
    6. Now in your source code.
    in the   CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    do changes as.
    I_CALLBACK_PF_STATUS_SET = 'ZSTANDARD'.
    and write subroutin as.
    *&      Form  ZSTANDARD
          text
         -->EX_ITAB    text
    FORM ZSTANDARD USING RS_EXTAB TYPE SLIS_T_EXTAB .
    copy the status of 'SAPLSALV' standard program.
      DATA:
        GT_EXCLUDE   TYPE SLIS_T_EXTAB.
      SET PF-STATUS 'ZSTANDARD' .                       "Set gui status
      APPEND '&FIND' TO GT_EXCLUDE.
    ENDFORM.                    "ZSTANDARD
    after doing all thease thing u will get all the functionality of standard alv program including SAVE command.
    I hope it will definately help u.
    Rewards if usefull.
    Best Regards.
    Dheeraj

  • IDoc creation on save and change of production order

    I am looking for a way to create, and send if possible (if not I'll send with a batch job), on the save (creation and change) of production orders.  This will be a modified LOIPRO iDoc.  Currently we have a customer exit on the save of the production order but because it is before the save we must predict the number of the prod order.  This has worked but now we are creating one production order per line item in a sales order (automatically) so this is causing us to predict the same production order number twice.  We need a way to automatically create and send an iDoc for all production orders for given plants.  Right now the solution we are looking at is creating an output type and running through those output types a few times a day, sending them down to the Shop Floor system (proprietary system). 
    Is there anything setup in SAP that we can utilize?
    Regards,
    Davis

    Hi Rick,
    Follow the below sample steps for changing component quantity:
    DATA:
        l_methods TYPE bapi_alm_order_method,
        it_boperations TYPE STANDARD TABLE OF  bapi_alm_order_operation_e WITH HEADER LINE,
        it_components TYPE STANDARD TABLE OF bapi_alm_order_component_e WITH HEADER LINE,
        it_components1 TYPE STANDARD TABLE OF bapi_alm_order_component WITH HEADER LINE.
    1. Call BAPI :BAPI_ALM_ORDER_GET_DETAIL , it will give existing order component details.
    CALL FUNCTION 'BAPI_ALM_ORDER_GET_DETAIL'
        EXPORTING
          number        = <production order number>
        TABLES
          et_operations = it_boperations
          et_components = it_components
          return        = it_bapiret2.
    2. Move it_components to components table compatibel to BAPI "BAPI_ALM_ORDER_MAINTAIN".
    LOOP AT it_components.
    MOVE-CORRESPONDING it_components TO it_components1.
    _*"Note here while moving change the component quantity"*_
    APPEND it_components1.
    CLEAR it_components1.
    ENDLOOP.
    3. Build the methods table for change production order :
    it_methods-refnumber = v_refnumber.
                it_methods-objecttype = 'COMPONENT'.
                it_methods-method = 'CHANGE'.
                it_methods-objectkey = v_objectkey.
                APPEND it_methods.
    "Note v_refnumber has 1 to 1 relation ship with the components table, if you want to change First component in it_components1 then you have to enter value '1' here for v_refnumber.
    it_methods-method = 'SAVE'.
            APPEND it_methods.
    4 . Call
    CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN'
              TABLES
                it_methods   = it_methods
                it_component = it_components1
                return       = it_bapiret2.
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.

  • Dreamweaver CS6 cloud - I can no longer use "Save As'  and the Application manager won't open.

    I always open an old page and use "save all"  to save it,  then "save as"  and change the name of the page to what I want the new page to be the rewrite the new content. It doesn't open a box for name change any longer. Also The application manager does not open at all.
    What to do to fix this?
    Roger

    Hi Roger,
    Can you close other applications open on your computer, and retry before the experts here suggest other solutions?
    Thanks,
    Preran

  • On Button click change the button display text from LOCK to UNLOCK

    Hi Freinds,
    I am rendering a TreeByNestingTableColumn with two columns  like:  Name , Status as below shown. In The status column I inserted a Table Cell editor Button type and  the button element property text mapped to the context attribute called statusButton and set the button name in the code to display as LOCK. When the tree renders all the vales are displaying in status column as LOCK. Now whrn the user click on LOCK i should fire the event and change the button text from LOCK to UNLOCK. The same way when they click on UNLOCK and i have change to LOCK. please help how to do this.
       Name                          Status
    |> Employee1------------------LOCK (when i click on lock  button here, his and under neath of him button status should                 
            |>Employee2-----------LOCK    change from LOCK status to UNLOCK)                                                     
                   |>Employee3----LOCK
    Thanks in advance.
    Thanks
    Srini

    Armin,
    Yes I removed the method and created the calicualted value as you suggested and I able to get the out put what i have asked.
    My complete scenario is some thing like this, i able to complete upto certain level but not able to make it work for complete scenario, I appreicate your comments or advice for getting me the below output
    I have a TreeByNestingTableColum UI rendering with three columns as NAME(node |>), STATUS(Toggle Button) and PLANNING (Text view)  (developed based on sample tutorial Integration of a Tree Structure in a Web Dynpro Table.pdf)
    I am trying to get this output:
    From the sap backed i am getting flag value, based on that i have to render Tree UI columns NAME,  STATUS(Toggle Button) and PLANNING (Text view). if the flag is null i have to show as LOCK and In Planning else Unlock and Submitted  (please see the below picture for clear idea)*
    if (statusflag = ""){
    i have to show values in two columns like Lock ...Planning
    } else
    show values in two columns like Un Un Lock ...Submitted
    One more thing is , If i lock a record at secound node level , then all the records should locked underneath of that node (it could be 2 nodes or 10 nodes) and then the status column values should change from lock to Unlock and Planning column values should change from In Planning to Submitted. where as when i Click on Unlock , only that perticular record (not node level) should changed from unlocked to Lock and planning is  from Submitted to In Planning.
    This is the functionality actually I am looking for.
    Here the tree sample:
    Name                        Status              Planning
    |>M1                         Lock                 In Planning
       |>M2                      Lock                 In Planning
         *M2a                    Lock                 In Planning
       |>M3                    Un Lock                Submittd
    Thank you.
    Srini

Maybe you are looking for

  • Data not available in cube

    Hi all, I have just loaded the data from PSA to DSO, and then from DSO to Cube. New requests enter in the Cube. When tried to check the contents of this new request, there is no data at all. But if i check the contents of the requests of DSO , there

  • Locale and language

    I am having trouble getting locales and languages to work as I would expect them to. I have created a tiny application (I'm a faces newbie still) and a bunch of localization files: message.properties messages_en.properties message_fr.properties messa

  • RSPC programming:Get last log (RSPC_LOGID) from chain (RSPC_CHAIN)?

    Hello. I have a little problem: I'm using FM RSPC_API_CHAIN_START to start a process chain. But I want to check the status of previous run of process chain (is it finished or no). This is achieved by FM RSPC_API_CHAIN_GET_STATUS - but I have to know

  • How to render most efficiently in PPRO / AME cs5 please

    hello, i've searched and read all that i can find on the web and these forums about 'tweaking' for improved performance these are my final questions that i hope i can get advice: i am using cs5 production premium dvd with an i7 920 12gb ddr3 ram 5hdd

  • New computer (windows 7) connection problem with Verizon DSL

    I just bought a new computer to replace a dead one.  I took the old one away and plugged the new one into the Verizon cable.  I have Verizon DSL, no wireless, no network at home, just a computer and a Westell modem. On the new computer, I have a succ