‎2007 Mar 12 3:31 PM
Hello All,
Can I change delivered ABAP class "CL_HRMSS_RECRUITING_WF" (add functionality to a method "CREATENBOBJECT"). Also can I change a delivered function module "HRWPC_EREC_CREATE_EREC_OBJECT" .
My original problem.
I am trying to pass the my object (with few attributes read from tables) using CREATENBOBJECT as a parameter to the function module "HRWPC_EREC_CREATE_EREC_OBJECT" (CREATENBOBJECT calls HRWPC_EREC_CREATE_EREC_OBJECT).
The "CREATENBOBJECT" is called as an activity in the workflow (personnel requisition workflow).
Kind regards.
Srinivas
‎2007 Mar 12 3:35 PM
Hi Srinivas,
In general it is NOT recommended to make changes to an existing SAP object; this is for the simple reason that your changes will be wiped out every time SAP releases a new version of this object. No company that runs SAP and has decent policies in place will allow you to modify standard objects - or ONLY on an exception basis if there really is no other way.
Can't you make a copy of the object(s) in the customer name space (beginning with Y or Z)?
Guenther
‎2007 Mar 12 3:35 PM
Hi Srinivas,
In general it is NOT recommended to make changes to an existing SAP object; this is for the simple reason that your changes will be wiped out every time SAP releases a new version of this object. No company that runs SAP and has decent policies in place will allow you to modify standard objects - or ONLY on an exception basis if there really is no other way.
Can't you make a copy of the object(s) in the customer name space (beginning with Y or Z)?
Guenther
‎2007 Mar 12 3:40 PM
Hi ,
Check if there is place where SAP had provided the customer to make changes. Something like exits......
Sudha
‎2007 Mar 12 3:47 PM
Thanks for your HELPFUL answers. Can you also tell me how/where should I go, to make copies of "CL_HRMSS_RECRUITING_WF" and the function module "HRWPC_EREC_CREATE_EREC_OBJECT".
Also if I am renaming with Z<my-class-name>, and using the method "CREATENBOBJECT" in my renamed class, will there be a problem with naming conflicts as "CL_HRMSS_RECRUITING_WF" already has the same method "CREATENBOBJECT".
Kind Regards
Srinivas.
‎2007 Apr 20 6:12 AM
Hi Srinivas,
Using SE24 to copy CL_HRMSS_RECRUITING_WF to say Z_CL_HRMSS_RECRUITING_WF
Copy Class:
Path:
1> Goto SE24
2> Type in CL_HRMSS_RECRUITING_WF in screen field Object Type
Menu path
3> Object Type/More Functions/Copy. Here you mention your class name (ex: Z_CL_HRMSS_RECRUITING_WF)
Copy FM:
Path
1> SE37
2> Type in HRWPC_EREC_CREATE_EREC_OBJECT in screen field 'Function Module'
Menu Path
3> Goto Function Module/ Other Functions /Copy. TYpe in your FM say Z_HRWPC_EREC_CREATE_EREC_OBJECT
I hope this solves your problem of copying. Herewith make your changes with these new objects.
Please reward points if it has satisfied your requirement.
AKJ