How to change a private atribute of class CL_GUI_ALV_GRID

I would like to influence attribute"M_DISABLE_SAVE" in this class.
Is it possible? If so, how can I do it.
Thanks.

If you don't want the user to be able to save a layout of the grid, then make sure to pass "SPACE" to the I_SAVE parameter of the SET_TABLE_FOR_FIRST_DISPLAY method of the class CL_GUI_ALV_GRID.
CALL METHOD ALV_GRID->SET_TABLE_FOR_FIRST_DISPLAY
      EXPORTING
           I_SAVE                 = space    "<--- do not allow to save layout
      CHANGING
           IT_OUTTAB       = I_ALV[]
Regards,
Rich Heilman

Similar Messages

  • How to change the $ sign in a class name?

    How to change the $ sign in a class name?
    After compilation I get classes with names like abc.class, abc$1.clsss abc$2.class etc.. How do I get different names (without the $ sign) that will be accepted by my web host.

    Thank you, I found out it had to do with the actionPerformed(ActionEvent e) assignment,
    public void actionPerformed(ActionEvent e) {
    if (e.getActionCommand().equals("Subtotal")) {
    bla bla �..
    I will have to rewrite some of my source code. I gave you points, thank you again.

  • How to change the value of Valuation class.

    dear friends:
    i want to change the value of Valuation class in the material master .but system  warning info occurs .
    The valuation class cannot be changed
    Message no. M3 368
    Diagnosis
    You wanted to change the valuation class. However, this is not possible because one or more of the following already exist for the material:
    Valuated stocks in the current period or in the previous period
    Open purchase orders or delivery schedule lines
    Production orders for which a goods movement has already taken place
    System Response
    Your change is reset by the system.
    Procedure
    If valuated stocks already exist, you can change the valuation class only as follows:
    a) Post the stocks of the material to an interim account.
    b) Change the valuation class in the material master record.
    c) Post the stocks of the material back to their original account.
    If open purchase orders already exist, you can only change the valuation class if you first flag the corresponding purchase order items for deletion.
    If production orders exist for which a goods movement has already taken place, you can only change the valuation class if you first set the status of the production orders to Deleted.
    Procedure for System Administration
    In Customizing for the Material Master, you can switch the check for open purchase orders and/or for production orders to a warning. You do this in Define Attributes of System Messages by assigning the message type Warning to message MM 326 and/or MM 327 respectively. However, first ensure organizationally that further processing of the open purchase orders or production orders cannot result in inconsistencies.

    To resolve SAP error message M3 368 I would suggest that you refer to SAP note number 1967543. This note outlines the issue and a resolution to it:
    Please have a look at the description of the error M3 368. This error may occur if one or more of the following already exist for the material:
    1. Valuated stocks in the current period or in the previous period
    2. Open purchase orders or delivery schedule lines
    3. Production orders for which a goods movement has already taken place
    Resolution:
    If you have valuated stocks in the current period or in the previous period, you will get message "Stocks already exist.". You have to clear all the stocks both in current period and previous period. Please have a look at SAP Note 30656, it shows an example on how to clear the stocks in
    previous period. You can use transaction MIGO to execute this step.
    If you have open purchase orders or delivery schedule lines, you will get message "Purchase orders already exist.". You can find related purchase orders after you click 'Display Error' button. Please delete them in transaction ME22N.
    If you have production orders for which a goods movement has already taken place, you will get message "Production orders already exist.". Please archive these production orders. You need to set deletion flag for these orders firstly and go to SARA, use archiving object PP_ORDER to archive
    these orders.
    Kind regards,
    James

  • How to change the sender's email (class  cl_sapuser_bcs) ?!?

    Hi Friends,
    Currently, I use class CL_BCS to sending an email. I've set sender as below :
    data: sender type ref to cl_sapuser_bcs.
    sender = cl_sapuser_bcs=>create( sy-uname ).
    call method send_request->set_sender
    exporting
    i_sender = sender.
    But I don't know how to change the sender's email to a specific email address, i.e: [email protected]
    Anyone can tell me how?
    Thanks,
    Gy

    DATA: recipient          TYPE REF TO if_recipient_bcs.
    sender = cl_sapuser_bcs=>create( sy-uname ).
          CALL METHOD send_request->set_sender
            EXPORTING i_sender = sender.
        --------- add recipient (e-mail address) -----------------------
        create recipient - please replace e-mail address !!!
         <b> recipient = cl_cam_address_bcs=>create_internet_address(
                                            '[email protected]').</b>
        add recipient with its respective attributes to send request
          CALL METHOD send_request->add_recipient
            EXPORTING
              i_recipient  = recipient
              i_express    = 'X'.
    Message was edited by:
            Hymavathi Oruganti

  • How to change program from own develop class to $tmp

    hi,
    i m creating one program and stored under the development class ZFM.
    how can i change my own development class to $tmp(local object)i don;t want to use development class ZFM changed to $tmp

    1. SE38
    2. Give Program Name
    3. Use menupath: Goto-> Object Directory Entry
    4. Click on Display/Change in popup window
    5. Change the package to $tmp
    Make sure the object is not locked under any request.
    Kind Regards
    Eswar

  • How to change column name heading thru Class method in ALV report

    When I Select LayOut on Selection screen then Display ALV Output columnname display Quantity but I want change this name to Carats.
    I set Short, Medium and Long text is Carats.

    DATA: lt_fcat    type lvc_t_fcat,
              lv_fname type fieldname value '<Your FName>'.
    FIELD-SYMBOLS: <fcat> type lvc_s_fcat.
    CALL METHOD alv_grid->get_frontend_fieldcatalog
       IMPORTING
           et_fieldcatalog = lt_fcat.
    read table lt_fcat assigning <fcat> with key fieldname = lv_fname.
    if sy-subrc is initial.
       <fcat>-COLTEXT = <fcat>-SCRTEXT_L = <fcat>-SCRTEXT_M = <fcat>-SCRTEXT_S = <fcat>-SELTEXT = '<Your new Description>'.
    endif.
    CALL METHOD alv_grid->set_frontend_fieldcatalog
       EXPORTING
           it_fieldcatalog = lt_fcat.
    call method alv_grid->REFRESH_TABLE_DISPLAY.

  • How to use a protected attribute of class cl_gui_alv_grid

    Hello all,
           i have a scenario where i need to use the attribute 'm_appl_events' which is protected attribute. in need to add this event type into my events and add this to registered events.
        when i tried to use this with refrence to class i defined, it showing an error message 'access to protected attribute m_appl_events is not allowed. i already inherieted the cl_gui_alv_grid class into my class
         can any one please tell me how exactly could i use the protected attribute.
    Thanks,
    raju N

    Hi Krishna,
    Protected method or attrubute can be accessed through Inheritence or Friends functionality. So you can inheritence easily in you case . so that you can access the variable in the Inherited sub class only. So you can write 2 methods ie GET or SET ing the value of your protected method.
    I think this informatio may help you.
    Best Regards,
    Vijay

  • HOW TO CHANGE THE USEFUL LIFE FOR MORE ASSETS AT A TIME FOR ASSET CLASS

    Hi All,
    Asset which is under Asset Class Support system-B700. Here every thing is ok but the problem in USE FULL LIFE which is come by default. It must be 4 instead of  5.   So can any body help me out from this how to change the Useful life in that Asset class.  In that Asset Class we have the morethan 200 Assets. It was happend in Prdocution system so now the problem is where i can change the useful life for the asset class either in DEV or PRD.
           Also i want to know the information of How these assets are Uploaded into the system (Lsmw or etc). this is very urgent for me.
    Thanks in Advance,
    Regards,
    Siva.

    Hi Ashok,
         Can i know the reason how it was happend. i mean instead of 4 years the system showing is 5yesrs any reason is there behind that.
    Thanks in Advance.

  • How to change Valuation class in material master(have stock)

    HI,
    I would like to change the valuation class in material master, How to change VC? is there any process before changing VC?
    I heared when Material have nil stock then only it's possible to change VC, Is it correct? which TC can I use for change VC?
    Regards,
    venki

    Dear venki,
    To change Valuation class you must have zero stock in the current period, and zero stock at the end of the last period, plus no open PO lines .  flag for deletion all open PO lines,
    Regards
    shankar

  • How to change of Messge classe assigned to Call point?

    Dear friends
    I have defined one validation, in line item call point - 2, I have defined one message class. Now I want to change the message class assigned to call point 2 ie. line item.
    Please help me how to change the message class.
    Thanks in advance.
    Regards
    Kiran A

    hi
    Message class cannot be changed ... As message class is for one particular submodule
    eg: message class for account receivable /account payable
    message class for asset accounting.
    So if you have created a validation you might have created for account receivable so message class for account receivable would be displayed by default you cannot change it to message class for asset accouting . you have option for changing message no but not message class.

  • How to change the package name for a msg class

    Can anybody tell me how to change the package name for a message class.
    and how will it effect in the rerport?
    thanks in advance
    kp

    >>and how will it effect in the report?
    You wouldn't see any direct effect on the Report.. But if you transport the report to QA & leave the Message class in Dev, it might result in syntax issues & you will not be able to execute the report. Just ensure that both of them get transported to QA & you will be fine.
    ~Suresh

  • How to change local object to own dev class

    in the table maintenance generator my object is stored under local object how to change loacal object to our own development class and how to change the function group in table maintenance generator

    Hi Narendra,
    In order to change the function group, you need to delete the table maintenance generator first.
    Then you create a new table maintenance generator.
    To change the package of your object :
    1. for Function Group
       - tcode SE80
       - right click on the Function Group
       - choose : More Function - Object Directory Entry
    2. for Table / Function Module
       - tcode se11 / se37 / se38
       - in the upper menu : choose : Goto -- Object Directory Entry
    Hope this helps.
    best regards

  • How to Change the Development Class from $TMP to YABAP in Layout

    Hi all,
    How to Change the Development Class from $TMP to YABAP in Layout( SE71).
    Thanks & Regards,
    N.L.Narayana

    Hi,
    it is possible with SE03. you just click on Change <b>Object Directory Entries</b> under the tree menu <b>Object directory</b>, and then enter in the last column of table control
    Check the check box and enter FORM and formname,
      R3TR FORM SAPscript form 
    then execute it.
    then you will be able to change it to PACKAGE from $TMP
    regards
    vijay

  • How to change the development class of a script?

    helo experts can u please explain how to change the development class of a script?

    SE03->Object Directory-->select change object entries->Execute
    Now Select FORM in second row
    Check box(tick)    R3TR     FORM     SAP Script     <Give your Script name here>
    Package   : give the current package of the script ex. $tmp
    Execute
    Now right click on your form name--> object directory ( I guess from here you can proceed)
    Reward points to all useful answers.
    Regards,
    SaiRam Reddy

  • How to change valuation class of a material.

    how to change valuation class of a material.

    Dear Sandesh,
    Refer to:
    [Changing The Valuation Class|http://www.sap-img.com/materials/changing-the-valuation%20class.htm]
    and
    [Changing Valuation Class|http://masteryen.com/sap/?p=98]
    Best Regards,
    Amit
    Note: Key-points to remember, before changing the Valuation Class -
    1. All the stocks are zero and
    2. There is no pending orders as well?

Maybe you are looking for

  • XML to InDesign, multiple versions of the same document

    Hi everyone, I have a small project that I need help with. I am working on an online survey for a client of mine; which consist of 10 odd pages of questions as well as free text entry on some of the questions. Some of the questions requires number in

  • HR ABAP-Payroll Function Module

    Hi pple, Well, When I am trying to run the payroll function module PYXX_READ_PAYROLL_RESULT, I am getting a DUMP. I checked the corresponding input data from PCL2 table. But still it is dumping. Can anyone send me some sample code, so that I too will

  • Attach BP Url via Code

    Hi experts!! I am using cl_crm_documents=>create_with_url to create attachments via URL, in BPs. The problem is that the attachments are uploaded as application/octet-stream, hence i cannot open . When i manually attach URLs to BP they are displayed

  • P6N SLI Plat & Bios 1.31, what's the verdict?

    For you guys who've already flashed to bios 1.31 how's it running?  Has it corrected any issues that you had with previous bios versions?  Will your machine allow the keyboard to start on a cold boot?  I almost did it however I just couldn't make mys

  • HI can anybody   facing  IDOC'S ISSUE

    HI can anybody   facing  IDOC'S ISSUE    SEND IT TO ME  I WILL SOLVE   FOR YOU THANKS AND REGARDS RAJU