天天看点

使用ABAP创建QR Code(二维码)

In the previous blog we discuss how to generate QRCode to enable it be scanned via mobile phone.

In that solution, the QRCode is generated and stored in a PDF file via ABAP webdynpro framework, we only provide the form template. In fact it is quite easy to adapt the solution to generate the PDF by ourselves, so that the QRCode could be used more flexibly in many other scenario for example as an attachment of email.

Note: it is still necessary to create a form interface and form template as described in the blog.

The report source code is below:

使用ABAP创建QR Code(二维码)

execute the report, the PDF binary is stored in ls_pdf_file-pdf.

使用ABAP创建QR Code(二维码)

It could be scanned by the QRCode scanner installed in my mobile phone:

使用ABAP创建QR Code(二维码)

继续阅读