02-16-2007 9:09 AM
Hi All,
in my report i need to capture errors if any and i need to send the error messages to spool . can any one guide me how to do this one.Please Help.
Thanks&Regards.
Srikanth.V.
02-16-2007 9:15 AM
HI ramu,
On the error condition, before you issue the error message, use w write statement with the error description.
When you run this program in background, the write statements will be written to spool.
if <Condition>.
write:/ 'Error Occured'.
message e001(zz) With 'Error Occured'.
endif.
REgards,
Ravi
02-16-2007 9:18 AM
Hi
by using Write statements after condition u can send the error messages to the spool.
PERFORM get_print_parameters USING spool_name
thru this FM also u can achieve the same.
Regards,
kumar
02-16-2007 9:21 AM
for ur purpose u need to capture all the messages and using WRITE statement u can display the error message...now, run this report in background and all the error messages are captured in the spool...
02-16-2007 9:39 AM