cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problem with ## for carriage returns

Former Member
0 Kudos
175

Hi

I have a Smartform in eRecruitment used for a requisition.

It uses a parameter of POST_INFO_TEXTS of associated type RCF_S_ITF_POST_INFO_TEXTS which is free texts from infotype 5121-posting information. In the output I'm using POST_INFO_TEXTS-COMPANY_DESC_ITF which is a string data type.

A user can enter text and then it is displayed in a data overview via the portal. The problem is that the output contains ## for all/any carriage returns.

So the output is: line1##line2##line3.

What I need to achieve is:

line1

line2

line3

I have removed the ## by using

REPLACE ALL OCCURRENCES OF CL_ABAP_CHAR_UTILITIES=>CR_LF IN POST_INFO_TEXTS-COMPANY_DESC_ITF WITH ' '. but I have been unable to track down a solution for putting carriage returns back into the output.

Is it a question of converting the original text into a different format? I've looked using SPLIT POST_INFO_TEXTS-COMPANY_DESC_ITF AT CL_ABAP_CHAR_UTILITIES=>CR_LF and putting that into a table but still not how to then output that with carriage returns.

All/any suggestions are greatly appreciated.

Cheers

Jon.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello,

This could be due to system errors - have you checked SAP Notes "1797388 - Web Dynpro: Conversion of non-printable characters" and "1910895 - Hash tags appearing in posting text".

Former Member
0 Kudos

Hi Tapera

Thanks for those suggestions. It supports what we were thinking was the issue. Not got a satisfactory solution but not too far away.

Jon.

Answers (0)