NO DATA FOUND
means that one of SELECT
statements didn't return anything because there's no row which satisfies WHERE
condition.
If code you wrote works for values you mentioned (15000000 / 2) but not for other values, then you'll have to handle it somehow:
one option is to make sure to provide only valid values for price and type_project
another is to review where
clauses; maybe you coded it wrong
the most obvious is to include the exception handling section; it begins with the exception
keyword and ... well, handles the error. For example:
declare
s1 ...
s2 ...
begin
select ... into ... from ... where ...; --> this is SELECT which might raise the error
<do stuff if SELECT succeeds>
-- this is what you need
exception
when no_data_found then
-- handle it; this is just an example, you should know what to do
s1 := 0;
s2 := 0;
end;
Also, make sure that P67_
items you use in that code are stored into session state. One way to do that is to submit the page (by pressing a button). Or, if it is a list of values, you can use those P67_
items as parent items in cascading list of values, or submit their values (you'll find both properties in LoV items' property palette).
If you wonder "how come 15000000 / 2 combination works?", it might be because you did put those values into session state previously, and it stays so during your session. If you log off and log in again, their values will be lost and - I presume - your code won't work any more, at least not until those values enter session state again.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…