cancel
Showing results for 
Search instead for 
Did you mean: 

Long text display issue

Former Member
0 Kudos

Dear Experts,

I have 2 text edit UI elements(namely requestor comments and approver comments).

For the first time, the requestor will provide comments and submit the request ( here approver comments will be hidden)

For the second time, when approver opens the request, he should see the previous comments provided by requestor in requestor comments and approver can also provide his comments.

When requestor opens his request, he should see all the previous comments in one box i.e requestor comments...

I can able to show them,But it is not showing the comments in new line.

PFB the snapshot

Pls help me to resolve this issue.

Thanks

Santhosh

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

20 seconds of Google:

You have to put a line break (br) between the texts..

Supported Tags - Web Dynpro for ABAP - SAP Library

Former Member
0 Kudos

Hi Christopher B.

Thank you very much for prompt reply.But if i user br, following is the output.

Thanks

Santhosh

Former Member
0 Kudos

You can also try tag "p"

Please post your code

ramakrishnappa
Active Contributor
0 Kudos

Hi Santhosh,

Can you check in debugging, if text entered is having any carriage returns/line breaks stored in it?

Regards,

Rama

Former Member
0 Kudos

Hi,

No Luck...still same issue.

Can you pls help me with example.

Thanks

Santhosh

Former Member
0 Kudos

Post YOUR code please

ramakrishnappa
Active Contributor
0 Kudos

Hi Santhosh,

First, I would like to know if whats the value you are getting into the longtext attribute? set an external break point before save and find out if any line breaks/carriage returns are there in longtext attribute.

If no line breaks saved, you may need to apply note.

Regards,

Rama

Former Member
0 Kudos

Can you please let me know the note which needs to be applied?

Former Member
0 Kudos

Note 66666 : use FormattedTextEdit instead of TextEdit

ramakrishnappa
Active Contributor
0 Kudos

Hi Santhosh,

Please test the standard component WDR_TEST_UI_ELEMENTS, if TextEdit works fine.

...

Run the application ---> choose TextEdit element from left panel---> enter text with line breaks ---> Click on APPLY CHANGES button to refresh the screen .

Check out if line breaks are still fine after clicking button APPLY CHANGES

Also check the below thread,

Regards,

Rama

Answers (2)

Answers (2)

former_member211591
Contributor
0 Kudos

Hi Santosh,

if you are using TextEdit use:

CL_ABAP_CHAR_UTILITIES=>newline

or

CL_ABAP_CHAR_UTILITIES=>cr_lf

as linebreak.

Regards

ismail

Former Member
0 Kudos

Please used FormattedTextEdit  instead of TextEdit! Than the line-break will work