‎2007 Oct 16 11:29 AM
Hi experts,
How can we copy a metod inside a object.i need to copy
a method price_check from the obejct(z_bus2081) into z_price_check (z_bus2081)
‎2007 Oct 16 11:35 AM
Hi Karthick
SE80, use Class library option, enter class method and click on copy to...
regards,
Arun
‎2007 Oct 16 12:16 PM
Hi
Hope that you want to copy a method of a particular class.
Following are the simple and easier steps to make a Std SAP method customized.
Goto the required method(using SE24 tcode).
In the function keys section, there will be an icon for Other object, on clicking it a pop-up screen appears.In this screen at the bottom there will be an icon for 'Copy'.
On clicking the 'Copy' icon, it will open another pop-up window again and asks where to copy the method(here we can specify a Z method name) in the
To' section.
On pressing continue, the Z method will be created and stored under the speified name. We can then activate the method.
By this way, we can easily make the customized version of a standard SAP object.
‎2007 Oct 17 1:43 PM
Hello Karthick,
inside the class I copy the methods (in 4.6C, but not only) like:
1. set cursor on choosen method, which you want to copy
2. push button 'Copy', just over the description
3. set cursor in the wish line in the methods listing
4. push button 'Paste', just over the description
5. the copied method (with pasrameters and exceptions)
has the name 'COPY_1_OF_your_copied_meth',
which you can afterwards change.Greetings,
Peter