cancel
Showing results for 
Search instead for 
Did you mean: 

Max string length?

Former Member
0 Kudos

I'm trying to print out the following in a smartform table line:

&G_TEXT& may be associated.

Field G_TEXT is a string and may be any length, but when I try and pass it with a length of greater than 249 (ish) it chops it off. The table line is big enough as the text 'may be associated' is printed out after G_TEXT. If I debug through I can see that G_TEXT has the full text in it but it's not printing to the page.

Does anyone know why there is a max length for printing out string fields?

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Gill,

max length of a string is 255 characters.

-Anu

Former Member
0 Kudos

Thanks Anu,

But when I debug through the smartform I can see that G_TEXT has a length of over 300. Do you mean that smartforms only allow you to print up to 255 characters from a string field?

Former Member
0 Kudos

Gill,

may be ur string takes only 255 charactes.

try with 2 strings or

with standard text.

-Anu

Former Member
0 Kudos

My string has over 300 characters in it, but smartforms don't seem to print out the whole thing. Thanks for your answer, I'm going to try using more than one string field to solve the problem.

sridhar_k1
Active Contributor
0 Kudos

Smartform prints only first 255 chars of the string. instead of two strings try addding the same field with offsets:

&G_TEXT(255)&&G_TEXT255(255)&&G_TEXT510(255)&

Regards

Sridhar

Former Member
0 Kudos

Thanks Sridhar,

That solves my problem.

Gill

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Check the window size in your smartform...Try to increase the window width..

Thanks,

Naren

Former Member
0 Kudos

Thanks Naren,

But as I said above, my table line is big enough as the text 'may be associated' is printed out after the text in field G_TEXT. It is G_TEXT itself which is being cut off.