메뉴 건너뛰기

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 Z12_20. sapjoy 2012.07.30 926
589 REPORT z12_10. sapjoy 2012.07.30 927
588 REPORT z05_05. sapjoy 2012.07.30 931
587 REPORT Z12_19 sapjoy 2012.07.30 931
586 REPORT z12_12. sapjoy 2012.07.30 932
585 REPORT z14_04. sapjoy 2012.08.01 932
584 REPORT z17_11 . sapjoy 2012.08.01 933
583 REPORT z15_11. sapjoy 2012.08.01 937
582 REPORT Z16_02. sapjoy 2012.08.01 939
581 REPORT Z07_05. sapjoy 2012.07.30 943
580 REPORT z05_13. sapjoy 2012.07.30 945
579 REPORT z15_27. sapjoy 2012.08.01 946
578 REPORT z05_15. sapjoy 2012.07.30 948
577 REPORT z15_19. sapjoy 2012.08.01 952
576 REPORT Z12_02 sapjoy 2012.07.30 953
575 REPORT z17_09 . sapjoy 2012.08.01 954
574 REPORT z12_09. sapjoy 2012.07.30 960
573 REPORT z17_12 . sapjoy 2012.08.01 961
572 REPORT z15_26. sapjoy 2012.08.01 964
571 REPORT Z12_18. sapjoy 2012.07.30 967