The
error message: The INTO/APPENDING clause must be at the end of the SELECT. See the long text."
Character String as Message
appears from this statement:
SELECT distinct
VGBEL ,
count( VBELN ) as cnt_VBELN ,
max( NETWR ) as sum1
FROM
vbak
where
VGBEL is not null and VGBEL <> '' and
VGBEL like '002%' and
AUDAT >= '20221201' and
VBELN like '001%'
group by VGBEL
having count( VBELN ) > 1
.
BR Tino