How to "catch" ERROR_MESSAGE
i´ve written a FM which also calls SAP FM´s.
Somewhere there is this statement:
message w207(m7) with ymcha-charg ymcha-matnr.
This line throws an error... Because the FM is used in a job, this job aborts.
What can i do? I dont want to change the sap code?