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

分享到:

1 条评论

昵称
  1. oneeontee

    科比退了,但二维码还在,这个评论算接上了吧