Application Development 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: 

error message to spool

Former Member
0 Kudos

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

former_member181962
Active Contributor
0 Kudos

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

sreeramkumar_madisetty
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Capture all the error messages and then use write.

BR,

Ravi