Skip to Content
Author's profile photo Archana Shukla

Interactive Education for Business Rules on SAP HANA

Interactive education offers concise, simple and effective way to learn how-to build applications using SAP HANA. It is used to mean a little more than reading through guides and takes you to an interactive journey with a whole new experience of stimulating information for application.

SAP HANA has launched this new generation comprehensive learning technique named SHINE (SAP HANA Interactive Education) – for anyone who wants to use SAP HANA in their applications. As part of this interactive learning, a pre-delivered demo application(s) are available with SAP HANA toolkit – which makes your first SAP HANA XS application just few clicks away from having been running in your environment – giving you to an early look inside database tables, sequences, attribute view, analytical view, calculation view, decision tables, OData services, Server side java script (xsjs), SAPUI 5 …etc. and provides you an opportunity to learn about many more artifacts and functionalities of SAP HANA.

In SAP HANA SP07 release, SHINE is bundling a demo application, on Enterprise Procurement Model, as Delivery Unit (DU) – with complete database structures, sample data, developer information models and application logic. This demo is prepared such that you are engaged with all the major building blocks required to build an application in SAP HANA. In this application, Business Rules in SAP HANA – Decision Table has been used to formulate rules that calculate discount on the Orders based on Region and Sales.

To do so,  a table type is used to design decision table –> the generated column view of the decision table is consumed in scripted calculation view to get the discount based on regions –> finally the discounts from every region is aggregated into Sales Order. So for a given the company and region, the discount is been calculated for that region and applied to Sales Order which goes to the Invoice of the procurement model.

Decision table is built on table type such that single table can calculate discounts based on regions. The table type looks like –


Decision table is modeled on the input from table type as Conditions and DISCOUNT Parameter as Actions as –


The decision table is then consumed in Scripted Calculation View for all required Input


This Scripted Calculation view is used in Graphical Calculation view as Projection to get discount on various regions like EMEA, APJ etc –


Finally it is consumed in XS application as service and you can use the sales dashboard to see the statistics of discounts based on regions. Have a look at few snapshots here –




Decision table – embedded in SHINE demo application – is available with SAP HANA SP07 release. Enjoy running and exploring this demo application for hands-on experiment by harnessing your knowledge to get the real time feel of the power of SAP HANA and to brush up your information for better indulgence with the product. For more information on the demo application read through the SAP Help Guide > SAP HANA Interactive Education (SHINE). Write to me or open a support ticket on BC-DB-HDB-XS component if you have any queries on SHINE.

Assigned Tags

      You must be Logged on to comment or reply to a post.
      Author's profile photo Former Member
      Former Member

      How to apply the access authorization ?

      Author's profile photo Archana Shukla
      Archana Shukla
      Blog Post Author

      Hello Guohai,

      Go to SAP Help Portal ( and download the guide on SHINE (as SAP HANA Interactive Education (SHINE)). You will find all information on the mentioned SHINE demo application.



      Author's profile photo Denys van Kempen
      Denys van Kempen

      Thanks Archana, great blog.


      We have posted a video tutorial on how to get started with SHINE to the SAP HANA Academy. The video is included in my blog post What's new in SAP HANA SPS 7: SHINE - by the SAP HANA Academy