Dear All,
I'm trying to use PIVOT in my query. But I'm getting an Error while executing the query in SAP B1 HANA Studio.
Request all to help me out.
Please find the below query :-
Select
"City","01","02","03","04"
From
(
Select T0."WhsCode",T0."City",0 "Qty" From "SBODEMOIN"."OWHS" T0
)As X
Pivot
(
Sum("Qty") For "WhsCode"
In ("01","02","03","04")
)As PivotTable;
Here warehouse code has to come dynamically. (Now i just hardcoded).