on 06-26-2019 3:03 PM
Dear All,
I would appreciate if anyone of you helps on this issue. I wanted to create a new KPI pervasive analysis in SAP Hana for an open quotation based on the query belowI already created, but I couldn't go further.
++++++
SELECT T0."DocNum" AS "Belegnummer", T0."DocDate" AS "Buchungsdatum", T0."DocDueDate" AS "Fälligkeitsdatum", T0."DocStatus", T0."CardCode" FROM OQUT T0 INNER JOIN OUSR T1 ON T0."UserSign" = T1."USERID" WHERE T0."DocStatus" = 'O' AND T1."USERID" = [%USER] AND T0."DocDate" >= [%0] AND T0."DocDate" <= [%1] ORDER BY T0."DocDueDate", T0."DocNum"
++++
if anyone can help based on the above query or any other idea, would be really good.
Thanks in advance
Biniam
You can have parameter field in your dashboard and use graph with X axis as parameter field and Y axis as data field
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Abdul Mannan,
I thank you for the info. As you can see in the above Query, I put the [%USER] just to check if it works. The query runs but in KPI, I couldn't be able to see the user option. But originally I wanted to know if this ( JOIN OUSR T1 ON T0."UserSign" = T1."USERID" WHERE T1."USERID" = $[USER] part of the query is correct and can be applied in the KPI analytics. That was the main problem.
Therefore, can anyone suggest what is wrong with the following query?
SELECT T0."DocNum" AS "Belegnummer", T0."DocDate" AS "Buchungsdatum", T0."DocDueDate" AS "Fälligkeitsdatum", T0."DocStatus", T0."CardCode" FROM OQUT T0 INNER JOIN OUSR T1 ON T0."UserSign" = T1."USERID" WHERE T0."DocStatus" = 'O' AND T1."USERID" = $[USER] AND T0."DocDate" >= [%0] AND T0."DocDate" <= [%1] ORDER BY T0."DocDueDate", T0."DocNum"
I wanted to have the KPI Analytic report displayed as per current user when they log on in SAP Hana.
Hope you understood my question.
Thank you once again
Best regards
Biniam
Dear Abdul Mannan,
I thank you again for the info. I tried with what you suggested as below:
SELECT T0."DocNum", T0."DocDate", T0."CardCode", T0."DocTotal", T0."DocStatus", T0."UserSign", T1."USER_CODE", T1."U_NAME" FROM OQUT,"TESTKUNDE"."ORDR" T0 INNER JOIN OUSR T1 ON T0."UserSign" = T1."USERID" WHERE T0."DocStatus" = 'O'; SELECT CURRENT_USER FROM DUMMY;
But I can not call up the query when I tried to create a new KPI. It says that the source is not correct. Do you have any idea?
Thanks in advance
Best regards
Biniam
HI,
If your query is showing results in query generator and not working in KPI then i believe dynamic parameters are not available yet for dashboards.
How ever you can develop a dashboard for all users with figures on x axis and users on Y axis so user can know info about his relevant figure.
Dear Abdul Mannan,
I have tried as per your suggestions. I used the following query also:
SELECT T0."DocNum", T0."DocDate", T0."CardCode", T0."DocTotal", T0."DocStatus", T0."UserSign", T1."USER_CODE", T1."U_NAME" FROM OQUT,"TESTKUNDE"."ORDR" T0 INNER JOIN OUSR T1 ON T0."UserSign" = T1."USERID" WHERE T0."DocStatus" = 'O'; SELECT T0.U_NAME FROM OUSR T0 WHERE T0.INTERNAL_K = $[USER];
This doesn't work if we try to display the query from Query manager, but it displays properly from Tools --> Query--> User--> Query name.
However i was unable to create a new KPI based on this query
Any ideas?
thanks as always
Best regards
Biniam
User | Count |
---|---|
110 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.