cancel
Showing results for 
Search instead for 
Did you mean: 

Character '#' assigned wherever Enter <Key> is pressed in E_Longtext table

navdeep_malik
Explorer
0 Kudos

Hi,

When we create shopping cart using portal and the Vendor text value on the screen as below

Vendor text1

Vendor text2

Vendor text3

In E_longtext table it is stored as below :

Vendor text1#Vendor text2#Vendor text3

In Smartform output, the # is displayed instead of new line and all the lines are displayed in a single continuous line.

Can anyone tell the class or FM to read this text in correct format i.e.

Vendor text1

Vendor text2

Vendor text3

Thanks,

Navdeep Malik

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hello,

try splitting the lines using CL_ABAP_CHAR_UTILITIES=>NEWLINE.

DATA: lt_tab type table of STRING.

split LV_LNGTXT at cl_abap_char_utilities=>newline into table lt_tab.

regards.

Answers (0)