on 08-10-2012 10:57 AM
I want to print barcode with two fields separated by tab space .I used below code for achive this .But in smartforms tab value show '#' symbol.
How to clear this probelm.
DATA:bar TYPE c VALUE cl_abap_char_utilities=>horizontal_tab.
DATA:test1 TYPE char10 VALUE 'TEST1'.
DATA:test2 TYPE char10 VALUE 'TEST2'.
DATA:test TYPE char20.
CONCATENATE test1 test2 INTO test SEPARATED BY bar.
Below method will do 100%.
Resolved this issue myself. Used '\0x09' to concatenate tab space between two fields. Moreover think this will work only in 2D bar coding (PDF 417).
Example:
Data: test1 type char5 value 'TEST1',
test2 type char5 value 'TEST2',
test type char15.
concatenate test1 '\0x09' test2 into test. " Use lowercase 'x'
Finally if you pass the string test to smartforms with bar code character type created in transaction SE73, bar code will be generated.
Thanks to all,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Try like this,
REPLACE ALL OCCURRENCES OF bar in <string> with space.
after this
DATA:bar TYPE c VALUE cl_abap_char_utilities=>horizontal_tab.
Gourav.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.