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
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
589 | REPORT ZDYNAMIC_ITAB_08. | sapjoy | 2009.02.16 | 2760 |
588 | REPORT Z15_026 | sapjoy | 2007.01.31 | 2758 |
587 | REPORT Z07_002 . | sapjoy | 2006.12.06 | 2755 |
586 | REPORT Z17_019 [1] | sapjoy | 2007.02.14 | 2748 |
585 | REPORT Z03_021 [5] | sapjoy | 2007.05.15 | 2737 |
584 | REPORT Z03_005 [1] | sapjoy | 2006.12.02 | 2735 |
583 | report zunicode_034. [1] | sapjoy | 2008.11.21 | 2734 |
582 | REPORT z18_037 [3] | sapjoy | 2008.04.21 | 2728 |
581 | REPORT zBADI_FIND | sapjoy | 2009.01.15 | 2724 |
580 | REPORT Z15_027 . | sapjoy | 2007.02.01 | 2715 |
579 | REPORT z18_032 | sapjoy | 2008.04.21 | 2710 |
578 | TYPE-POOL ztgrp [1] | sapjoy | 2007.05.14 | 2699 |
577 | REPORT Z07_007 | sapjoy | 2006.12.07 | 2698 |
576 | zbapi_java | sapjoy | 2009.02.02 | 2693 |
575 | Z01_019 [2] | sapjoy | 2006.12.02 | 2688 |
» | report zunicode_031. | sapjoy | 2008.11.21 | 2684 |
573 | TOTAL | sapjoy | 2009.02.19 | 2683 |
572 | REPORT Z15_007 | eabap | 2007.01.23 | 2677 |
571 | REPORT z18_017 | sapjoy | 2007.03.11 | 2672 |
570 | REPORT z_userexit_01 | sapjoy | 2008.12.14 | 2655 |