Skip to Content
avatar image
Former Member

Text truncation

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Apr 22, 2008 at 01:59 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.