on 02-14-2013 5:52 AM
Hi All,
We are currently running SAP EHP6 on our Development Server.
I have a question regarding the Text Edit Element in WEB Dynpro ABAP.
When the user entered the following text in Text Edit Element, All <enter keys> were converted to '#' character..
Sample Input:
Name: Fname Lastname
Gender: Male
TextEdit Converted Text
Name: Fname Lastname#Gender: Male
I already tried changing the wrapping option in the property and the compression attribute but still no luck.
i also tried changing the declaration from char1024 to string.
Text Edit is working fine in our Production Server(EHP5).
Any Ideas how to resolve this issue?
Thanks,
-Nathan
Hello Nathan,
If you have defined property of the attribute to be bound as of type STRING then change this to
STRING_TABLE and check.
Regards,
Sudhir Kothavale.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Nathan,
With STRING_TABLE rows from TextEdit are stored as table rows.
A line break is always stored as a line feed in a STRING (CL_ABAP_CHAR_UTILITIES=>NEWLINE,
ASCII decimal 10).
The Web Dynpro framework carries out the conversion for the client platform.
About EHP6 I dont have any idea why it is not working...if i get, i will let you know.
Regards,
Sudhir Kothavale.
Hi Sudhir,
Im also facing same issue after upgrading to EHP6.
I have a field (Char254) in a structure (This structure has many other fields). Which I have binded on webdynpro screen (inside a table) with Text Edit element.
When the user entered any text in Text Edit Element, All <enter keys> were converted to '#' character.
I cannot change it to STRING_TABLE as you suggested in above post. If I go and change structure and logic where ever it is used, this requires a lot of testing by user.
Do you have any other solution for this. Please suggest. Thanks.
Hello Vijay,
I dont know the exact solution but you can try this.
1. If possible, Increase the lenght of your string field.
2. Create one new attribute as text (type string_table) and bind this with your text edit.
3. Now try to move the data present in your field direct to this new attribute and display.
Or you can move this data to internal table and then to this new field.
NOTE: For "Text edit" you can only use type 'string' or 'string_table.'
To display a string in TextEdit, must only use a line feed as a line break.
A line break is always stored as a line feed in a STRING (CL_ABAP_CHAR_UTILITIES=>NEWLINE, ASCII decimal 10).
Also refer this thread,http://scn.sap.com/thread/1534268
Regards,
Sudhir Kothavale.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
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.