Skip to Content
0

Copy custom business object by coding

Apr 19, 2017 at 04:52 AM

83

avatar image

Hi Experts,

Could you please advice how to develop copy or cloning functionality

of custom business object ? (by coding or other technique ?)

All I need is similar to copy button of any standard business object.

The idea is I don't want to create new instance of custom business object and copy the value filed by field.

Thank in advance.

Krit R.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Horst Schaude
Apr 20, 2017 at 11:46 AM
0

Hello Krit,

I don't get you:

  • Do you want to copy a SAP BO to a Custom BO (CBO)?
  • Do you want to copy the data of an instance of a SAP to a CBO?
  • Do you want to copy the instance of a SAP BO to somewhere else?

Sorry,
Horst

Show 2 Share
10 |10000 characters needed characters left characters exceeded

Dear Horst,

My objective is to create copy button. Similar to creation with reference of sales order.

I now have a custom business object with a lot of fields. Each instance contain much informations.

Every time that the instance of custom business object get created. End-users have to re-enter value to all those fields which is they don't want to.


All I need is to copy all values from existing instance to the newly created instance of CBO.


Best Regards,

Krit R.

0

Hello Krit,

Simply define an action at your CBO and - in the ABSL - you

  1. Create a new instance
  2. Copy the data from the current instance to the new instance

HTH,
. Horst

0