on 05-23-2005 5:38 AM
dear all,
I need to recognize user ENTER character in textarea input field (hex '0D' & '0A') from get_form_field result (in ABAP code). I have tried to convert it to hex, but always get nothing.
Please help.
Hi Rita,
just like other characters , enter is a special character that u can use in ABAP as "CL_ABAP_CHAR_UTILITIES=>CR_LF" .
Hope it will help u.
Regards,
Ankur
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi raja,
I think that poster is talking about the ENTER character.
if this is the case,then here is how to do it.
......................
<textarea name = "area1" ...>
</textrarea>
OnInputProcessing
data str type string.
str = request->get_form_field( name = 'area1') .
search str for cl_abap_char_utilities=>cr_lf .
..........
Here SY_FDPOS will contain the position no. where enter character has encountered.
The same approach can be used with <HTMLB:TEXTEDIT> element also.
Hope it is clear now.
Regards,
Ankur
dear Raja & Ankur,
thanks for your responses, it's really help.
I have solved my problem by using cl_abap_char_utilities=>cr_lf.
Regards,
Rita.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Question is not clear. Are you saying that you are not able to read the user entered value in the input field using get_form_field? You also talked about hex, do you mean that you are not able to read the user entered hex values from the form field?
Regards
Raja
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.