Application Development and Automation 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: 
Read only

QR Code not showing properly

Former Member
0 Likes
4,635

I'm trying to print QR Code in a paper but it's now not readable by any application from mobile app. Also tried the latet e-invoicing oss note, pretty much worked but it's not decoding it properly. As we already know there is a MIME type or something while creating QR Code to identify text, URL, SMS etc.

Kindly let me know how to implement or show a QR Code to end user? What kind of encoding and decoding is required to achieve this?

I'm trying to print QR Code in a paper but it's now not readable by any application from mobile app. Also tried the latet e-invoicing oss note, pretty much worked but it's not decoding it properly. As we already know there is a MIME type or something while creating QR Code to identify text, URL, SMS etc.

Kindly let me know how to implement or show a QR Code to end user? What kind of encoding and decoding is required to achieve this?

3 REPLIES 3
Read only

0 Likes
3,045

Are you using smartform, script or Adobe forms?

Read only

Abinathsiva
Active Contributor
0 Likes
3,045

Hi,

If you are using smartforms please note the font QRcode 2005 is installed and tagged to style which is being used in smartforms.

this blogs will guide you to address the issue.

display QR code in smartforms

automated e invoice

And regard encoding the information. Each QR code has three parts Signature information, data part and digital signature.

to get the signature information and digital signature this app will help consider the question is related to Indian GST/E_invoicing.

link to approved app to read qr code

Read only

prateek_dhawan18
Participant
0 Likes
3,045

Hi

Create a SO10 text with text as <C9>&str1&&str4&&str5&&str6&&str7&&str8&&str9&</> .

C9 - is the character format in smart style which will contain your barcode name.

Also create a paragraph format in smart style as per your requirement to adjust the QR code

We know that in E-Invoicing IRN contain 3 strings which are combined with '.' .try to implement below code in your smartform.

DATA lt_swastrtab TYPE TABLE OF swastrtab.

DATA lw_swastrtab TYPE swastrtab.

*Get your dynamic qr code into gv_qrcode

gv_qrcode = gw_irn-signedqrcode.

CLEAR : str1, str2, str3.

SPLIT gv_qrcode AT '.' INTO : str1 str2 str3.

CONCATENATE str1 '.' INTO str1.CONCATENATE str2 '.' INTO str2.

CALL FUNCTION 'SWA_STRING_SPLIT'

EXPORTING input_string = str2

max_component_length = 255

TABLES

string_components = lt_swastrtab.

IF lt_swastrtab IS NOT INITIAL.

CLEAR lw_swastrtab-str.

LOOP AT lt_swastrtab INTO lw_swastrtab.

CASE sy-tabix.

WHEN '1'.

str4 = lw_swastrtab-str.

WHEN '2'.

str5 = lw_swastrtab-str.

WHEN '3'.

str6 = lw_swastrtab-str.

WHEN '4'.

str7 = lw_swastrtab-str.

ENDCASE.

CLEAR lw_swastrtab-str.

ENDLOOP.

ENDIF.

REFRESH lt_swastrtab.

CALL FUNCTION 'SWA_STRING_SPLIT'

EXPORTING input_string = str3

max_component_length = 255

TABLES

string_components = lt_swastrtab.

IF lt_swastrtab IS NOT INITIAL.

CLEAR lw_swastrtab-str.

LOOP AT lt_swastrtab INTO lw_swastrtab.

CASE sy-tabix.

WHEN '1'.

str8 = lw_swastrtab-str.

WHEN '2'.

str9 = lw_swastrtab-str.

ENDCASE.

CLEAR lw_swastrtab-str.

ENDLOOP.

ENDIF