Page 1 of 1

Box aorund long text

PostPosted: Fri Nov 06, 2009 12:15 am
by vt
Hello!
I am printing the long text using the following command
INCLUDE &INT_DATA-POITEM& OBJECT EKPO ID A06


The length/lines of the long text is unknown. It is dynamic.


I have to draw a box around this text.

How to give the height parameter for the box command

Re: Box aorund long text

PostPosted: Fri Nov 06, 2009 2:38 am
by Gothmog
I assume you're talking about a SAPscript...

Read the text in your printing program, count the lines, and use that count as a program symbol in your text element to set the size of your box.

Re: Box aorund long text

PostPosted: Fri Nov 06, 2009 2:48 am
by vt
yes you are right.

but we will have to read teh text once in the program and once in the sapscript(using include).

Is there any way we can know the number of lines in sapscripe itself at the time of include command

Re: Box aorund long text

PostPosted: Fri Nov 06, 2009 2:59 am
by Gothmog
I don't think so, the INCLUDE command only returns SAPSCRIPT-SUBRC, indicating if the text was found.