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
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
390 | report zunicode_010. | sapjoy | 2008.11.21 | 2281 |
389 | report zunicode_011. | sapjoy | 2008.11.21 | 2173 |
388 | report zunicode_012. | sapjoy | 2008.11.21 | 2217 |
387 | report zunicode_013. | sapjoy | 2008.11.21 | 2208 |
386 | report zunicode_014. | sapjoy | 2008.11.21 | 1735 |
385 | report zunicode_015. | sapjoy | 2008.11.21 | 2226 |
384 | report zunicode_016. | sapjoy | 2008.11.21 | 2301 |
383 | report zunicode_018. | sapjoy | 2008.11.21 | 2224 |
382 | report zunicode_019. | sapjoy | 2008.11.21 | 2323 |
381 | report zunicode_017. | sapjoy | 2008.11.21 | 2810 |
380 | report zunicode_022. | sapjoy | 2008.11.21 | 2611 |
379 | report zunicode_025. | sapjoy | 2008.11.21 | 2489 |
378 | report zunicode_026. | sapjoy | 2008.11.21 | 2782 |
377 | report zunicode_027. [4] | sapjoy | 2008.11.21 | 6262 |
376 | report zunicode_030. | sapjoy | 2008.11.21 | 2416 |
» | report zunicode_031. | sapjoy | 2008.11.21 | 2684 |
374 | report zunicode_032. | sapjoy | 2008.11.21 | 2634 |
373 | report zunicode_034. [1] | sapjoy | 2008.11.21 | 2734 |
372 | report zunicode_035. | sapjoy | 2008.11.21 | 2541 |
371 | REPORT ZSMARTFORMS_01. | sapjoy | 2008.11.26 | 2582 |