2007 May 09 6:10 PM
Hi,
I have a custom RFC function module and it has currency, quantity data types fields with other fields. If I pass a invalid value to these data types, (from SE37) a core dump occurs. The core dump occurs in such a way that, it happens even before it starts executing the first statement of my RFC.
My question, is there a way to check if the value supplied for the data type is valid or not , if not exit gracefully with error message to the RETURN table or raise execption.
Any thoughts? Please let me know. Thanks,
Regards,
Sundar.
Hi,
I have a custom RFC function module and it has currency, quantity data types fields with other fields. If I pass a invalid value to these data types, (from SE37) a core dump occurs. The core dump occurs in such a way that, it happens even before it starts executing the first statement of my RFC.
My question, is there a way to check if the value supplied for the data type is valid or not , if not exit gracefully with error message to the RETURN table or raise execption.
Any thoughts? Please let me know. Thanks,
Regards,
Sundar.
2007 May 09 6:14 PM
2007 Nov 27 4:19 PM
Rich,
Your solution is ok for many class errors, but i found an exception to this, the error CX_SY_CONVERSION_NO_NUMBER.
<u>In this escenario:</u>
data a type i.
CATCH SYSTEM-EXCEPTIONS: CONVT_NO_NUMBER = 5.
IF a = 'adsdsd'.
a = 'adsdsd'.
ENDIF.
ENDCATCH.
Here, you have a dump uncatchable. I dont found any solution for this, except check before the data type.
I will like a function with input string and domain, which validates this data. May be another inputs like check_for_initial_values or range limits.
I thinks is very useful.
Regards
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |