report zunicode_031.
data : l_text(3) type c,
l_len type i.
data : seltab type table of rsparams with header line.
data: buffer1 type xstring,
buffer2 type xstring,
p_buf1(100) type c,
p_buf2(100) type c,
conv type ref to cl_abap_conv_out_ce.
conv = cl_abap_conv_out_ce=>create(
encoding = '8500'
endian = 'B'
).
data xstr_len type i.
data: off_len type i.
constants: blank(1) type x value '20'.
l_text = '가나다'.
l_len = strlen( l_text ).
conv->convert( exporting data = l_text
importing buffer = buffer1 ).
conv->convert( exporting data = l_len
importing buffer = buffer2 ).
* Output buffers with converted data call up
xstr_len = xstrlen( buffer1 ).
xstr_len = xstrlen( buffer1 ).
if l_len > xstr_len.
off_len = l_len - xstr_len.
do off_len times.
concatenate buffer1 blank into buffer1 in byte mode.
enddo.
else.
buffer1 = buffer1+0(l_len).
endif.
p_buf1 = buffer1.
p_buf2 = buffer2.
clear seltab.
seltab-selname = 'P_BUF1'.
seltab-kind = 'P'.
seltab-sign = 'I'.
seltab-option = 'EQ'.
seltab-low = p_buf1.
append seltab.
clear seltab.
seltab-selname = 'P_BUF2'.
seltab-kind = 'P'.
seltab-sign = 'I'.
seltab-option = 'EQ'.
seltab-low = p_buf2.
append seltab.
submit zunicode_032
with selection-table seltab
via selection-screen
and return.
댓글 0
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
110 | REPORT Z07_026 [3] | sapjoy | 2006.12.08 | 2632 |
109 | REPORT Z13_013 | sapjoy | 2007.01.08 | 2634 |
108 | report zunicode_032. | sapjoy | 2008.11.21 | 2634 |
107 | REPORT z18_038 [2] | sapjoy | 2008.04.21 | 2635 |
106 | REPORT ZDYNAMIC_ITAB_12. | sapjoy | 2009.02.16 | 2643 |
105 | REPORT Z15_001 [2] | sapjoy | 2008.04.15 | 2647 |
104 | REPORT z16_002 | sapjoy | 2008.08.07 | 2649 |
103 | REPORT ZRTTS_01 . | sapjoy | 2009.12.24 | 2652 |
102 | REPORT Z05_013 [3] | sapjoy | 2008.04.14 | 2653 |
101 | REPORT Z03_010 [2] | sapjoy | 2007.05.14 | 2655 |
100 | REPORT z_userexit_01 | sapjoy | 2008.12.14 | 2655 |
99 | REPORT z18_017 | sapjoy | 2007.03.11 | 2672 |
98 | REPORT Z15_007 | eabap | 2007.01.23 | 2678 |
97 | TOTAL | sapjoy | 2009.02.19 | 2683 |
» | report zunicode_031. | sapjoy | 2008.11.21 | 2684 |
95 | Z01_019 [2] | sapjoy | 2006.12.02 | 2688 |
94 | zbapi_java | sapjoy | 2009.02.02 | 2693 |
93 | REPORT Z07_007 | sapjoy | 2006.12.07 | 2698 |
92 | TYPE-POOL ztgrp [1] | sapjoy | 2007.05.14 | 2699 |
91 | REPORT z18_032 | sapjoy | 2008.04.21 | 2710 |