But the quote " does not start a comment in SQL Script.
Now I see another problem: You are selecting a single value and not a table. In this case you cannot use the construct: <table> = select ...
Please try the following
select count(*) into ev_count from "/BI0/PCOMP_CODE" where currency = :lv_curr and mandt = :lv_mandt ;
Regards, Thomas