ABAP生成二维码,smartforms生成二维码

How to create a QR code and show it in a Smartform.
Before running the code given below what should we do?

1. Create a smartform. Follow the steps given below.

Capture.PNG

2. Goto Form Interface and add a new variable under the import tab which holds the name
of the qrcode that we are passing from the driver program[W_NAME type char20]

Capture1.PNG
3. Create a new graphics and as shown below give the name as &W_NAME&. [Dynamic
variable]

Capture2.PNG

4. Done.
5. Copy the code below.
6. Enjoy the emerging technology of qrcode in SAP.

Note : In the program given below I have used a screen 9000. Please do create it before running and also create acustom control in the screen layout and give the name ‘PICTURECONTROL’ to it.

源码:

输出:

Capture3.PNG

Capture4.PNG

Capture6.PNG

ABAP生成二维码,smartforms生成二维码》上有1条评论

发表评论

电子邮件地址不会被公开。 必填项已用*标注

12 − 7 =

This site uses Akismet to reduce spam. Learn how your comment data is processed.