DevOps and System Administration Forum
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Generate multiple line QR code from smart form

0 Likes
3,867


Dear expert.
We expect to generate multiple line QR code from smart form.


below is my code:


data:
gv_2d type CHAR255.

gv_2d = '001\c013\\c010\20\c009\30\c013\\c010\40\c009\50'.

but the 2D scan result is :001\c013\\c010\20\c009\30\c013\\c010\40\c009\50

we wish the 2D scan result like below:

10 20
30 40
50

Can anybody share right code ?

Regards

Victor

11 REPLIES 11
Read only

Sandra_Rossi
Active Contributor
0 Likes
3,316

Search the Web:

newline in QR code site:stackoverflow.com

(I see answers like %0A or %0D)

Read only

Sandra_Rossi
Active Contributor
0 Likes
3,316

Please use the COMMENT button for comments, questions, adding details, replying to a comment or a proposed solution or to the OP question, etc., ANSWER is only to propose a solution, dixit SAP text at the right of the answer area.

Read only

Sandra_Rossi
Active Contributor
0 Likes
3,316

So, you are saying that you tried both %0A and %0D (instead of \\c) and it didn't work.

Could you explain why you have initially chosen \c and \\c? What documentation is it coming from?

Note that read issues often come from scanner configurations. What model is it and what configurations did you try?

Read only

0 Likes
3,316

Hi Sandra,

this is PHP code, we want SAP ABAP coding.

Regards

Victor

Read only

Sandra_Rossi
Active Contributor
0 Likes
3,316

%0A and %0D are not PHP.

Read only

Sandra_Rossi
Active Contributor
0 Likes
3,316

You may delete this "answer". For information, existing answers prevent people from editing their "question comments".

Read only

0 Likes
3,316

We got below documentation from SAP note 2358186. It has barcode setting also, still we are not getting desired output

Read only

Sandra_Rossi
Active Contributor
0 Likes
3,316

Thank you for note 2358186 which explains that!

So \c013\\c010\ corresponds to ABAP |\r\n| and \c009\ corresponds to ABAP |\t|, but as the note states, \r \n \t are converted to # by ABAP kernel when output to QR code.

Did you try directly this, just to test?

gv_2d = |10\t20\r\n30\t40\r\n50|.

(if the note is right, you should scan 10#20##30#40##50, but that's worth trying)

Read only

Sandra_Rossi
Active Contributor
0 Likes
3,316

What barcode parameters do you use exactly?

Do you have SAPKB74009 or above? (minimal Support Package for QR code feature; note 2030263)

And also, do you have the required kernel patch level? (note 2029589)

Read only

0 Likes
3,316

Hi Sandra,

I tried the code: gv_2d = |10\t20\r\n30\t40\r\n50|.

scan result: 10#20##30#40##50

Read only

3,316

Hi Sandra, please find attached is our barcode parameter

please also find below answer from our Basis guy.

2.Do you have SAPKB74009 or above? (minimal Support Package for QR code feature; note 2030263) – We are on Support Package “SAPKB74007”. As per OSS Note # 2030263, This feature is implemented from Release 740 SP09. Currently we are on Release 740 SP07 only. We are on Lower level and 2D Barcode is not supported in our current systems.

3.And also, do you have the required kernel patch level? (note 2029589) – Yes we are good on Kernel side and we are on 749.

Regards

Victor