2020 Oct 18 12:48 AM
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?
2020 Oct 18 2:52 AM
2020 Oct 18 9:12 AM
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.
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.
2020 Nov 01 9:03 AM
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
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |