2019 Aug 30 12:08 PM
Dear Expert,
I am try to list the hierarchy information thought SQL - HIERARCHY Function into SQL editor. But I have gotten empty outcome.
The SQL statement is
SELECT * FROM HIERARCHY ( SOURCE ( SELECT "NODEID" AS "NODE_ID", "PARENTID" AS "PARENT_ID", 0 AS "TYPE" FROM "SAPABAP1"."/B28/H*****" WHERE HIEID = '*****') );
The Log of Visualize Plan attached.
Hana system version: 2.00.034
Thanks advanced for your support
2020 Apr 27 12:10 PM
Hi, even I too faced the same problem. Is there any solution yet. Thanks advanced for your support
2020 Apr 27 12:55 PM
2023 Feb 07 3:39 PM
Hi,
This issue occurs because ROOT node must have 'null' in PARENT_ID.
You should add the following expression:
case when "PARENTID" = 0 then null else "PARENTID" end AS "PARENT_ID"