SAP Bo has generated a SQL query for a report which is not working in Oracle SQL Developer. I am getting 'missing expression' error. Below is the code, please help me finding out the error here. and also help me to understand the role of @PROMPT here.
SELECT
CASE
WHEN MATERIAL IN @PROMPT('Enter materials which may not be shipped to SIMS:','C',,Multi,Free,Persistent) OR material IN @PROMPT'Enter materials which may not be shipped to SIMS(2):','C',,Multi,Free,Persistent)
THEN 'Not SIMS'
WHEN
material IN @PROMPT('Enter materials which can be shipped to SIMS:','C',,Multi,Free,Persistent)
THEN 'SIMS'
END
FROM
Materials;
Expecting query should work as the same is working in SAP BO.