Quantcast
Channel: SCN : Popular Discussions - SAP Cloud Applications Studio
Viewing all articles
Browse latest Browse all 1333

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

$
0
0

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

Chris


Viewing all articles
Browse latest Browse all 1333

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>