cancel
Showing results for 
Search instead for 
Did you mean: 

Text Edit Element Character Conversion

former_member426550
Participant
0 Kudos
211

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

former_member426550
Participant
0 Kudos

Thanks Sudhir. your solution Worked!

Do you have an idea why in version EHP6 string declaration is not working?

Former Member
0 Kudos

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.

former_member426550
Participant
0 Kudos

OK thanks and God Bless

vijay_ramarao
Explorer
0 Kudos

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.

Former Member
0 Kudos

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.

Answers (0)