form download_qrcode using p_text type char255 changing p_check type c.
  data oref type ref to cx_root.
  data wa_source type zgen_qrsource.
  select single * from zgen_qrsource into wa_source. " Get webservice address for QR code generation


  check sy-subrc eq 0.

  concatenate wa_source-address p_text into url.

  call method cl_http_client=>create_by_url
    EXPORTING
      url                = url
    IMPORTING
      client             = http_client
    EXCEPTIONS
      argument_not_found = 1
      plugin_not_active  = 2
      internal_error     = 3
      others             = 4.

  if sy-subrc = 0.
 
 
Serkan AKKAVAK
Computer Engineer
ABAP Developer & SAP S/4 HANA Logistics Team Lead
Contact : serkurumsal@yandex.com