2015 Nov 23 9:23 AM
Hi,
I am calling subroutine in script like below:
perform get_details in program zreport
using &var1&
using &var2&
changing &var3&
Program zreport fills var3 with 255 charcters. I checked in debugger that structure of type itcsy contains all the 255 char for var3 in program but when it comes to sapscript, var3 contains only 78 char.
This is the same problem faced by many people but it couldn't get any solution yet.
for your reference: https://scn.sap.com/thread/1533306
2015 Nov 23 2:56 PM
Hi tusar,
You can display only 78 character from a variable in sapscript.I suggest you to split your text in to multiple variable and display them.
var3 = text+0(78).
var4 = text+79(78)
var5 = text+158(78)
using &var1&
using &var2&
changing &var3&
changing &var4&
changing &var5&
Regards,
Noufal P
Hi,
I am calling subroutine in script like below:
perform get_details in program zreport
using &var1&
using &var2&
changing &var3&
Program zreport fills var3 with 255 charcters. I checked in debugger that structure of type itcsy contains all the 255 char for var3 in program but when it comes to sapscript, var3 contains only 78 char.
This is the same problem faced by many people but it couldn't get any solution yet.
for your reference: https://scn.sap.com/thread/1533306
2015 Nov 23 9:26 AM
Hi,
could you check the declaration of the variable VAR3 in the drivers program ? (not in program ZREPORT)
regards
Fred
2015 Nov 23 9:41 AM
Hi,
All the declarations looks fine. Same issue was already faced by people.
Regards,
Tushar
2015 Nov 23 10:00 AM
You know "'Saint Thomas" he is someone that trust only things he could see.
So, could you please make a little screen shot ?
Fred
2015 Nov 23 11:15 AM
2 possibilities :
a)Check the structure, if its same ...
b)Check the page size and block if you have maintained in the sap script.
2015 Nov 23 2:56 PM
Hi tusar,
You can display only 78 character from a variable in sapscript.I suggest you to split your text in to multiple variable and display them.
var3 = text+0(78).
var4 = text+79(78)
var5 = text+158(78)
using &var1&
using &var2&
changing &var3&
changing &var4&
changing &var5&
Regards,
Noufal P
2015 Nov 24 6:11 AM
Hi Noufal,
Your approach is useful but why script can display only 78 char? is this SAP restriction?
Thanks,
2015 Nov 25 10:40 AM
Hi Tushar,
yes its a SAP restriction. to display a long text you need to truncate that text in 2 or 3 variables then you can display combining these variables
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |