function CF_barcodeFormula return char is cursor barcodes(art char) is select barcode from Supermag.smStoreUnits where article = Art; bar_list varchar2(10000); begin bar_list := ''; for bar in barcodes(:article) loop bar_list := bar_list || chr(10) || ' - ' || bar.Barcode; end loop; bar_list := ltrim( bar_list, chr(10) ); return ( bar_list ); /*exception when others then return '';*/ end;