cancel
Showing results for 
Search instead for 
Did you mean: 

Text truncation

Former Member
0 Kudos

Hello ppl,

I have a smartform wherein I am printing some text in one of the cells of the MAIN area of a Table.

In the cell, the following code is inserted:

CONCATENATE l_var lwa_work INTO l_var SEPARATED BY ','.

The variable l_var is of type string.

The error is that when the smartform is printed, the text printed by l_var is truncated such that it prints only 255 characters.

Please suggest how to rectify this error.

Thanks,

Dawood.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

Please check below ways....

Define a character field of the desired length and use this variable in the smart forms. Strings will be able to hold a maximum of 255 characters.

(or)

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)&

(or)

using offset values.

string1 = string+0(255).

string2 = string+255(255).

Regards

Vasu

Former Member
0 Kudos

Hi Vasu,

Thanks for the reply.

I have tried using character types from char1024 to char4000, but, of no use.

The value gets truncated after printing 255 characters.

That's why I switched to type string.

Thanks,

Dawood.

Answers (0)