2024 Jan 11 4:56 AM
can we upload the generated QR code to se78 by code?
I write this code to create QR code and please suggest me how i will upload it to se78 graphics other than manually.
CALL METHOD cl_rstx_barcode_renderer=>qr_code
EXPORTING
i_module_size = 120
* i_mode = 'A'
i_error_correction = 'L'
* i_rotation = 0
i_barcode_text = lv_qrcode_link
IMPORTING
e_bitmap = lv_qrcode.
DATA(it_raw_data) = cl_bcs_convert=>xstring_to_solix( EXPORTING iv_xstring = lv_qrcode ).
lv_xstrlen = xstrlen( lv_qrcode ).
CALL FUNCTION 'RSFO_XSTRING_TO_MIME'
EXPORTING
c_xstring = lv_qrcode
i_length = lv_xstrlen
TABLES
c_t_mime = lv_mime.
IF sy-subrc <> 0.
ENDIF.
2024 Jan 11 7:24 AM
2024 Jan 11 8:29 AM
The question has been asked a lot, even blog posts, and there is some detailed code given too. Search SAPSCRIPT_CONVERT_BITMAP_BDS as advised by Raymond.