Checking for # in Text Edit
I have a textedit in a view. On submitting of the page, when no data is entered , and if I check the value of this variable in my controller, I get a # assigned as the value.
I understand that this is some hex value but not against which value it should be checked. I tried to check as
IF model->text_value EQ CL_ABAP_CHAR_UTILITIES=>NEWLINE.
Also,I checked it against CL_ABAP_CHAR_UTILITIES=>NEWLINE
but no use.
The model->text_value variable is of type CHAR255.
I need to enforce mandatory check for this field in my function module but since it has some hex value, even though user has not entered any value, the mandatory check fails in the function module.