2021 Jun 21 7:15 AM
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
2021 Jun 21 7:53 AM
Search the Web:
newline in QR code site:stackoverflow.com(I see answers like %0A or %0D)
2021 Jun 21 8:13 AM
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.
2021 Jun 21 8:16 AM
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?
2021 Jun 21 8:22 AM
Hi Sandra,
this is PHP code, we want SAP ABAP coding.
Regards
Victor
2021 Jun 21 9:22 AM
2021 Jun 21 9:50 AM
You may delete this "answer". For information, existing answers prevent people from editing their "question comments".
2021 Jun 21 9:54 AM
We got below documentation from SAP note 2358186. It has barcode setting also, still we are not getting desired output
2021 Jun 21 12:40 PM
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)
2021 Jun 21 12:49 PM
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)
2021 Jun 22 3:55 AM
Hi Sandra,
I tried the code: gv_2d = |10\t20\r\n30\t40\r\n50|.
scan result: 10#20##30#40##50
2021 Jun 22 6:23 AM

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