Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

smartfomrs to PDF conversion error

Former Member
0 Likes
406

Dear Experts,

I have a requirement to convert smart forms to PDF.

After converting smartforms to PDF, I am getting the following errors.

1. Special signs like u201C&u201D, are shown as <& > in PDF.

2. Some line breaks which are in smartforms are not appearing in the PDF.

(How to handle the same during smartforms to PDF)

Thanks in Advance.

SRI

2 REPLIES 2
Read only

Former Member
0 Likes
366

Hi,

in more than once I´ve experimented the same problem. What I do is to replace the text in my form:

REPLACE ALL OCCURENCES OF '&gt;'   IN aux_text WITH '"'.
REPLACE ALL OCCURENCES OF '&lt;'   IN aux_text WITH '"'.

you can insert a line break like this:

CL_ABAP_CHAR_UTILITIES=>CR_LF

but in both cases you must set a break point in your form where the text is processed to find out what´s wrong. It could be that system cannot understand some characters as HTML escape code. This is the case in web development when working with text boxes.

Read only

venkat_o
Active Contributor