2008 May 30 12:28 PM
Hello All,
DATA: regex TYPE REF TO cl_abap_regex,
moff TYPE i,
mlen TYPE i,
text TYPE string.
CREATE OBJECT regex
EXPORTING
pattern = 'f'
simple_regex = 'X'.cause an runtime error if no input field is populated.
Some times it is possible to keep the fields empty.
But anyway the programm should not dump.
How can I prevent that ?
Regards
sas
2008 May 30 12:35 PM
2008 May 30 12:35 PM
2008 May 30 12:44 PM
You are right this shouldn't dump, what does the dump say?
Michael
2008 May 30 12:53 PM
For the currect statement, only character-type fields and objects of the
type "CL_ABAP_REGEX" are allowed as search pattern. However, in this
particular cas, an object of the type "㽰" was transferred.
This error could not be detected during the syntax check, because the
affected argument is typed with ANY.
2008 May 30 1:37 PM
Can you post more details of the dump, e.g exactly at what statement it dumped and what the values of the involved variables are?
Thanks,
Michael