on 2016 Aug 09 5:16 PM
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
Request clarification before answering.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.