This website is not affiliated with, sponsored by, or approved by SAP AG.

Add carriage return into a text field

Development SAPscript/ Smartforms

Moderators: Snowy, thx4allthefish, YuriT, Gothmog

Add carriage return into a text field

Postby 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,
Germán
german
 
Posts: 38
Joined: Mon Oct 28, 2002 7:09 am

Re: Add carriage return into a text field

Postby 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,
Noel.
18-Aug-2009
nrogers
 
Posts: 31
Joined: Wed Feb 04, 2004 7:01 am

Re: Add carriage return into a text field

Postby 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
*"  TABLES
*"      LINES STRUCTURE  TLINE


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 !
new2sapfans
 
Posts: 71
Joined: Thu Jan 01, 2009 11:01 am


Return to SAPscript/Smartforms

Who is online

Users browsing this forum: No registered users and 4 guests



cron


loading...


This website is not affiliated with, sponsored by, or approved by SAP AG.