cancel
Showing results for 
Search instead for 
Did you mean: 

How to show line feeds in table cell

Former Member
0 Kudos

Dear Expert,

Now we meet one question,we have a long text which include many line feeds,when show it in a cell of one table in smartform.we can only see the line feeds become to some ##. not do the ENTER or TAB..

For example, the show like below:

ABECDEF#MNIOPHN

not

ABECDEF

MNIOPHN

So, Would you like to tell me how to do?

Thanks&Regards,

Kerry

Accepted Solutions (1)

Accepted Solutions (1)

former_member217544
Active Contributor
0 Kudos

Hi Kerry,

You can use the attributes of class: cl_abap_char_utilities

If it_longtext is the table which contains your longtext data.

DATA: c_new value cl_abap_char_utilities=>newline,

v_ltxt type string.

loop at it_longtexts into wa_longtexts.

concatenate v_ltxt wa_longtexts-text_line into v_ltxt.

endloop.

refresh it_longtexts[].

split v_ltxt at c_new into it_lontexts.

Regards,

Swarna Munukoti

Edited by: Swarna Munukoti on Dec 4, 2009 11:44 AM

Former Member
0 Kudos

Many thanks!

Best Regards,

Kerry

Answers (1)

Answers (1)

NAeda
Contributor
0 Kudos

hi,

which printer you are using.? Check with other printer.

rgds

Aeda