Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

error message to spool

Former Member
0 Likes
2,532

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.

4 REPLIES 4
Read only

Former Member
0 Likes
948

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

Read only

sreeramkumar_madisetty
Active Contributor
0 Likes
948

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

Read only

Former Member
0 Likes
948

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...

Read only

Former Member
0 Likes
948

Capture all the error messages and then use write.

BR,

Ravi