cancel
Showing results for 
Search instead for 
Did you mean: 

Long text getting truncated in sapscript

Former Member
0 Kudos

Hi all,

I am passing a long text variable from print program (se38) to sapscript.

In the print program the variable stores the long text.

but when it comes to sapscript the length gets truncated .

why ?

regards

senthil

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Wherever you are printing the variable, just checlk if the size of the window/column is big enough to accomodate the text.

Is the text truncated before printing itself ? or its printed truncated on selection screen?

Edited by: sap_wiz on May 19, 2011 12:50 PM

Former Member
0 Kudos

hi ,

thanx for the reply,

text gets truncated in print preview itself.

i put breakpoint in se38 and in sapscript.

in se38 the variable shows full text, but in sapscript, it gets truncated.

coding in sapscript

/: POSITION WINDOW

/: POSITION XORIGIN '-0.5' CH YORIGIN '-0.10' LN

/: SIZE WIDTH '+0.3' CH HEIGHT +0.85 LN

/: BOX HEIGHT '9.0' LN FRAME 10 TW

/: PERFORM PO_TEXT_DISP IN PROGRAM ZTEST_DRIVER

/: USING &EKKO-EBELN&

/: CHANGING &PO_TEXT&

/: ENDPERFORM

/: IF &PO_TEXT& NE ''

S7 &PO_TEXT&

/: ELSE

/: ENDIF

regards

senthil

Former Member
0 Kudos

Check the size of po_text,is it sufficientto pass the text.Also Try and pass some value on runtime,and see how many characters is it accepting or displays properly,without truncating.There is a limit to the length of text that can be passed.FInd out how much are you passing.

Former Member
0 Kudos

hi,

declared po_text as 255 char.

length of data in po_text is 153 at run time at se38

but in sapscript only 78 chars are printed

what is the limit of chars to be printed?

regards

senthil

former_member361845
Participant
0 Kudos

Hi,

You would have used READ_TEXT in Driver program.

Try to concatenate the text..and see the difference.

hope this will help you