‎2008 Feb 16 6:41 AM
hai,
how to raise the message using in the functional module.?
plz give the small coding and what are the procedure ?
‎2008 Feb 16 6:43 AM
its similar to program.
for exmaple a example of error message.
if input gt '10'.
message e063(vl) with '10'.
endif.
thanks
anya
‎2008 Feb 16 6:45 AM
Hi,
in the FM at the Exceptions tab u can maintain error messages like this,
NO_MORE_DATA
ERROR_PASSED_TO_MESS_HANDLER,
that u can FM source code like this,
case i_dsource.
when 'ZCASH_FLOW'.
when others.
if 1 = 2. message e009(r3). endif.
this is a typical log call. Please write every error message like this
log_write 'E' "message type
'R3' "message class
'009' "message number
i_dsource "message variable 1
' '. "message variable 2
raise error_passed_to_mess_handler. endcase.
if sy-subrc <> 0.
close cursor s_cursor.
raise no_more_data.
else.
reward points if useful.
seshu.