<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Replicate the QR Code to custom Smartform, decoding f... in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/replicate-the-qr-code-to-custom-smartform-decoding-from-table-edoplinv/qaa-p/14380470#M4940850</link>
    <description>I have a similar problem to print the QR-Code on the SAPScript form for invoice. The code from Note 3714529 returns me the content from EDOPLINV-QR_CODE_ACCEPTED in the variable lv_image_xstring. I use a system font for printing the QR-code. That’s fine for me, but the QR code contains instead of the URL the content from EDOPLINV-QR_CODE_ACCEPTED. How can I receive the URL from EDOPLINV-QR_CODE_ACCEPTED ? Maybe you have a tip for me ?</description>
    <pubDate>Wed, 22 Apr 2026 11:36:03 GMT</pubDate>
    <dc:creator>Bettina07</dc:creator>
    <dc:date>2026-04-22T11:36:03Z</dc:date>
    <item>
      <title>Replicate the QR Code to custom Smartform, decoding from Table EDOPLINV</title>
      <link>https://community.sap.com/t5/technology-q-a/replicate-the-qr-code-to-custom-smartform-decoding-from-table-edoplinv/qaq-p/14343690</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;How to replicate the QR Code, for an Invoice that was accepted by the KSeF, e-invoicing System and sent back the PDF with QR Code?&amp;nbsp; The QR Code (not the pdf)&amp;nbsp; is stored in the Table Field EDOPLINV-QRCODE_ACCEPTED.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expected Result:&amp;nbsp;&lt;BR /&gt;&lt;/STRONG&gt;The QR Code should be re-generated in a custom Smart form, from the value stored in the Table field EDOPLINV-QRCODE_ACCEPTED. when scanned, it should re-direct to KSef PL Gov website.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Procedure:&lt;/STRONG&gt;&lt;BR /&gt;I have the following test code written in the Smart form, very similar to this blog post &lt;A title="Custom QR Code logic generation, Saudi Arabia E-Invoicing" href="https://community.sap.com/t5/application-development-and-automation-blog-posts/qr-code-in-base64-encoding-for-ksa-e-invoicing-directly-from-data-in-table/ba-p/13514689" target="_self"&gt;QR Code in Base64 encoding for KSA E-Invoicing - Directly from data in Table EDOSAINV &lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;EM&gt;Note: In the- above Blog, QR Code is&amp;nbsp; encoded to Base 64, But I don't want this.&lt;/EM&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Configured System Bar Code in SE73 for QR Code with "QR Code 2005".&lt;/LI&gt;&lt;LI&gt;Created a smart form style, For a&amp;nbsp; Character font, assigned the QR Code system bar code to it.&lt;/LI&gt;&lt;LI&gt;Assigned the custom style to my custom Smart form.&lt;/LI&gt;&lt;LI&gt;Below is the code written in the Initialization of Smart form (Please note this is a prototype)&lt;/LI&gt;&lt;/OL&gt;&lt;LI-CODE lang="abap"&gt;*Global Data
 Data:
 EV_QRCODE type string. "or xstring&lt;/LI-CODE&gt;&lt;LI-CODE lang="abap"&gt;SELECT SINGLE
  FROM edoplinv
FIELDS *
 WHERE edoc_guid = '699D630206330553E1000000A467BBA9'
  INTO ls_edoplinv.

  DATA lv_image_base64 TYPE string.
  DATA lo_xstr_to_str_conv TYPE REF TO cl_abap_conv_in_ce.
  cl_abap_conv_in_ce=&amp;gt;create(
    EXPORTING
      encoding = 'UTF-8'
      input    = ls_edoplinv-qr_code_accepted
    RECEIVING
      conv     = lo_xstr_to_str_conv
  ).
  lo_xstr_to_str_conv-&amp;gt;read( IMPORTING data = lv_image_base64 ).

  DATA: lv_image_xstring TYPE xstring.
  lv_image_xstring = cl_http_utility=&amp;gt;decode_x_base64( 
                         encoded = lv_image_base64 ).

*--Assign to the QRCode variable used in the UI
   EV_QRCODE = lv_image_xstring&lt;/LI-CODE&gt;&lt;P&gt;In the smart form, created a text with the following snippet&lt;/P&gt;&lt;LI-CODE lang="abap"&gt;&amp;lt;QR&amp;gt;&amp;amp;EV_QRCODE&amp;amp;&amp;lt;/&amp;gt;​&lt;/LI-CODE&gt;&lt;P&gt;The QR Code is generated, but does not point to the KSeF, instead shows a 4 digit gibberish value.&lt;/P&gt;&lt;LI-CODE lang="abap"&gt;Expected URL starts with below URL
https://qr-demo.ksef.mf.gov/client-app/invoice/&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Can you please suggest how to fix it ?&lt;/P&gt;</description>
      <pubDate>Sat, 07 Mar 2026 15:13:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/replicate-the-qr-code-to-custom-smartform-decoding-from-table-edoplinv/qaq-p/14343690</guid>
      <dc:creator>Abh_2</dc:creator>
      <dc:date>2026-03-07T15:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: Replicate the QR Code to custom Smartform, decoding f...</title>
      <link>https://community.sap.com/t5/technology-q-a/replicate-the-qr-code-to-custom-smartform-decoding-from-table-edoplinv/qaa-p/14344636#M4938275</link>
      <description>&lt;P&gt;In a smartform you have two options for a QR code:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;system font: you pass the string value to the text node, set the appropriate paragraph / character type and done. Main problem: sizing and positioning can be extremely finicky&lt;/LI&gt;&lt;LI&gt;embedded image: you can generate an image dynamically, you can even come up with a dynamic name and pass it to the graphic node but you cannot pass the image content itself to the graphic node! This works in Adobe Forms, not in SF.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;What I did for a customer is: generate the image in the print program, save it to a dynamically-named image (so that concurrent printing of different invoices is possible), in the smartform read the appropriate name of the picture, when form is done remove the picture from DB.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2026 09:12:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/replicate-the-qr-code-to-custom-smartform-decoding-from-table-edoplinv/qaa-p/14344636#M4938275</guid>
      <dc:creator>abo</dc:creator>
      <dc:date>2026-03-09T09:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: Replicate the QR Code to custom Smartform, decoding f...</title>
      <link>https://community.sap.com/t5/technology-q-a/replicate-the-qr-code-to-custom-smartform-decoding-from-table-edoplinv/qaa-p/14380470#M4940850</link>
      <description>I have a similar problem to print the QR-Code on the SAPScript form for invoice. The code from Note 3714529 returns me the content from EDOPLINV-QR_CODE_ACCEPTED in the variable lv_image_xstring. I use a system font for printing the QR-code. That’s fine for me, but the QR code contains instead of the URL the content from EDOPLINV-QR_CODE_ACCEPTED. How can I receive the URL from EDOPLINV-QR_CODE_ACCEPTED ? Maybe you have a tip for me ?</description>
      <pubDate>Wed, 22 Apr 2026 11:36:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/replicate-the-qr-code-to-custom-smartform-decoding-from-table-edoplinv/qaa-p/14380470#M4940850</guid>
      <dc:creator>Bettina07</dc:creator>
      <dc:date>2026-04-22T11:36:03Z</dc:date>
    </item>
  </channel>
</rss>

