How is CRM order status modelling in HANA studio

All system status are queried from TJ02 table:

clipboard1

The description of status code is from TJ02T table:

clipboard2

clipboard3

And there is a view which joins the two views above in order to return both system status code and system status description.

clipboard4

Data preview looks like below:

clipboard5

However this SystemStatusValueHelp view is only used in one OData service below:

clipboard6

And there is no model for user status.

clipboard7

For Opportunity status related HANA model, since in the report, it will show the total number of Opportunities with the following status:
won
lost
hasError
Open
InProcess
Its modelling detail:

clipboard8

the logic for isWon:

clipboard9

clipboard10

Final data preview result below:

clipboard11

From here we get the conclusion that the cardinality of Opportunity UUID : SystemStatus code is: 1:N.
For example, an Opportunity can have the system status “hasError” and “In process” for the same time, as also introduced in this picture below.

clipboard12

要获取更多Jerry的原创文章,请关注公众号"汪子熙":