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: 

Printing QR-Code SAP smartforms

diegofrozza
Participant
0 Kudos
9,035

Hi,

I have a big problem when I Print QR-Code using smartforms and I can't think how to solve this.

I Applied these notes:

  • 2029824 - Support for QR code and data matrix bar code (ABAP part)
  • 2030263 - Support for QR Code 2005 Barcode in SAPscript and Smart Forms
  • 2001392 - Support for Datamatrix ECC200 Barcode in SAPscript and Smart Forms
  • 2029589 - Support for QR code and data matrix bar code (kernel part)

After I do some test in SE73. Like I saw here

In the test everything is OK. QR-Code was printed correctly and I could scan using my mobile APP.

But here is the BIG problem, I need to print the QR-Code insede the smartforms, but this QR-Code has more than 255 characters and when I print the QR-Code and scan I just get the 255 characters and Smartforms cut the rest of the string.

I know this is a smartforms limitation, but there is one solution tu solve this using the standard QR-Code Printer?


PS: I copy the program RSPO0031 and pass the entire string and it's print everything. Lookin for program I figure that it's get some tipe of image and convert to OTF, but i can't find a way to save this image. If it's possible I could use this imagem inside the smartforms.

5 REPLIES 5

Former Member
0 Kudos
1,603

Hi Diego,

did you already solve the problem?

Regards,

Tobias

0 Kudos
1,603

Dear Tobias,

Yes I solved the problem.

As per the following note, if the barcode is entered as a smbol in the Smart Form, the length is limited to 255. (485296 - Maximum string output length of 255 characters).

It is possible to split the symbol e.g &Barcode& into a number of symbols like &Barcode_part1*&Barcode_part2&<)><(>&Barcode_part3&... and use this in the Smart Form. Howerver there is a complication that you will get separate barcodes if you put these combined symbols into the Smart Form text directly.

The Solution is to put the:

<BC>&Barcode_part1&&Barcode_part2&&Barcode_part3& </> into a Sapscript standart text(via transaction SO10 and include this standard into the Smart Form as a text type 'Include Text'. This as mentioned in the last setence of note 497380. When use these symbols in the standard text that is defined as an Include text in the Smart Form with the barcode parts, the values from your application program should still populate the symbols at runtime and dive a complete barcode in the print.

Create the SO10

Change the Editor:

here you can put all the symbols that you need:

In the Smart Form we fill these variables:

Like I mentioned before, change for Include Text:

After this if you fill correctly you will print the Text or Barcode or QRCode will full text.

I hope that I've helped.

Regards,

Diego Frozza Compagnoni

0 Kudos
1,603

Hello Diego,

thanks for this detailled documentation, helped a lot!

Regards,

Tobias

Amarjeet
Explorer
0 Kudos
1,603

Hi Diego,

We are doing the same using SO10. We have 900+ characters in QRcode.

When we set module size "00011" in SE73, we are able read QRcode using scanner but it is very big to be accommodated in smartform at particular column. When we reduce the module size to '00005', it is accommodating in the column but we are not able to scan using mobile.

Request you to please help us with the issue.

Thanks in Advance.

0 Kudos
1,603

Hi Diego,

i have solved this 255+ characters issue using https://launchpad.support.sap.com/#/notes/2245060/E

this issue resolved using so10 object.

you can mark this answer as answered.