on 11-17-2009 8:54 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
>
> 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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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?
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 .
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.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.