Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

qr code in smartform

Vinay3
Participant
0 Likes
883

hi guru,

i want to print qr code in smartform....as few step i had already done for which i am able to get pdf output with qr code from sap but not able to intergrate in smartform....print control command is used in abap reprot...but when i use print control commant in smartforrm its not working.....

And i don't want to upload image of qr code and to that....

As my requirment is to print qr code in smatform......

3 REPLIES 3
Read only

iftah_peretz
Active Contributor
0 Likes
473

Hi Vinay,

How are you passing this qr code to your smartform?

From what I understood all you need is to print some text - in your case a code, if you are creating a smartform then simply create a data type for this code and pass it as one of the smartform function arguments, if this is a standard smartform either change it and put that data where you need or copy the smartform to a Z one and do the changes there.

I would also help you with coding, but you did not give enough information to work with.

Best,

Iftah.

Read only

0 Likes
473

hi iftah,

thks for reply.....but qr code is like bar code....for which there is no font or something is there....there no question of data type .....

Read only

0 Likes
473

The example here:

works a treat for me - it passes the data you want to encode to the google charting API, then reads the response and passes that to the graphics library, which can be called from the SMARTForm.

It's actually a lot easier than it sounds, particularly as you can just cut and paste the code!

Well done the author!

It does rely on the google charting API though, so if they ever change their url, your code would break...!