Application Development 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: 

Copy Standard Business Object

Former Member
0 Kudos


Hi Experts,

     I have a requirement where I have to copy an entire standard Business Object as a Custom one.

Is there a simple way of doing this other than the manual process of copying individual elements??

7 REPLIES 7

0 Kudos

Hello Arpitha,

Is the copy intended for the same system or a different system ( which does not have the source BO ) ? If it is the same system , Would you consider inheriting from the source business object and creating a sub business object  rather than doing a copy ?

Further , what is the transaction you use to create/maintain BOs ?

Regards,

Indranil.

Former Member
0 Kudos

Hi Indranil,

Its for the same system. The problem is  we do not want to enhance the standard BO, hence we want to create a custom BO with all the properties in the Standard BO, so that we can modify it according to our requirement.

And creating a sub business object would still reuire us to enhance the BO.

That would be the last available option.

We have enhancement pack 7. So enhancement workbench Tcode is the same: BOPF_EWB

0 Kudos

Hello Arpita,

I did not advise Enhancing the BO , I advised to Inherit the BO. BO Inheritance conceptually is same as class inheritance.

Regards,

Indranil.

0 Kudos

Hi Indranil,

Can you ellaborate as to how we can inherit a standard BO in a custom BO??

I am not aware of this concept.

Thank you for replying back promptly.

0 Kudos

Hi Arpitha and Indranil,

the BOPF inheritance feature is not release for usage outside SAP and also not offered with the BOPF Enhancement Workbench (aka BO Builder). In addition it's not meant to be used as enhancement technique but to structuring your BOs and doing reuse of common business logic.

Therefore doing a manual copy of the standard BO is the only way to go.

Best regards,

Carsten


0 Kudos

Hello Arpitha,

I understand that your use case is not an enhancement of the existing BO. Rather you want to have a separate standalone BO which you want to create by using an existing BO as a base. Inheritance would have been a nice way to do it if available. The tcode BOPF_EWB supports only BO enhancements and does not let you create a new BO. Do you have access to the tcode BOBX ?

Regards,

Indranil.

0 Kudos

Hi Carsten,

Thank you for the reply. I was afraid that was the only way to go.

But was hopeful about any other solution.