‎2009 Feb 12 2:42 PM
Hello All,
Iam validating data and if validation fails im storing that record in a temporary table .Now I need to write all this error messages to spool.
may I know the function module to write error messages to spool.
Plz advise
thanks.
‎2009 Feb 12 2:49 PM
My understanding is that the spool is created for the background job. If you are running it in the background, then you can simply do
loop at itab_error.
write itab_error.
endloop.
‎2009 Feb 12 2:49 PM
My understanding is that the spool is created for the background job. If you are running it in the background, then you can simply do
loop at itab_error.
write itab_error.
endloop.
‎2009 Feb 12 2:50 PM
Data:Begin of itab occurs 0,
mtype(255),
end of itab.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
INTO Itab-mtext.
Append itab.
The write itab to spool.
USe :FM:JIT03_WRITE_TEXT_TO_SPOOL
This will resolve the issue.
Regards,
Gurpreet
‎2009 Feb 12 3:09 PM
Thanks for your replies guyz, the one thing forgot to mention is , this is in CRM.
‎2009 Feb 12 3:12 PM
Hi
in this case you can create an internal table for populating the error messages .
At the end you can use these function modules to send it to spool.
RSPO_OPEN_SPOOLREQUEST
RSPO_WRITE_SPOOLREQUEST
RSPO_CLOSE_SPOOLREQUEST
hope this will resolveyour problem.
Regards
hareesh.
‎2009 Feb 13 10:20 AM