Hello there! I will not bother you with some enticing introduction anymore and get straight to the point. If you are:
(a) Directed here because of my previous blog post SAP PaPM Cloud: Uploading Input Data Efficiently or;
(b) Redirected here because of a quick Google search result or what not...
Either way, you are curious on how a User could use a HANA Table with NULL values upon data import and consume this model in SAP Profitability and Performance Management Cloud (SAP PaPM Cloud). Then, I got you covered with this blog post.
NOTE: Since I will not be explaining every detail pertaining to SAP PaPM Cloud and SAP HANA DB Explorer, I suggest to read through my previous blogpost before proceeding further.
As a backstory: A Modeler was able to successfully consume an SAP HANA Table with the use of SAP PaPM Cloud's Connection Management and Model Table HANA function.
The SAP HANA Table as viewed in SAP HANA Database Explorer is shown below, notice that there are NULL values on each field:
Figure 1.
Connection and Model Table HANA function configured
Figure 2.
However, upon trying to project or further enrich the data from the Model Table HANA using e.g., a View function. The execution of the view function returns an error: Processing messages due to NULL values which are present in the model and shown accordingly in the message logs:
Figure 3.
Therefore, lines with NULL values will be disregarded in the Show screen results:
Figure 4.
Since SAP PaPM Cloud belongs to the group of SAP Finance applications and NULL values are not allowed in the application data, just like in S/4HANA. Mainly due to NULL values are not auditable and evaluable, in such:
IFNULL(COST_AMOUNT,0) AS COST_AMOUNT
CASE WHEN IFNULL(PROFIT_CENTER) AND COMPANY_CODE = '0001' THEN 'PC1000'
WHEN IFNULL(PROFIT_CENTER) AND COMPANY_CODE = '0002' THEN 'PC2000' END AS PROFIT_CENTER
Let's try the option A and use the HANA table with NULL values as an example in Figure 1 above.
CREATE VIEW "SAP_PAPM_ADMIN"."INITIALIZED_VIEW" AS SELECT
IFNULL(CH_CHAR,'') AS CH_CHAR,
IFNULL(CH_NUMC,'') AS CH_NUMC,
IFNULL(KF_DEC,0) AS KF_DEC,
IFNULL(KF_CURR,0) AS KF_CURR,
IFNULL(UN_CUKY,'') AS UN_CUKY,
IFNULL(KF_QUAN,0) AS KF_QUAN,
IFNULL(UN_UNIT,'') AS UN_UNIT
FROM "SAP_PAPM_ADMIN"."NULLTABLE";
After reading through my blog posts focusing on Uploading input data and consumption in SAP PaPM Cloud, I trust that these technical articles have helped you on your modeling journey. A like or share will be much appreciated! 😄
If you have questions, feedback or suggestions that will benefit the SAP community, don't hesitate to put them up in the comments section.
Thank you for your time.
Cheers!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
5 | |
4 | |
3 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 |