cancel
Showing results for 
Search instead for 
Did you mean: 

[Smartfroms] Problems in fetching text edit control text

Former Member
0 Kudos

Hi gurus,

I made an application using Screen programming (or dialog programming you must say). I used 3 tab strips. In last tab strip I used a text edit control to write remarks in multiple lines.

I save those remarks (data element: TEXT255) in a custom table as they are saved as "sdfsdfsdf##df##sd##fsd##fsd##fsd##f##sd##f". Fine enough as "ENTER KEY" is interpreted as "##".

I fetched them easily in a display mode using get_stream method. All good.

But the problem arose when I needed to fetch those saved remarks in a smartform.

When I fetched those remarks they came as "sdfsdfsdf##df##sd##fsd##fsd##fsd##f##sd##f" in samrtform's text_box.

I tried a Find and replace command but ## couldn't process, it's because ## is just the interpretation of ENTER KEY.

I need them as

sdfsdfsdf

df

sd

fsd

fsd

fsd

f

sd

f

Is there anyways to get multiple lines text box in smartforms or can I remove those "##" from the text?

Regards,

Mansoor Ahmed.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Problem solved by using famous Utilities Class by SAP.

Answers (2)

Answers (2)

madhu_vadlamani
Active Contributor
0 Kudos

Hi ,

On the back of this program how you are saving the long text.

Regards,

Madhu.

Former Member
0 Kudos

I am saving it as a text in TEXT255 data element.

But in text edit control when i press enter it adds ## to the text. And ## could not be processed via FIND and REPLACE commands.

nabheetscn
Active Contributor
0 Kudos

how are you saving this long text. We are also doing the same but we use save_text and read_text

Nabheet