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

Function Module errors

Former Member
0 Likes
347

We have a simple Z function module that reads a file from the database server and updates a Z table. This function module is remote enabled as it's initiated by our EDI systems. I'd like to add code to the FM to throw an error and record an error if it can't read the file so our BASIS people can review within SAP. Not sure how to do this.

1 REPLY 1
Read only

Azeemquadri
Contributor
0 Likes
312

You can raise a message in FM code.

Define exceptions in exception tab and raise a message.

Check FM like read_text etc...    

Save a short or long text for the exception.