Skip to Content
Dec 18, 2021 at 03:04 PM

ABAP RESTful programming copy action


Hi Experts,

I am building a RAP based SAP Fiori Elements application. I am on S/4 HANA 2020 on premise release, FPS02.

I have a requirement to create an action button called 'Create as Copy'. The user will select some existing entry and hit this Create as Copy button to create a copy of the instance. The copy should be created in edit mode, so that before getting saved, user has an option to change few of the copied attributes. I was able to achieve the copy functionality, however, the copied entry gets saved to the DB directly with a new primary key, and I am landed to object page for the newly created entry in display mode. So user has to now manually click Edit and do an update operation if he wants to same change values in the newly created entry. Is there any way we can open this object page in edit mode directly?


Aman Garg