Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Changing delivered class/function module.

Former Member
0 Likes
593

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
569

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

4 REPLIES 4
Read only

Former Member
0 Likes
570

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

Read only

Former Member
0 Likes
569

Hi ,

Check if there is place where SAP had provided the customer to make changes. Something like exits......

Sudha

Read only

0 Likes
569

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.

Read only

Former Member
0 Likes
569

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