Hello...
ORA-06550: line 13, column 40: PLS-00382: expression is of wrong type ORA-06550: line 12, column 38: PLS-00382: expression is of wrong type
..............................................................
DECLARE
aurunid number;
begin
for aurunid in (select urunid
from
PURCHASE_ORDER_DETAILS
where
po_number=:P77_PO_NUMBER_1 )
LOOP
UPDATE teklif_urun a
SET PO_NUMBER = ( SELECT PO_NUMBER
FROM PURCHASE_ORDER_DETAILS b
WHERE b.urunid = a.urunid and b.poid=1 )
where a.po_number is null and a.urunid=aurunid ;
END LOOP;
END;