cancel
Showing results for 
Search instead for 
Did you mean: 

printing 2D barcodes from SAP

Former Member
0 Kudos

HI everyone,

We are trying to print 2D barcodes from SAP but are having trouble with the ASCII character translation.  We seem to have issues with the group, record separators and the EOT and header coding.  Our barcode needs to have the [(>, [GS], [RS], and [EOT] come out on the scans, but they either come out as '#' symbols or the ASCII character numbers '_91, _41, _62, _30' .  Below is a copy of the code, can anybody help?  thanks!

-----

field-symbols:  <fs_char>.

*

data:

  lv_hex            type x length 4,

*  lv_1          type char01,

*  lv_2          type char01,

*  lv_3          type char01,

  lv_rs             type char02,

  lv_gs             type char02,

  lv_et            type char02.

lv_hex = '001E'.

assign lv_hex to <fs_char> casting type c.

lv_rs = <fs_char>.

lv_hex = '001D'.

assign lv_hex to <fs_char> casting type c.

lv_gs = <fs_char>.

lv_hex = '0004'.

assign lv_hex to <fs_char> casting type c.

lv_et = <fs_char>.

concatenate

           '[)>'

           lv_rs   " Record Sep.

           '06'

           lv_gs    " Group Seperator

           'P' gs_itm-kdmat     " Customer Part Number

           lv_gs                " Group Seperator

           '1P' gs_itm-matnr     " Supplier Part Number

            lv_gs                " Group Seperator

           'Q' gs_total-qty     " Quantity

            lv_gs                " Group Seperator

           'D' gs_itm-date_code " Date Code

           lv_gs                 " Group Seperator

           '1T' gs_itm-lot_code " Lot Code

           lv_gs                " Group Seperator

           '4L' gs_itm-herkl    " Country of Origin

            lv_rs                " Record Seperator

            lv_et                " End of Transmission

           into lv_pdf417

Accepted Solutions (0)

Answers (1)

Answers (1)

Szczerbowski
Active Participant
0 Kudos

Are you sure you're in the right forum?

This belongs in ABAP or something like that; here you have Training and Education related content.