2007 Dec 12 3:46 PM
I like to know what transaction should i use to copy a SAP class and modify it. Also please let me know how dangerous it is to do this work.
Details: The instructions that i got is listed below. I have very minimal ABAP knowledge. Please help.
First I need to copy the SAP class /SAPPSSRM/CL_FY_NUMBER to Z* class.
In the following code LV_FISCAL_YEAR+2(2) is blank, move the <FY> to this value, add the code after the line 84.
Is this client dependent? I mean we have two client 800 and 830; I think it does not make any difference in any client right?
Message was edited by:
Les york
2007 Dec 12 3:47 PM
You can use the SE24 to copy the class and than change appropriate mehtod.
Regards,
Naimesh Patel
You can use the SE24 to copy the class and than change appropriate mehtod.
Regards,
Naimesh Patel
2007 Dec 12 3:47 PM
You can use the SE24 to copy the class and than change appropriate mehtod.
Regards,
Naimesh Patel
2007 Dec 12 3:53 PM
2007 Dec 12 3:56 PM
You can see the button as 7th in the application toolbar or you can use the Ctrl + F5 key combination to copy it.
Regards,
Naimesh Patel
2007 Dec 12 4:03 PM
Naimesh,
Excellent! Now it is asking me for package. As I am doing in SRM sandbox I will choose local object right?
2007 Dec 12 4:09 PM
I copied the SAP class now where and how to proceed to modify the code? Please help Mr. Patel.
2007 Dec 12 4:09 PM
Local object yes.
I realise you're not an abaper, but if you got one in, he could simply create a subclass of /SAPPSSRM/CL_FY_NUMBER (assuming it's not been made final) and override only the method that needs changing. ( if it is final, then you have to use composition, but again, that's pretty straight forward ). The point is, that copy a class rarely, if ever, needs to be done. That's one of the major points about using classes. If you use subclassing or composition, only small amounts of code need to be copied - which means if SAP change other bits in a new release, you automatically get them, thereby reducing the risk of an upgrade mucking up your cloned class.
I'd be extremely nervous about having any code that had been implemented by a non-developer, being put into productive use.
matt
2007 Dec 12 4:10 PM
> Also please let me know how dangerous it is to do this work.
Extremely. Don't do it. Get an ABAPper in. If you screw up your database, then you'll have to pay SAP a lot of money to put it right. At least with an experienced programmer you minimise the risk of this happening.
I'd liken it to allowing a novice to service the brakes on your car.
matt
2007 Dec 12 4:18 PM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |