cancel
Showing results for 
Search instead for 
Did you mean: 

Sapscript not all characters are displayed

Former Member
0 Kudos

Hello

I use in sapscript a variable like this

DEFINE &VAR& = &SPACE(250)& which should define a variable with lenght 250

Later on,i use a PERFORM My_Form in Program .....

using...

changing &VAR&

In my abap report i fill may variable with some data and everything is ok,but when debuging the sapscript ,my variable(in sapscript) does not contain all my characters.Only 78 characters appear in my sapscript variable eventhough it should have more.

Why does it truncate my text?

Thanks

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

HI seba,

im also facing the similar problem i.e only 78 characters are printing in script when passing from driver prog.

pls let me know the solution for this .

Regards,

Niranjan.G

Sandra_Rossi
Active Contributor
0 Kudos

>

> DEFINE &VAR& = &SPACE(250)& which should define a variable with lenght 250

>

NO, it only clears VAR variable.

-> Make sure the length of VAR variable inside the program is 200.

If it's not the problem, then you should tell us whether:

- you defined a window with sufficient size?

- you are in a Unicode system?

- which language you use?

Former Member
0 Kudos

Hello

I declared the variable like this in my abap report:

lv_var(250) type c

In debugger,in my abap report,all the characters appear correctly,only in sapscript,the last characters are truncated.

-The window is large enough,because after this variable,i display another text which appears correctly on the same row.

-It does not matter what language i use,because this issue exists in several languages that i use(english, latvian, lithuanian, serbian, etc).

- i use normal characters,no special signs or characters are used

thank you

NAeda
Contributor
0 Kudos

Hi Seba,

For your kind information,

You can't pass 250 characters from driver program to script.

Better spit the variable and pass to SCript

rgds

Aeda

Sandra_Rossi
Active Contributor
0 Kudos

Aeda, I don't know where you found this information, but my program correctly displays a 255 characters variable...

NAeda
Contributor
0 Kudos

hi Sandra,

When i was debugging my program(Passing the variable from driver program to script using ITCSY), i am uable find the 250 characters , so i did with SPLIT.

Rgds

Aeda

Edited by: Aeda N on Nov 17, 2009 12:37 PM

Former Member
0 Kudos

Hello

Theoretical it should be possible to transmit up to 255 characters from an abap var to an sapscript variable.What i find strange,is that sapscript only displayes my first 78 characters and truncates the rest.I did not want to split that text,because it has to be possible to display all the characters

Sandra_Rossi
Active Contributor
0 Kudos

Could you give us the window content? (* &VAR& &XXX&)

Did you make sure that the window content is the same for all languages?

Did you make sure your program is activated?

Could you make a separate test on a dummy program to make sure that you successfully print a variable with more than 78 characters?

Former Member
0 Kudos

Hi,

I have something like this in my sapscript:

/: Define &FIRMA& = &SPACE(250)&

/: Perform ZFOOTER in Program ZSD_REP

/: Using &....&

/: Changing &FIRMA&

L1 &FIRMA&

In debugger in my Report,the FIRMA variable is filled ok,but in sapscript it is truncated.I have no explanation for this.

The sapscript and report are activated ,and unfortunately i have no time to test it separately in another report .

Sandra_Rossi
Active Contributor
0 Kudos

Did you also check the languages?

Fast option to do a separated text (2 minutes): copy S_CA930_DEMO_3 to ZS_CA930_DEMO_3 sapscript form and RSTXEXP2 program to ZRSTXEXP2. Replace HEADER text by variable ZZZZ in ZS_CA930_DEMO_3, declare DATA ZZZZ(255) TYPE C VALUE 'ABCDEFGHIJKLMNOPQRSTUVWXYZ '

& 'ABCDEFGHIJKLMNOPQRSTUVWXYZ '

& 'ABCDEFGHIJKLMNOPQRSTUVWXYZ '

& 'ABCDEFGHIJKLMNOPQRSTUVWXYZ '

& 'ABCDEFGHIJKLMNOPQRSTUVWXYZ '

& 'ABCDEFGHIJKLMNOPQRSTUVWXYZ '

& 'ABCDEFGHIJKLMNOPQRSTUVWXYZ '

& 'ABCDEFGHIJKLMNOPQRSTUVWXYZ '

& 'ABCDEFGHIJKLMNOPQRSTUVWXYZ '

& 'ABCDEFGHIJKL'. in ZRSTXEXP2, run ZRSTXEXP2 with parameter form equal to ZS_CA930_DEMO_3, and check the result.