A script-enabled browser is required for this page to function properly.

SRW.GETERR_RUN built-in function

This function returns an error message if Reports Builder detects an error while running the SRW.RUN_REPORT procedure.

Syntax


SRW.GETERR_RUN;

Example

Suppose you are sending parts of a report to users through e-mail. Also, suppose that if SRW.RUN_REPORT fails, you want to display a message that explains why it failed. Your PL/SQL could look like this:


BEGIN 
DECLARE TMP CHAR(100); 
begin 
srw.run_report('batch=yes report=send.rdf 
 destype=file desname=send.lis desformat=dflt'); 
 exception when srw.run_report_failure then 
 tmp := srw.geterr_run;
 srw.message(1000, tmp); 
end;
END; 

See also

About the Reports Builder built-in package (SRW)

SRW built-in package