Skip to Content

String Data In QR Code

i want to Print string(800) in QR 2005 bar code, but when i am trying to print string then it is displaying only 256 characters out of 800.

finally i convert STRING to STRING_TO_CHARTAB with below code.

DATA:
ld_LENGTH TYPE I ,
ld_STRING TYPE STRING ,
ld_TAB_CHAR255 TYPE HRB2A_T_CHAR255 .

ld_LENGTH = STRLEN( WA_J_1IG_INVREFNUM-SIGNED_QRCODE ).
ld_STRING = WA_J_1IG_INVREFNUM-SIGNED_QRCODE.

DATA ME TYPE REF TO CL_HR_B2A_DOCUMENT.
CREATE OBJECT ME.
CALL METHOD ME->STRING_TO_CHARTAB(
EXPORTING
LENGTH = ld_LENGTH
STRING = ld_STRING
RECEIVING
TAB_CHAR = HRB2A_T_CHAR255
EXCEPTIONS
ERROR = 1
OTHERS = 2 )
.IF SY-SUBRC <> 0.
* Implement suitable error handling here
ENDIF.

currently i am facing problem to display HRB2A_T_CHAR255 table data in QR code, i tried loop in system but it is only taking first line item data and ignoring remaining line items.




Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Sep 07 at 11:57 AM

    Ensure your system is configured with minimum Kernel. Have a look at OSS note 2030263 for more information. Also OSS note 2872365

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 09 at 07:43 AM

    Hi Ganesan.

    thank you now i am able to print QR code but I'm facing a problem when I tried to print a QR Code inside a Smart-forms, the problem is related to the position of the QR Code. QR Code is printing 10 cm below of its window. mean currently QR code is generated anywhere. let me know if you also face this QR code position issue which is not printing inside Its window.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.