메뉴 건너뛰기

SAP 한국 커뮤니티

report zunicode_031.

sapjoy 2008.11.21 16:25 조회 수 : 2684

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.

번호 제목 글쓴이 날짜 조회 수
590 REPORT Z15_005 sapjoy 2007.01.31 2503
589 REPORT Z15_026 sapjoy 2007.01.31 2758
588 REPORT Z15_027 . sapjoy 2007.02.01 2715
587 REPORT Z15_028 sapjoy 2007.02.01 2509
586 REPORT z15_031 sapjoy 2007.02.05 2437
585 REPORT z15_032 sapjoy 2007.02.05 2578
584 REPORT Z15_033 sapjoy 2007.02.05 2987
583 REPORT Z15_034 sapjoy 2007.02.05 2079
582 REPORT Z15_035 sapjoy 2007.02.05 2162
581 REPORT Z15_036 sapjoy 2007.02.05 2214
580 REPORT Z15_037. sapjoy 2007.02.05 2472
579 REPORT Z15_038 sapjoy 2007.02.05 2175
578 REPORT Z15_039 sapjoy 2007.02.05 2315
577 REPORT Z17_001. sapjoy 2007.02.06 2147
576 REPORT Z17_002 sapjoy 2007.02.07 2138
575 REPORT Z17_003 sapjoy 2007.02.08 2347
574 REPORT Z17_004. sapjoy 2007.02.11 2508
573 REPORT Z17_005 sapjoy 2007.02.11 2174
572 REPORT Z17_006 sapjoy 2007.02.11 2208
571 REPORT Z017_007 [3] sapjoy 2007.02.11 2353