博客首页 注册 建议与交流 排行榜 加入友情链接         宝宝相册的专门空间
推荐 投诉 搜索: 帮助

雅心居

   nyj.cublog.cn
关于作者  
姓名:铁木真南
职业:PP/ABAP
年龄:
位置:广东/黑龙江
个性介绍:

我的分类  




se38程序加密
REPORT  ZBIANYI.
data:begin of itab occurs 0,
     line(72).
data:end of itab.
data g_in type string.
data g_out type xstring.
data g_c type string.
data g_line type i.
data g_x type i.
parameters:progrmm(100).
read report progrmm into itab.
loop at itab.
  g_line = strlen( itab-line ).
  clear g_x.
  do g_line times.
    g_c = itab-line+g_x(1).
    if not g_c is initial.
      CALL FUNCTION 'HR_KR_STRING_TO_XSTRING'
        EXPORTING
         CODEPAGE_TO            = '8500'
          UNICODE_STRING         = g_c
         OUT_LEN                = 0
       IMPORTING
         XSTRING_STREAM         = g_out
       EXCEPTIONS
         INVALID_CODEPAGE       = 1
         INVALID_STRING         = 2
         OTHERS                 = 3.
      g_out = g_out - 1.
      CALL FUNCTION 'HR_KR_XSTRING_TO_STRING'
        EXPORTING
         FROM_CODEPAGE       = '8500'
          IN_XSTRING          = g_out
         OUT_LEN             = 0
       IMPORTING
         OUT_STRING          = g_in.
    itab-line+g_x(1) = g_in.
    endif.
  g_x = g_x + 1.
  enddo.
  modify itab.
  write itab-line.
endloop.
INSERT REPORT progrmm FROM itab.
 
 
 
REPORT  ZJIEMA.
data:begin of itab occurs 0,
     line(72).
data:end of itab.
data g_in type string.
data g_out type xstring.
data g_c type string.
data g_line type i.
data g_x type i.
parameters:progrmm(100).
read report progrmm into itab.
loop at itab.
  g_line = strlen( itab-line ).
  clear g_x.
  do g_line times.
    g_c = itab-line+g_x(1).
    if not g_c is initial.
      CALL FUNCTION 'HR_KR_STRING_TO_XSTRING'
        EXPORTING
         CODEPAGE_TO            = '8500'
          UNICODE_STRING         = g_c
         OUT_LEN                = 0
       IMPORTING
         XSTRING_STREAM         = g_out
       EXCEPTIONS
         INVALID_CODEPAGE       = 1
         INVALID_STRING         = 2
         OTHERS                 = 3.
      g_out = g_out + 1.
      CALL FUNCTION 'HR_KR_XSTRING_TO_STRING'
        EXPORTING
         FROM_CODEPAGE       = '8500'
          IN_XSTRING          = g_out
         OUT_LEN             = 0
       IMPORTING
         OUT_STRING          = g_in.
    itab-line+g_x(1) = g_in.
    endif.
  g_x = g_x + 1.
  enddo.
  modify itab.
  write itab-line.
endloop.
INSERT REPORT progrmm FROM itab.

 原文地址 http://blog.chinaunix.net/u/32493/showart_321015.html
 发表于: 2008-05-20,修改于: 2008-05-20 10:29 已浏览73次,有评论0条 推荐 投诉

  网友评论

  发表评论



Copyright © 2001-2006 ChinaUnix.net All Rights Reserved

感谢所有关心和支持过ChinaUnix的朋友们
页面生成时间:0.1816

京ICP证041476号