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,
Germán
Add carriage return into a text field
Moderators: Snowy, thx4allthefish, YuriT, Gothmog
Re: Add carriage return into a text field
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,
Noel.
18-Aug-2009
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,
Noel.
18-Aug-2009
-
- Posts: 71
- Joined: Thu Jan 01, 2009 11:01 am
Re: Add carriage return into a text field
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
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 !
Anyways, what do you mean by Assigned to a char?
I've always used the itab returned by READ_TEXT
Code: Select all
*" TABLES
*" LINES STRUCTURE TLINE
On the contrary, I am facing an issue with getting the same text format via a Text node, in Smartforms !