Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How can we incorporate more than 255 Characters in 2D Barcode PDF417 in a Smartform

sam_ap
Explorer
0 Kudos
2,683

Hi Guys,

I have a requirement for printing invoice details via PDF417 on my invoice.I have made use of PDF417 system barcode ( via SE73 )to do the same. My problem is that i can only print 255 characters ie when i scan, i only see upto 255 characters. I have concatenated the details into a string which i then display on my smartform. I have to display around 350+ characters. Is it possible in my case?

Hoping for a Positive Reply.

Regards,

Sam.

6 REPLIES 6

Sandra_Rossi
Active Contributor
571

Did you search the forum, especially this one by Aidan Black, it says all (https://archive.sap.com/discussions/thread/2085266) :

  • Do you use a symbol for the barcode string in the smartform? The reason for the problem is that the length of a symbol in a
    Smartform is restricted to 255 characters(see SAP note 485296). 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'.

Also explained in SAP KBA 2245060 - Barcode in Smart Form limited to 255 characters

0 Kudos
571

Hi,

It did work in my case but after combining 2 separate barcodes into 1 barcode; i can only see upto 300 characters.

Eg: <BC>&Barcode_part_1&&Barcode_part_2</>

where Barcode_part_1 contains 255 Characters & Barcode_part_2 contains around 80 Characters.

But when i combine the two; the barcode is displayed but with only first 300 Characters.

Any solution for this?

Regards,

Sam.

0 Kudos
571

What if you pass the text in a text node with dynamic text ? (you may initialize the text from a long string with function module CONVERT_STREAM_TO_ITF_TEXT for instance) This text would look like this:

TDFORMAT  TDLINE
*         <BC>... ...
=         ... ... ...
=         ...</BC>

sam_ap
Explorer
0 Kudos
571

Hi,

It did work in my case but after combining 2 separate barcodes into 1 barcode; i can only see upto 300 characters.

Eg: <BC>&Barcode_part_1&&Barcode_part_2</>

where Barcode_part_1 contains 255 Characters & Barcode_part_2 contains around 80 Characters.

But when i combine the two; the barcode is displayed but with only first 300 Characters.

Any solution for this?

Regards,

Sam.

sam_ap
Explorer
571

Hi,

It did work in my case but after combining 2 separate barcodes into 1 barcode; i can only see upto 300 characters.

Eg: <BC>&Barcode_part_1&&Barcode_part_2</>

where Barcode_part_1 contains 255 Characters & Barcode_part_2 contains around 80 Characters.

But when i combine the two; the barcode is displayed but with only first 300 Characters.

Any solution for this?

Regards,

Sam.

Sandra_Rossi
Active Contributor
0 Kudos
571

I see that some barcode scanners can read only a limited number of characters cf https://www.barcodefaq.com/2d/pdf417/