Hi Richa,
please check this table, you will get
your error log
KALF Costing Run: Error Log Header
But, i think you have to do it in a different way,
For storing your error message in your report, create a variable of type
string, and use any BAPI, or any function module to raed the error
and then, show it,