Add carriage return into a text field

Development SAPscript/ Smartforms

Moderators: Snowy, thx4allthefish, YuriT, Gothmog

Post Reply
Posts: 38
Joined: Mon Oct 28, 2002 7:09 am

Add carriage return into a text field

Post by german » Tue Sep 21, 2004 11:37 am

Hi all,

I'm trying to write a text from a sales delivery in a SapScript window. I'm using the function READ_TEXT and the result of this function is assigned to a variable of type char.

The problem comes when the text is made up of different lines. What I would like is to see the text in the same way that it appears in the delivery, that is, divided into different lines.

How can I insert a carriage return into the char variable so it is divided into lines when printed through WRITE_FORM function?

I have tried definig a variable of type 'X' with value '0D0A' (using field symbols), but instead of carriage return, the '#' symbol appears.

Thanks in advance,

Posts: 31
Joined: Wed Feb 04, 2004 7:01 am

Re: Add carriage return into a text field

Post by nrogers » Tue Aug 18, 2009 6:32 am

Hi Germán,

Did you ever get a solution to this problem? I'm having similar trouble at the moment and would appreciate greatly any help you could offer.

Best regards,

Posts: 71
Joined: Thu Jan 01, 2009 11:01 am

Re: Add carriage return into a text field

Post by new2sapfans » Tue Aug 18, 2009 12:49 pm

Resurrecting a very old post !!!

Anyways, what do you mean by Assigned to a char?
I've always used the itab returned by READ_TEXT

Code: Select all

Try using the INCLUDE command.
On the contrary, I am facing an issue with getting the same text format via a Text node, in Smartforms !

Post Reply