08-26-2014 1:13 PM
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??
08-26-2014 2:00 PM
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.
08-28-2014 6:15 AM
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
08-28-2014 6:27 AM
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.
08-28-2014 6:33 AM
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.
08-28-2014 9:27 AM
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
08-28-2014 9:50 AM
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.
08-28-2014 10:13 AM
Hi Carsten,
Thank you for the reply. I was afraid that was the only way to go.
But was hopeful about any other solution.