cancel
Showing results for 
Search instead for 
Did you mean: 

Issue while printing ' & ' in the text

Former Member
0 Kudos

Hello,

In a particular transaction there is a text field where the user could enter unlimited text. I have developed a smartform to display the texts. I wud explain the problem with an example.

Text : " On the Insert tab, the galleries include items that are designed to coordinate with the

A&B etc "

Print Preview : " On the Insert tab, the galleries include items that are designed to coordinate with the

A<(>&<)>B etc "

Has anybody come across such an issue earlier??

Cheers

Nayan

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Are you using "include text" in text type option?

If not try to print this text by include text.

Former Member
0 Kudos

write A<(>&<)>B in your text, thenm it will display fine.

Former Member
0 Kudos

Hi Florian,

Tried your option.

Here's the output : " A<(><<)>(><(>&<)><(><<)>)>B "

Cheers

Nayan

Former Member
0 Kudos

hmmm thats quite weird. The signs "<(>" and "<)>" tell the sapscipt interpreter not to interpret signs standing between them and print them like they are.i dont really have any clue why things are working the other way round in your scenario.

Former Member
0 Kudos

Dear Nayan,

You can try A '&' B.

instead of using A&B.

Hope this will help you to solve your problem.

Regards.

Vijay

Former Member
0 Kudos

Hi Vijay,

I have already tried that...Does not work,

Cheers

Nayan