marianfoo / ztoad

ABAP Open SQL Editor
GNU General Public License v3.0
44 stars 15 forks source link

No component exists with the name "CASE". #7

Open COOPER-DENG opened 3 months ago

COOPER-DENG commented 3 months ago

HI,

When I execute the following SQL statement, the error occurs "No component exists with the name "CASE""

`SELECT

SUM( CASE ekbe~shkzg WHEN 'S' THEN ekbe~menge ELSE ekbe~menge * -1 END ) AS menge_1 , "ekbe~shkzg, "借贷 ekbe~lfgja, "参考凭证年度 ekbe~lfbnr, "参考凭证号 ekbe~lfpos "参考凭证项目号 FROM ekbe WHERE ( ekbe~vgabe = '2' OR ekbe~vgabe = 'P' ) AND ekbe~ebeln = '4500039948' "gt_out-ebeln GROUP BY lfgja, lfbnr, lfpos`

1 2

BEST WISHS, Cooper