cancel
Showing results for 
Search instead for 
Did you mean: 

smartforms and variable storage more than 255chars

0 Kudos

hi everyone,

I want to print a barcode with more than 255 characters in a smartform... while am storing the data more than 255 chars in a variable it is truncating upto 255 and not showing remaining data, I declared chars, string, edidc data element, xstring and internal table too but while printing again we need to send it to a single variable which is not displaying or considering more than 255 chars. I even referred this article too https://blogs.sap.com/2013/07/09/overcome-smartforms-text-limitation-of-255-characters/ but i dint find solution....

can you suggest any other ways to store value more than 255 chars.

Accepted Solutions (0)

Answers (1)

Answers (1)

p244500
Active Contributor

Hi,

kindly look at the bellow link, you will get the answer

https://answers.sap.com/questions/8875940/index.html

You need to split it into more than one symbol. e.g.

Character Format BC

&Barcode_part_1&&Barcode_part_2&&Barcode_part_3&

There is a problem if you enter it like this:

<BC>&Barcode_part_1&&Barcode_part_2&&Barcode_part_3&</>

into a text node in transaction SMARTFORMS. The editor automatically breaks it into 3 separate barcodes.

<BC>&Barcode_part_1&</><BC>&Barcode_part_2&</><BC>&Barcode_part_3&</>

The solution is to put the:

<BC>&Barcode_part_1&&Barcode_part_2&&Barcode_part_3&</>

into a sapscript standard text(transaction SO10) and include it into the Smartform as a text type 'Include text'.

Regards,

Nawa