Skip to Content
Author's profile photo Ulrike Liebherr

Part II: Custom Business Object – Logic (Bonus Plan)

So far, we created a custom business object “Bonus Plan” with a simple data structure and application UI. This business object is there to save employee specific rules for bonus entitlement.

Task: Enhance the Custom Business Object’s application with business logic

Example: Bonus plan gets an ID automatically and is checked for consistent data.


 

This blog based tutorial was replaced by the following sap.com tutorial

Custom Business Object – Logic (Bonus Plan)

Please start this or choose another from

SAP S/4HANA Extensibility Tutorial

Assigned Tags

      9 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Mohamed Gharbi
      Mohamed Gharbi

      Hi Ulrike,

      Thanks for this serie of Blogs!

      When I go to Custom Business Object and go to Fields  and Logic I cannot find any section with "Determination Logic". 

      Am I missing anything?

      Thanks

      Author's profile photo Ulrike Liebherr
      Ulrike Liebherr
      Blog Post Author

       

      Hi Mohamed,

      for logic implementations it's essential that the custom business object is in status "Published" and a possible draft version (for a change after last publish) was already published again as well.

      As you do not get the Determination and Validation section at all, I assume you missed to publish the very first version of your custom business object.

      Regards

      Ulrike

      Author's profile photo Mohamed Gharbi
      Mohamed Gharbi

      Hi Ulrike,

      Thanks for you reply!

      The Custom Business Object was already published! I guess you are referring to this:

      Any other tip?

       

      Thank you!

      Author's profile photo Ulrike Liebherr
      Ulrike Liebherr
      Blog Post Author

      Hi Mohamed,

      you have to check "Determination and Validation" (below "Name in Plural"). To be able to do this, you have to "Edit Draft" before. Afterwards you have to publish again and then you will finally be able to do implementations.
      I am very sorry, that this essential step seems to have gone lost in the blog.

      I will update it next.

      Regards

      Ulrike

      Author's profile photo Mohamed Gharbi
      Mohamed Gharbi

      Hi Ulrike!

      How is it possible that i could not see it!!!! 🙂

      OK! Now it works!

      Thanks for all!

      Author's profile photo Ulrike Liebherr
      Ulrike Liebherr
      Blog Post Author

       

      Hi Mohamed,

      you relied on the blog and that didn't mention it 😉

      Now it does.

      Regards

      Ulrike

       

      Author's profile photo Arun Nair
      Arun Nair

      Hi Ulrike,

      I keep getting the error "Class YY9_DAMK_B4C9A49833AF1930BEA8A could not be saved" when I try to save the Implementation. Could you please let me know when does this error occur?

      Is it related to the user authorization? OR any other syntax error? I can although see that the class mentioned in the error message is already created at the backend.

      Regards

      Arun.

      Author's profile photo Ulrike Liebherr
      Ulrike Liebherr
      Blog Post Author

       

      Hi Arun,

      please excuse the late reply, I was sick last week.

      Sorry, but I cannot provide support on the shown topics, please open a ticket to BC-SRV-APS-EXT-BO in case your issue still persists. As the message is quite generic I fear it can have many reasons. I would exclude a syntax error as this should be marked in the editor already.

      Good luck!

      Regards

      Ulrike

      Author's profile photo Former Member
      Former Member

      Great blog and examples here.  Can you recommend the best guide for covering the scripting language used here?