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

error message in FM

Former Member
0 Likes
888

hi ,

Can we define an error message in the F.M source code

eg : IF sy-subrc <> 0.

MESSAGE e000 WITH 'Unable to open file'.

ENDIF.

thxs,

vind.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
603

Hi Vind,

You defenitely can, but in my opinion, it's better you pass a parameter back, may be SY-SUBRC, based on which error messages are displayed,i.e, if 0 is passed, the operation is successful, and if 4, file open error and so on.

Regards

Anil Madhavan

3 REPLIES 3
Read only

Former Member
0 Likes
603

yes u can.

regards

prabhu

Read only

Former Member
0 Likes
604

Hi Vind,

You defenitely can, but in my opinion, it's better you pass a parameter back, may be SY-SUBRC, based on which error messages are displayed,i.e, if 0 is passed, the operation is successful, and if 4, file open error and so on.

Regards

Anil Madhavan

Read only

Former Member