메뉴 건너뛰기

SAP 한국 커뮤니티

report zunicode_031.

sapjoy 2008.11.22 01:25 조회 수 : 2714

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.

번호 제목 글쓴이 날짜 조회 수
311 Sub DOI_EXCEL_MACRO() sapjoy 2008.12.26 3349
310 Sub DOI_MACRO() sapjoy 2008.12.26 2885
309 DOI_002.doc [3] file sapjoy 2008.12.26 2276
308 doi_create [1] sapjoy 2008.12.26 3105
307 REPORT zsapdoi_001. [2] sapjoy 2008.12.20 3184
306 REPORT Z07_026 [3] sapjoy 2006.12.09 2685
305 Include ZXQEVU10 sapjoy 2008.12.17 2174
304 Include ZXCSAU05 sapjoy 2008.12.17 2186
303 FIELD_EXIT_STCD2_0 sapjoy 2008.12.16 2828
302 FIELD_EXIT_GSBER_I sapjoy 2008.12.16 2647
301 Include ZXCSAU05 sapjoy 2008.12.16 2610
300 INCLUDE ZXF04U01 sapjoy 2008.12.16 3741
299 INLUCDE ZXAISU02 sapjoy 2008.12.16 2983
298 REPORT z_userexit_01 sapjoy 2008.12.15 2679
297 REPORT ZSMARTFORMS_01. sapjoy 2008.11.26 2706
296 report zunicode_035. sapjoy 2008.11.22 2571
295 report zunicode_034. [1] sapjoy 2008.11.22 2780
294 report zunicode_032. sapjoy 2008.11.22 2658
» report zunicode_031. sapjoy 2008.11.22 2714
292 report zunicode_030. sapjoy 2008.11.22 2450