Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3228

Problem with formatted search in SAP B1H

$
0
0

Hello everyone,

 

I'm having problems with the following query. I tested on HANA Studio and had no problems but when I try to use it on SAP B1 I get errors:

 

SELECT

  CASE WHEN LENGTH($[OIGE."U_BCS_AREA"]) < 3 THEN (SELECT DISTINCT E."FormatCode"

                                                    FROM

                                                    "OITM" R

                                                    INNER JOIN "OITB" W ON W."ItmsGrpCod" = R."ItmsGrpCod"

                                                    INNER JOIN "OACT" E ON  W."DecreasAc" = E."AcctCode" 

                                                    WHERE

                                                    R."ItemCode" = $[IGE1."ItemCode"])

                                             ELSE (SELECT Q."U_BCS_Cuenta" CTA

                                                    FROM

                                                    "@BCS_SALIDA_STOCK" Q

                                                    WHERE

                                                    Q."Code" = $[OIGE."U_BCS_AREA"]

                                                    AND Q."U_BCS_Interno" = 'N')

                                             END

FROM DUMMY;

 

 

Error message:

 

Captura.PNG

 

Any suggestion will be helpfull.


Regards

Juan Antonio Jimenez


Viewing all articles
Browse latest Browse all 3228

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>