cancel
Showing results for 
Search instead for 
Did you mean: 

How to define fixed size for a QR Code in smartforms?

Former Member
0 Kudos

QR Code data is small then QR Code in smartform is in small size...when QR Code has more data the QR Code is big and exceeds from the window and disrupts the layout.How to control the QR Code size in smartforms?

The QR Code data should be same for all kinds of data.

Kindly suggest me with this issue.

Former Member
0 Kudos

Hello People,

I am facing the exact same issue, Did you find the solution for this issue.

Amarjeet
Explorer
0 Kudos

Hi,

Did you find solution for sizing issue of QR Code.

please do let us know. Thanks in advance

Accepted Solutions (0)

Answers (9)

Answers (9)

SimoneMilesi
Active Contributor

i know jelena.perfiljeva2 will hate me now, but a possible solution (working for me on 731) is this

https://blogs.sap.com/2013/11/28/how-to-print-barcodes-that-are-not-supported-by-sap-using-smartform...


The example is with DATAMATRIX but i'm using successfully with QRCODE

Jelena
Active Contributor
0 Kudos

Why would I hate you? The only case when I like to be wrong is when someone comes up with a solution to something I thought was not possible. 🙂 Otherwise how will anyone learn anything?

Thanks for sharing!

SimoneMilesi
Active Contributor

i was more referring to the resurrecting an old thread 🙂

eduardoribeiro
Discoverer
0 Kudos

Hello friends,

I found the solution! It's an unofficial way, but it works. I hope that SAP opens a field on the screen to make this adjustment in a standard way.

All Barcodes are stored in the TFO05 table. Look for your QRCode Z and notice that values of width 50mm and height 20mm have been set. Apparently that's what makes the 2D square vary between 20x20mm and 50x50mm according to the volume of the content.

Alternative 1) - Changing the Barcodes table

Via SE16 using register change with /H, change the values to the desired measurements. I noticed that it does not accept less than 20mm in width and no more than 50mm in height. In my case it was generating a 50x50mm QRcode and now with the same content it generated a 20x20mm one.

Alternative 2) Without changing the Barcodes table

SE38, include LSTXBSF02, FORM SET_DEFAULTS_2031, place a break-point on line 883. It will be there and/or on 885. that you will make the adjustment to the desired value between 20mm and 50mm.

Enter your smartform, enter its style and go to your QRCODE character format in edit mode. Press Enter so that the screen is updated and it will stop at the break-point. Change the values and it will stay on the screen. Now activate the style and exit. Point! Do not return there. Not to undo what you've done before. Your style has been saved with the new measurements QRCode.

Hope this helps.

Eduardo Ribeiro, RJ, BRAZIL

Ramesh_1205
Explorer
0 Kudos

Hi Everyone,

I am facing the exact same issue, Did you find the solution for this issue.?

0 Kudos

Hello Everyone

Go to SE73

Select System Bar Codes and Click on change

Select your QR Code like mine is ZMG_QR (last one in image) and then click on change icon on the top.

Click on No

Click on No

Change Module size to 15 (If you want too small change it to 10) and ErrCorrLev to L

Save the changes and that's it

Now execute and Enjoy 🙂

Jelena
Active Contributor
0 Kudos

Please don't resurrect old questions and if you have to ask "did you solve it?" use a comment instead of an answer.

I'm guessing if anyone had an answer to this they would've shared already. This is an old post on QR codes in Smartforms that mentions some SAP notes. If it does not provide any clues then search SAP notes and, if there is none about this, contact SAP Support.

Even if there is no solution at least SAP Support could issue a KBA about this if it's so popular.

DCorralesM
Explorer
0 Kudos

Hi!

Did you find any solution?

former_member241258
Active Participant
0 Kudos

u r requirement like dynamic window size.

but that fecility not available in smartforms window size.

for this first only u have to estamate how much lenth come and make it window size and use appropriate style font size.

than it will work

jayeshgala83
Explorer
0 Kudos

Has anyone found the solution for it? We need to implement this in customer label. Any help appreciated.

Former Member
0 Kudos

Did you resolve this issue?