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

message raising in functional module

Former Member
0 Likes
420

hai,

how to raise the message using in the functional module.?

plz give the small coding and what are the procedure ?

2 REPLIES 2
Read only

Former Member
0 Likes
356

its similar to program.

for exmaple a example of error message.

if input gt '10'.

message e063(vl) with '10'.

endif.

thanks

anya

Read only

Former Member
0 Likes
356

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.