‎2009 Feb 26 9:03 AM
Hi,
I am using one standard function module in that function module one more function module is there in that 2nd function module we got an error but we need to stop displaying the error and need to display our custom message after comming out to our first function module in the main program
could any one please help in resolving this
‎2009 Feb 26 9:06 AM
Hi Sachin,
Try creating your own exception to create your own custom message.
Or else try using messages like this.
message 'Error' type 'I'.
Much Regards,
Amuktha.
‎2009 Feb 26 9:06 AM
Are you catching the exceptions form Main FM in your program if not it will throw hard core error.
You catch the exception and after calling FM check the sy-subrc and based on that you return custom message.
‎2009 Feb 26 9:06 AM
HI Sachin,
You can do one thing..
take that error from the exporting parameters of that function modle and try to modify or delete the same message and add your custom meesage to that table parameter .
Regards!
‎2009 Feb 26 10:11 AM
Hi
As u r using standard function module use Implicit enhancement. Before the 2nd funtion module u check for the condition ( either Database selection or Copying the 2nd FM as ZFM) and if its not true exit from the 2nd function module with your custome messege else let it go through the 2nd FM. Rlpy back if u need any other clarification.
Regards,
Kaushik.