Hi HANA Experts,
I have a requirement to display BOM Hierarchy in HANA(Scripted/Graphical View or CDS view).
BOM Hierarchy is with levels(transaction: CS11H). The BOM Level field is STUFE when i see it from CS11H transaction.
The same field is not stored in any of the BOM related tables(MAST,STKO and STPO).
To try creating the BOM hierarchy(Scripted/Graphical View) we must know the highest BOM Level but it is not fixed and keeps varying.
For Displaying Standard Hierarchy in SAP we have tables(SETHEADER,SETNODE and SETLEAF) where i see
many posts where people have used them to get Cost Center/Profit Center hierarchy by joining with CSKS/CSKT
as the SETNODE table has SETCLASS field with values (Cost Center, Profit Center, Cost Element, Account Group)
But not pretty sure if we can join the above mentioned tables to get the BOM Hierarhy as there is no value for BOM
in the SETCLASS field of SETNODE table.
Function Module CS_BOM_EXPL_MAT_V2_HANA can be used for BOM explosion but the same is also not yet released by SAP
and we cannot call BAPI or FM in CDS.Looping not possible in CDS view as it is a single final select query with join on tables( max 50).
Class: CL_CS_BOM_AMDP, method: MAT_BOM_EXPLODE_ATTRIBUTES can be used to explode the BOM levels by calling in it in a AMDP
which in turn will be called by a CDS table function.But the problem is the importing parameters of method: MAT_BOM_EXPLODE_ATTRIBUTES
on how to populate(to do the same we will have to write the whole code that is written in method MAT_BOM_EXPLODE_ATTRIBUTES)
which is tedious and redundant.
Let me know if any one have come across such kind of requirement and is there any way of achieving it?
Thanks in Advance.
Regards
Murali.M