Enhance Standard class attributes

Hi ,
I have a Standard class of method A and B . The requirement is like i need to create a global attribute in a class so that i copy certain values from method A to global attibute  in order fill certain values in B from tha same global attribute..
Is this possible to create global attribute?
Thanks
Vijay

Sorry - I am confused about your problem.
I do know you have a standard class and want to enhance it to add the public attribute.
You can create the public attribute using the Enhance menu option
I
After you have created the attribute(s) you need - how will you set it? in your own code externally to the class or within a method that you call of the class? I assume the latter - well I would suggest try using an implicit enhancement at the end of the method to write the value to the attribute.
You can read that back in your external coding...for the lifetime of your session

Similar Messages

  • Enhance standard class with event handler method

    In trying to enhance a standard class with a new event handler class, I find that the ECC 6.0 EHP4 system does not appear to recognise the fact the method is an event handler method.  The specific example is a new method to handle the event CL_GUI_ALV_GRID->USER_COMMAND. 
    I notice that the flag called Active has not been ticked - see image below.  Perhaps this is the reason why the event handler is not being triggered.
    Note that there is an event handler for the same event in the standard class which obviously is executed as expected.  Any ideas on limitations in the system or I am missing a step?
    Thanks
    John

    Thank you for your replies.
    There is a bug in the ALV handler of a standard SAP class (when executed in ITS WebGUI) and I was hoping to create a custom event handler as an Enhancement to execute some custom code to sort of "handle the bug". 
    I agree - ideally it should be done in a Z class but that will not give me access to the object methods and attributes of the enhanced class.
    Cheers,
    John

  • Enhanced SAP class with new methods - Not showing these from standard task

    Dear Gurus,
    I have enhanced SAP standard class with new methods. After I have activated my new methods and would like to create a workflow task using these new methods. when I create a task and input object category as "ABAP Class" and object type is SAP enhanced class. When I try to drop down for methods SAP is not showing my new methods. I do not know why. Am I missing any? Any help would be appreciated.
    Note: Remember I am trying to use SAP ABAP class custom methods.
    Thanks,
    GSM

    Hi,
    Your thread has had no response since it's creation over
    2 weeks ago, therefore, I recommend that you either:
    - Rephrase the question.
    - Provide additional Information to prompt a response.
    - Close the thread if the answer is already known.
    Thank you for your compliance in this regard.
    Kind regards,
    Siobhan

  • Enhancing a class after changing its JDO mapping file.

    Hi -
    Once I enhance a class to make it persistence-capable, do I need to re-enhance it after I make
    changes to its JDO mapping file (for example, adding a default-fetch-group attribute)?
    Are there certain JDO mapping file changes for which I can forgo enhancement, or is it recommeneded
    to always re-enhance?
    Thanks,
    Les

    That depends on the nature of the change.
    In general, a good rule of thumb is that changing any extensions does not
    require re-enhancement.
    On the other hand, most meaningful changes that you make to the standard
    metadata tags require re-enhancement. This includes default-fetch-group
    settings.
    -Patrick
    On Thu, 16 Jan 2003 16:32:59 -0500, Les Selecky wrote:
    Hi -
    Once I enhance a class to make it persistence-capable, do I need to
    re-enhance it after I make changes to its JDO mapping file (for example,
    adding a default-fetch-group attribute)?
    Are there certain JDO mapping file changes for which I can forgo
    enhancement, or is it recommeneded to always re-enhance?
    Thanks,
    Les--
    Patrick Linskey
    SolarMetric Inc.

  • How to use standard classes to create custom modulepool program like ME21N

    I am at the Starting Point of doing a classical dynpro program via Abap Objects which address all controls with MVC Architecture .So i debugged the standard ME21n transaction to find out how i can start with. I came across this interface which has no Attributes and Methods.I wondered y .Thats y i posted a Question .I also seen a lot of Standard classes
    CL_TABLE_VIEW_MM
    CL_BASIC_MODEL_VIEW_MM
    CL_COMPOSITE_SCREEN_VIEW_MM
    CL_SCREEN_VIEW_MM
    CL_TABLE_VIEW_MM
    CL_TABSTRIP_VIEW_MM
    CL_TC_BUTTON_VIEW_MM
    CL_TC_ITEM_VIEW_MM
    CL_TOGGLE_VIEW_MM
    CL_VALUE_MODEL_VIEW_MM
    and much more for Model and Controllers ..Can u plz guide me how i can make use of this classes effictively in my custom module pool programming

    I think all these classes serve the purpose of embracing the basic ones and are used specificalty in MM module.
    If you want to create similar module pool program with nice expand/collapse buttons in relation to subscreens please refer the some tips [here|expand/collapse button functionality on module pool screen;
    Also there are transactions like BIBS, DWDM which you can follow the examples from. I think SAP has covered all GUI controlls there so you can create really complex programs with various GUI controlls independently of module used for.
    Of course you can still stick to classes you mentioned but I think the better is to learn some standard approach of creating such screens, then if you feel more advanced go for using module specific ones if you really need that.
    Regards
    Marcin

  • How to change standard class private section code

    Dear experts,
    I need to add new attributes in a standard class as per one OSS note. I took access key to add new attributes. I have a question.
    class name: CL_J_1BEFD
    Attribute: MT_GROUP_C350
    Level: Instance
    Visibility: Private
    Type STANDARD TABLE OF mty_result
    How do i add the instance attribute because i do not want to give the typing and associated type. instead i have to declare data: MT_GROUP_C350 type standard table of mty_result in class builder private section code.
    if you look at the pushbutton between Associated type and Description, for all instance attributes there's a green color lining below the arrow. I want my attribute also to be exactly same.
    Though i have access key, in private section the display<->Change button is disabled.
    Please suggest me how do i add code in private section of a standard class. i have required access key to change the class.
    Thanks,
    Rajesh.

    Hi ,
    Please follow the OSS note 1828074 - Syntax error in LSEPA_MANDATE_UI_LISTF01 / visibility of the method "GET_SELECTED_MANDATES" to change visibility section of a standard class.
    Regards,
    Chetan

  • Which are the standard classes for events in ALV and explain each class pls

    which are the standard classes for events in ALV and explain each class pls
    POINTS WILL BE AWARDED,
    REGARDS,
    jagrut bharatkumar Shukla

    hi,
    some links.
    www.sapgenie.com
    www.abap4u.com
    http://help.sap.com/saphelp_nw2004s/helpdata/en/5e/88d440e14f8431e10000000a1550b0/frameset.htm
    download the PDF from following link.
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVALV/BCSRVALV.pdf
    The ALV object Grid methods allow the same functionality as ALV grid report function modules but are displayed within
    a screen (dialog program). SAP has provided a suit of programs which demonstrate how to For examples see standard SAP
    programs as detailed below:
    BCALV_EDIT_01 This report illustrates the simplest case of using an editable/noneditable ALV Grid Control.
    BCALV_EDIT_02 This report illustrates how to set chosen cells of an ALV Grid Control editable.
    BCALV_EDIT_03 In this example the user may change values of fields SEATSOCC (occupied seats) and/or PLANETYPE.
    The report checks the input value(s) semantically and provides protocol messages in case of error
    BCALV_EDIT_04 This report illustrates how to add and remove lines to a table using the ALV Grid Control and how to
    implement the saving of the new data.
    BCALV_EDIT_05 This example shows how to use checkboxes within an ALV Grid Control. You learn:
         (1) how to define a column for editable checkboxes for an attribute of your list
         (2) how to evaluate the checked checkboxes
         (3) how to switch between editable and non-editable checkboxes
    BCALV_EDIT_06 This example shows how to define a dropdown listbox for all cells of one column in an editable ALV
    Grid Control.
    BCALV_EDIT_07 This example shows how to define dropdown listboxes for particular cells of your output table.
    BCALV_EDIT_08 This report implements an ALV Grid Control with an application specific F4 help. The following aspects
    are dealt with:
         (1) how to replace the standard f4 help
         (2) how to pass the selected value to the ALV Grid Control
         (3) how to build an f4 help, whose value range depend on a value of another cell.
    Rgds
    Anversha

  • Model Binding and Calculated Field Syntax for "class" Attribute

    Hi,
    I tried to use the calculated field syntax from SAP UI5 to change the CSS class attribute of an element based on some model property, i.e., I wanted to change the class in the corresponding formatter function based on the currently bound value. However, my formatter function is not called. When I use the same syntax on a text attribute, it works.
    I also tried to use normal property binding, but it did not work on the class attribute either (it just put class="{property}" in the rendered HTML).
    Is there anything I missed or is it just not possible to use property binding and calculated field syntax for class attributes? Did anybody try something like this before?
    I think it is a standard use case to change the CSS class based on some model property. So, if anybody knows how to do that, could you give a short example?
    Best regards
    Svenja

    They have a class property. At least, I can do the following in an XML view:
    <Button
                  icon="sap-icon://add"
                  press="onButtonPress"
                  class="my-button-class" />
    I would expect the following to work as well, but for me it did not:
    <Button
                  icon="sap-icon://add"
                  press="onButtonPress"
                  class="{/customClass}" />
    This renders the following HTML (cropped to the important parts):
    <button type="button" class="sapMBtn {/customClass}">
    </button>
    It seems like the class attribute is something special although I don't see a reason why. Other HTML templating engines, for example, support things like that.

  • Re-Implementing Standard Class's Method

    Hi ,
    I want to Enhance a Standard class's Method.
    For this class "/SAPSRM/CL_CLL_PWL_A_SC_H" i want to write a new implementation for method "IF_POWL_FEEDER~GET_DETAIL_COMP".
    This method is inherited from "/SAPSRM/CL_CLL_POWL_BASE_AGENT" and is implemented in this class.
    Now if i want to write a new implementation in class "/SAPSRM/CL_CLL_PWL_A_SC_H" , how do i do it?
    Regards,
    Ashish Shah

    Created an Implicit Enhancement of Class /SAPSRM/CL_CLL_POWL_BASE_AGENT , method  IF_POWL_FEEDER~GET_DETAIL_COMP.
    Solved by using import parameter I_TYPE of IF_POWL_FEEDER~GET_DETAIL_COMP method.

  • How Can I Do This Changes To Standard Tab Attribute

    Hi guys,
    How can I add the changes required here
    http://www.theapexfreelancer.com/apex/f?p=APEXFREELANCER:JQUERY_MENU_PLUGIN:0#panel1-5
    Sorry, After you get this link, you need to go to
    Plugin Documentation --> Page Tabs Transform --> Page Tab Template Change.
    How can I add the changes required to this Standard TAB.
    Standard Tab Attributes
    Current Tab
    <div class="#TAB_STATUS#"><div>
    <span>#TAB_LABEL#</span>#TAB_INLINE_EDIT#
    </div></div>
    Non Current Standard Tab
    <div class="#TAB_STATUS#"><div>
    <a href="#TAB_LINK#">#TAB_LABEL#</a>#TAB_INLINE_EDIT#
    </div></div> Best Regards,
    Fateh
    Edited by: Fateh on Jun 4, 2011 11:56 AM

    What needs to be changed? Most details such as Date & Time can be set in System Preferences.

  • SAP Standard Field Attributes for ME21n and ME

    Hi,
    Can anyone suggest me where i can see all the display,Hidden,Mandatory, optional SAP Standard field attributes for ME21N and ME51N.
    I looking for Configuration settings
    Thanks
    Venki

    Hi ,
    All i see is Field Label                    Reqd.entry  Opt. entry  Display for ME21N and ME51N
    I want to see what SAP Standard Fields are Hidden for these T-codes.
    I want to use and Non Used Field ( Hidden SAP Field) for new Enhancement instead of creating a custom Tab
    Thanks
    Venki

  • I have copyide from standard class to Zclass cant copyied localclass,type

    Hi ,
          I have copyied Standard class To Zclass It was copyied Superclass, Attribute
    and Method but can't copyied Local Class and Local Types how it copyied ..pls can help me..
    Kind Regards
    Arief .S

    hi,
    You can copy the global classes are they are globally available. However, the local classes are defined in the program and hence not available globally. So you cannot copy a class that is not available. If you want the local class, then you need to define it again in your program. Hope this clears your doubt.
    Regards,
    Richa

  • Enhanced view class not calling

    Hi,
    I've enhanced a search view and redefined the search event handler method. But when i execute the application, it is not calling my enhanced view controller implementation class. the system always call standard view controller class. could anybody explain the reason for it?
    Best Regards,
    Kumar

    Hi,
    Check the enhancement set to client mapping in sm30 (BSPWDV_EHSET_ASG)..Enhacement set should be mapped to client in which you are running the application..
    Also you can check in component_loading default implement, there it should read z-controller instead of standard class.
    Cheers,
    Sumit Mittal

  • Enhancing Access Class Query Function

    Hi Experts,
    I'm customising The PCUI application COMM_BUPAR. I've gone as far as copying this to a custom view as well as addding enhancement fields on the search search.
    Now I'd like to extend the functionality of the QUERY method in the class CL_BSP_BP_ACCMOD to cater for this new field. What's the best way of going about this without modifying the standard class method?
    Thanks,
    Nhlanhla

    Hello,
    Redifining method is ABAP OO concept.  Final result you will have only one method.
    When you create Z class with standard as parent class your Z class will inherit the parents QUERY method but as you want to change the logic of the inherited mehod you use some thing called redefinition.
    You will have button on the toolbar of methods tab in se24.
    Hope this helps you.
    Raj

  • Use of Standard Class in Material Master classification

    Hello Experts,
    Can you please explain me the significance of 'Standard Class' option in classification view of material master?
    When I click on F1 it gives following info (which I can't understands completely)
    A standard class allows you to access all the information on classification and characteristics for an object when you use the object, without having to select one of the classes it is assigned to.
    Can you please elaborate more on this?
    Thanks in advance,
    Vijay.

    Hi Anamika,
    Thanks for your feedback.
    Actually my question is why there is option of 'Standard Class' provided in classification view. If multiple classes are assigned to given material then we can select only one class as a standard class. What is the use of selecting a class as a standard class??
    Thanks in advance,
    Vijay.

Maybe you are looking for

  • Restricting dashboard prompt values in obiee 11g

    Hi All, I have a requirement to restrict the length of the dasboard prompt value to min of # characters. Please let me know if you have any idea (JScript). Regards, Zameer

  • "Window" menu doesn't show a list of all my open tabs in Chrome, Safari nor Firefox

    It's a weird thing, but recently, I found that the 'Window' menu item Mavericks is not showing a full list of the tabs that I have open in any of my browsers.  I've tried with Chrome, Firefox and Safari. I even tried uninstalling Firefox as a test an

  • Notifications do not match apps/messages

    Okay, so, this week I've noticed that when I get notifications about an iMessage or email, or other messaging app message.... when I open the app to read such message, it doesn't exist. When I go into the notifications centre, it doesn't exist there,

  • Authorizing my computer

    i have just recently bought a new pc and itunes wont let me sync any music onto my ipod unless i authorize my computer (which i have) and it still doesnt work.

  • Iphoto hang while importing photos

    Hi, my iphoto in macbook air hang while importing half way. i cant quit the iphoto now. pls advise hw can i shut down?