How to get save button for saving the layout in OO ALV

Hi all,
When I execute my report an OO ALV, I want to save the layout and make it default.Please tell me how to do it.
I am using the below code.
*Call ALV
  CALL METHOD c_alvgd->set_table_for_first_display
    EXPORTING
      is_layout                     = gd_layout
      i_save                        = 'X'
    CHANGING
      it_outtab                     = it_ekko
      it_fieldcatalog               = it_fieldcat
    EXCEPTIONS
      invalid_parameter_combination = 1
      program_error                 = 2
      too_many_lines                = 3
      OTHERS                        = 4.
  IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
               WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.
even after passing i_save eq 'X', it is not showing save option in the layout.
please help.
thanks,
Siddhartha Prakash

Hi,
You need to pass the call back program name also.
  CLEAR wa_variant.
  MOVE sy-repid TO wa_variant-report.
  CALL METHOD wcl_alvgrid1->set_table_for_first_display
  EXPORTING
    I_BUFFER_ACTIVE               = space
    I_BYPASSING_BUFFER            = c_x
*    I_CONSISTENCY_CHECK           =
*    I_STRUCTURE_NAME              =
    IS_VARIANT                    = wa_variant   "variant options
    i_save                        = c_x
    I_DEFAULT                     = c_X
    is_layout                      = wa_layout
Thanks,
Vinod.

Similar Messages

  • How to get a minus sign with the cost  field in ALV.

    Hi ,
    How to get a minus sign with the cost field in ALV.
    The Ouput will be displayed like  Rs -1500 instead of 1500-
    I can't use concatenate also as i may have to use the sum functionality of ALV .
    Cheers
    Sunny

    Hi sunny,
    1. The OTHER FIELD
       has to be character field of say length 15.
    2. Write the original numeric value to
       this character field (in a loop)
    3. But simply writing won't help.
    4. use this kind of logic.
    5.
    REPORT abc.
    DATA : m TYPE i.
    DATA : chr(15) TYPE c.
    m = -100.
    WRITE m TO chr.
    IF m < 0.
      SHIFT chr RIGHT BY 1 PLACES.
      CONDENSE chr.
      CONCATENATE '-' chr INTO chr.
    ENDIF.
    WRITE chr.
    regards,
    amit m.

  • How to hide 'SAVE' button in adobe form layout

    Hi  Friends,
    I have a requirement to hide 'SAVE' button in adobe form layout .They dont want to save the form .
    Is there any way to achieve this .I have gone through scn ,but couldnt find the proper solution
    Thanks and Regards,
    Subeesh Kannottil

    Hi Subeesh,
    Are you talking about restricting the User from Saving the Adobe Form Output. 
    Regards,
    Sivanand Ala

  • What are the setting for Save button for saving plan data in WAD template

    Hi,
    i created SAVE button in Webtemplate for saving plan data.But this button is not
    active.is there any setting for this?
    thanks in advance
    chandu

    Hi Chandu,
    The settings to Configure the  Save function.
    Right click the Button Group Item ® Properties ®  * Button    ® 
    Type Caption  ‘Save’ ® Command    ® Select ‘All Commands’ Tab ® 
    De-select ‘Execute Planning Function’ and then select checkbox ‘Save
    Changed Data’ ® Double click on ‘Save Changed Data’ ® OK ® OK ® Save your template.
    *pls assign points,if info is useful*
    Regards
    CSM Reddy

  • FPM Application how to get SAVE buttons action

    Hello all,
    I have creted an application with the FPM, and in the portal after generating the application, i get a big table with Picture and data of the employee (name. PERNR, ORGUnit, MANAGER....) and some subtables that i have created also are there,
    my question is, there is a save button over those subtables, and i need to know which action or methode generate this (SAVE) button?
    i will be very happy about any kind of help
    Thank you all

    Hello Agadir,
    Do you want to how handle the SAVE event? if this is your requirement then in the Process_Event method of the component controller, you can check for the event id BTN_SAVE and write your logic
    case io_event->mv_event_id.
          when 'BTN_SAVE'.
               "Your logic
    endcase.
    BR, Saravanan

  • How to get save button's state in TestStand 3.5?

    Hello,
    I should implement a call in TestStand 3.5 which would check something in the sequence file when the user wants to save his sequence.
    Is that possible to call a callback sequence when the user saves his sequence? Is there an action which will be called when the user pushes the save button?
    Thank you,
    Peter
    Message Edited by Pete77 on 04-07-2008 07:14 AM

    Hi Peter,
    there´s no callback in sequence editor you can do this. But when you use an operatorinterface or userinterface e.g. Labview you can look in code and see the ConnectCommand method where you connected button from sequence editor to user interface - and so you can programm your own code around your button in labview before execute these connection to sequence editors buttons...
    C:\Programme\National Instruments\TestStand 3.x\OperatorInterfaces\NI\Full-Featured\LabVIEW\TestExec.llb\Full OI - Top-Level VI.vi
    C:\Programme\National Instruments\TestStand 4.0\UserInterfaces\NI\Full-Featured\LabVIEW\TestExec.llb\Full UI - Top-Level VI.vi
    Attached here screenshot of interesting ConnectCommand method in block code of labview (analog in textprogramming - like c code in cvi)
    Best Regards
    Johann
    Attachments:
    TS_Buttons.doc ‏151 KB

  • How to validate plan data before saving the data

    I have a total row in my planning layout which is a summation of plan data in 2 other rows. While saving the data, I should check whether the total is 200 and if not the data should not be saved. How can I achieve this! Any help would be appreciated.
    Regards,
    Tipo.

    Hi,
    I'm also facing the same problem in my development...I tried above all the ways,but we cannot stop saving the wrong data.In this case you have to write the java script for save button, before saving the data if it is correct then go for the next step to save other wise throw an error message or without save the data .
    You need to write the JAVA script for save button,in this code you need to read the data form the layout and check the total value, i am not sure if layout is dynamic how we can achieve this???.
    My development also stopped for this issue,In my case i  have two layouts ,one is for actual and another one is for Planing layout(Function - Distribution equally),using the fox code i succeed to read and throw an error message for incorrect data but i can not stop to saving for incorrect total data.
    Once you solved this problem please post the message in SDN.This type of requirements is very tough and we need to share to our friends.
    Thanks.

  • How to get google earth for free

    How to get google earth for free

    If the app is available in your country's store - it is what it is. It is free in the U.S.
    Google Earth for iPhone, iPod touch, and iPad on the iTunes App ...
    itunes.apple.com/us/app/google-earth/id293622097?mt=8
    FREE
    from 1,956 users
    Jul 26, 2012 – Description. Fly around the planet with a swipe of your finger with Google Earth for iPhone, iPad, and iPod touch. Explore distant lands or ...

  • Enable the Print,Save button for dashboard page in obiee11g

    Hi All,
    How To Enable print and save button for hole dashboard page.I found in 10g but i can't found in the 11g.

    All the best... if you get solution share it.
    thanks
    @User
    I'm not guru! I'm just (top) learner
    Edited by: Srini VEERAVALLI on Apr 5, 2013 6:17 AM

  • Although my ipod shows the number of steps, calories, and time, it no longer is saving it to the history. also when I open the history it takes me to May 2010 instead of the current date. Any ideas on how to get it to start recording the history again?

    Although my ipod shows the number of steps, calories, and time, it no longer is saving it to the history. Also when I open the history it takes me to May 2010 instead of the current date. Any ideas on how to get it to start recording the history again?

    Try:                                               
    - iOS: Not responding or does not turn on           
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try another cable                     
    - Try on another computer                                                       
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar
    The missing apps could have been done by setting the Restrictions that can hid those apps. If the backup was made with those retrictions set the the Restrictions are also restored.
    Thus, if you get it to work restore to factory settings/new iPod, not from backup                               
    You can redownload most iTunes purchases by:        
      Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • FB70: User exit when the save button (for posting) has been click

    Hi ABAP Gurus,
    With regard to FB70, can anyone provide me the name of the user exit that will be triggered when the save button (for posting) has been clicked?
    Thanks!
    <b>
    Best Regards.
    Brando</b>

    Hello Brando,
    With FB70 I recommend you implement the user-exit via the Business Add-In (BADI) way and avoid SMOD exits if possible.
    The list below are the BADIs that are called by the <b>ECC6.0</b> system after you click the <b>Save</b> button to post a document. <u>They are listed in the order which they are called before the actual post</u>. You'll have to find the right one as per your requirement - you can view their definition via transaction SE18 then after you find the right one you need to use that definition to create an implementation via SE19. Here again, you'll have to choose the right method that suits your requirement. You'll find the method and class documentation in some cases with examples on how to implement, you need to write the code between the Method..EndMethod statement using the parameters provided by the Method.
    1. PPA_CUST_BADI
    2. FI_RES_ITEM_CURRENCY
    3. AC_QUANTITY_GET
    4. BADI_PRKNG_NO_UPDATE
    5. FM_POP_CORE
    6. FMRI
    7. FMRE_BUS_PROCESS
    8. FAGL_SET_SEGMENT
    9. EXIT_XFMPR1_001
    10. BUAVC_CHECK_RESTRICT
    11. UKM_R3_ACTIVATE
    12. CO_DOCUMENT_INFO
    I spent a bit of time debugging FB70 to find this info for you, please appreciate by rewarding points (or else
    Good luck.
    Cheers,
    Sougata.

  • How to get Open Balance for the year and Total Ending Balance?

    For a given account, how to get Open Balance for the year (Cumulative Ending Balance) and Total Ending Balance (Cumulative Ending Balance)?
    Is there any function module available? or should I read from some tables? Please advice.

    Hello Paul,
    You could try calling one of the following BAPIs - see which one meets your requirement. They are documented well so shouldn't be a problem finding out the correct one for your requirements.
    BAPI_GL_GETGLACCBALANCE      
    BAPI_GL_GETGLACCCURRENTBALANCE
    BAPI_GL_ACC_GETBALANCE      
    BAPI_GL_ACC_GETCURRENTBALANCE
    BAPI_GL_ACC_GETPERIODBALANCES
    BAPI_COND_VAL_DECRE_BALANCES
    You might have to put in some of your own logic after the BAPI call to get what you want.
    Hope this helps,
    Cheers,
    Sougata.
    p.s. Also look at FM FAGL_GET_ACCOUNT_BALANCE
    Edited by: Sougata Chatterjee on May 7, 2008 11:47 AM

  • How to get column names for a specific view in the scheme?

    how to get column names for a specific view in the scheme?
    TIA
    Don't have DD on the wall anymore....

    or this?
    SQL> select text from ALL_VIEWS
      2  where VIEW_NAME
      3  ='EMP_VIEW';
    TEXT
    SELECT empno,ename FROM EMP
    WHERE empno=10

  • HT1222 My phone is telling me about a Software Update but for the first time it is asking me for a passcode, I have never set up a passcode and do not know how to get around this to do the upgrade?

    My phone is telling me about a Software Update 7.1.1 but for the first time it is asking me for a passcode, I have never set up a passcode and do not know how to get around this to do the upgrade?

    See if this helps:
    iOS: Forgotten passcode or device disabled after entering wrong passcode
    http://support.apple.com/kb/ht1212

  • How to get Basic salary amount in the Housing formula to calculate the housing value as I used the DBI (NICDP_EMPLOYEE_BASIC_SALARY_AMOUNT_ASG_ENTRY_VALUE) but when run the Quick pay for the housing element alone result come 0, How to get Basic salary amo

    How to get Basic salary amount in the Housing formula to calculate the housing value as I used the DBI (NICDP_EMPLOYEE_BASIC_SALARY_AMOUNT_ASG_ENTRY_VALUE) but when run the Quick pay for the housing element alone result come 0, How to get Basic salary amount in the Housing formula to calculate the housing value as I used the DBI (NICDP_EMPLOYEE_BASIC_SALARY_AMOUNT_ASG_ENTRY_VALUE) but when run the Quick pay for the housing element alone result come 0

    Hi,
    Is your formula attached to basic salary element or some other element? You need to make sure that basic salary element has some value and is processed before this formula is called. Are you able to see value for basic salary element after payroll run?
    Regards,
    Pawan

Maybe you are looking for

  • 10.6.8 Update VERSION 1.1?

    Back on the last week of June I let SW Update download and install the 10.6.8 update but it hung sometime during the last few phases and with the assistance of others here (and having lots of applications and utilities loaded on my Dock) I was able t

  • Can you search on a shared iTunes playlist ?

    I am trying to search a shared iTunes playlist and get an error on a shared playlist for a search that works fine on the local library. Can you tell me how to get this to work ? property away_CPU : "iBook Music" -- This is the source name of the shar

  • Execute xquery in a xml tag.

    Hi there, I have the following XML file: <Bookstore> <Book> <book_ID>1</book_ID> <query>collection('test.dbxml')/Bookstore</query> <quantity_in_stock>28997</quantity_in_stock> <popularity>20564</popularity> </Book> </Bookstore> I need to execute the

  • Bad service and no service

    I have had my Driod Incredible 2 for at least 6 months and it is rare when I get more than 3 bars. I get none in my house and have to go outside to make calls. I read that this model is notorius for bad reception. Any suggestions? I love it but need

  • Running the deinstall script via SQLPlus

    Hi folks, There are plenty of examples in the forum of how to run the apex install scripts by reading the contents of APEX_APPLICATION_SUPP_OBJ_SCR. I can't find where the contents of the deinstallation script is stored. Has anyone discovered this? I