If a SELECT
returns multiple rows, then you need to use FOR SELECT ... DO ...
Change the body of your stored procedure to:
FOR select
sum(II.localamountwithoutvat), ib_decodedate_month(VatDate$DATE),
ib_decodedate_month(VatDate$DATE)
from IssuedInvoices II
group by
ib_decodedate_month(VatDate$DATE), ib_decodedate_month(VatDate$DATE)
into :obrat, :mesic, :rok
DO
suspend;