Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Create a QR code and upload to SE78

msj210798
Newcomer
0 Kudos
396

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.

2 REPLIES 2

raymond_giuseppi
Active Contributor

Sandra_Rossi
Active Contributor
0 Kudos
334

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.