使用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

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:


image.png

image.png

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


image.png


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


image.png

相关文章
|
6月前
|
BI 数据库
SAP ABAP 释放 TR 遇到错误消息 ended with return code 8 的含义和处理办法
SAP ABAP 释放 TR 遇到错误消息 ended with return code 8 的含义和处理办法
78 0
|
6月前
|
存储 BI API
使用 ABAP 代码制作手机能够扫描的二维码(QRCode)试读版
使用 ABAP 代码制作手机能够扫描的二维码(QRCode)试读版
57 1
|
6月前
|
IDE 开发工具
如何使用 Visual Studio Code 查看和浏览 ABAP 代码试读版
如何使用 Visual Studio Code 查看和浏览 ABAP 代码试读版
50 0
|
6月前
|
IDE 开发工具 C++
想在 Visual Studio Code 里进行 ABAP 开发,需要安装的扩展列表
想在 Visual Studio Code 里进行 ABAP 开发,需要安装的扩展列表
51 0
|
7月前
|
SQL 缓存 监控
ABAP Code Inspector 的一些高级功能分享
ABAP Code Inspector 的一些高级功能分享
75 0
|
SQL 监控 BI
ABAP Code Inspector 的一些高级功能分享(二)
ABAP Code Inspector 是每一位 ABAP 开发人员工具箱里必备的代码检测工具之一。使用 ABAP Code Inspector 自带的标准检查项,可以帮助开发人员快速检测 ABAP 代码中潜在的缺陷,提高代码质量,改善代码运行性能。
122 0
ABAP Code Inspector 的一些高级功能分享(二)
|
SQL 缓存 安全
ABAP Code Inspector 的一些高级功能分享(一)
ABAP Code Inspector 是每一位 ABAP 开发人员工具箱里必备的代码检测工具之一。使用 ABAP Code Inspector 自带的标准检查项,可以帮助开发人员快速检测 ABAP 代码中潜在的缺陷,提高代码质量,改善代码运行性能。
214 0
ABAP Code Inspector 的一些高级功能分享(一)
|
开发工具 Android开发 C++
在Visual Studio Code里编写ABAP代码
在Visual Studio Code里编写ABAP代码
160 0
在Visual Studio Code里编写ABAP代码
使用ABAP代码生成二维码(QR Code)
使用ABAP代码生成二维码(QR Code)
392 0
使用ABAP代码生成二维码(QR Code)
|
1月前
|
存储 数据处理 开发者
ABAP 如何把 unicode 代码点转换成字符
ABAP 如何把 unicode 代码点转换成字符
19 0