Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to Save a created BO Instance Without Saving The Main Instance?

Hi everyone,

I have a custom BO, called TimeSheet that holds an EmployeeID and a MonthYear date.

In the UI, I have a "PreviousMonth" button and a "PreviousMonth" BO Action where I create a new instance of the BO with another date. Up until recently, just after the PreviousMonth button was clicked I just saved and closed the window and both instances were in the list when I was back in the OWL. But now, there are cases when I don't want to save the first instance because it is already in the database, but I always want to save the previousMonth instance. If I save and close, it creates a duplicated timesheet and a new one for the previous month. If I just close without saving, the previoiusmonth instance is not created.

I am missing a Save method to force save the previousmonth instance and then close without saving.

How can I do to solve this ?

Best Regards


Former Member

Hi Christophe,

       You can write this.Delete() at the end of your BO Action.

Best Regards


0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question