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
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
591 | REPORT Z05_08. | sapjoy | 2012.07.31 | 944 |
590 | REPORT z05_05. | sapjoy | 2012.07.31 | 953 |
589 | REPORT z14_04. | sapjoy | 2012.08.02 | 953 |
588 | REPORT Z07_05. | sapjoy | 2012.07.31 | 954 |
587 | REPORT z17_11 . | sapjoy | 2012.08.02 | 954 |
586 | REPORT z12_10. | sapjoy | 2012.07.31 | 955 |
585 | REPORT Z12_20. | sapjoy | 2012.07.31 | 956 |
584 | REPORT z05_13. | sapjoy | 2012.07.31 | 958 |
583 | REPORT z12_12. | sapjoy | 2012.07.31 | 958 |
582 | REPORT Z12_19 | sapjoy | 2012.07.31 | 961 |
581 | REPORT z15_11. | sapjoy | 2012.08.02 | 963 |
580 | REPORT z15_27. | sapjoy | 2012.08.02 | 968 |
579 | REPORT Z16_02. | sapjoy | 2012.08.02 | 968 |
578 | REPORT z05_15. | sapjoy | 2012.07.31 | 969 |
577 | REPORT z17_09 . | sapjoy | 2012.08.02 | 977 |
576 | REPORT z17_12 . | sapjoy | 2012.08.02 | 977 |
575 | REPORT Z12_02 | sapjoy | 2012.07.31 | 980 |
574 | REPORT z14_19. | sapjoy | 2012.08.02 | 985 |
573 | REPORT z15_19. | sapjoy | 2012.08.02 | 985 |
572 | REPORT z05_29. | sapjoy | 2012.07.31 | 987 |