cancel
Showing results for 
Search instead for 
Did you mean: 

carriage return on the portal displays as # on the smartform

Former Member
0 Kudos

Hi,

I am creating an invoice through the portal. In the portal I enter three lines of text for billing header text. After each line I hit a ENTER.

When I view the invoice the three lines in the header text are displayed allright however when I try viewing the invoice on a smartform , i see that each of the ENTER after every line shows a ## i.e.

LINE1##LINE2##LINE3.

The function module being used to read the text is READ TEXTINLINE and I have narrowed down the problem to this function module. Data by this module is being read from the text memory and reads in the format above. I need to either use another function module or need to format or convert the data as required (without the #'s) . Please let me know the best strategy and how to implement it.

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Use the SPLIT V_STRING AT CL_ABAP_CHAR_UTILITIES=>CR_LF.

Ex.

DATA: V_STRING.

DATA: LT_STRING TYPE STRING OCCURS 0 WITH HEADER LINE.

SPLIT V_STRING AT CL_ABAP_CHAR_UTILITIES=>CR_LF

INTO TABLE LT_STRING.

Thanks,

Naren

Former Member
0 Kudos

Hi,

Thanks for your immediate reply. That solves that issue.

Thanks Again,

Vam

Answers (0)