码迷,mamicode.com
首页 > 其他好文 > 详细

ZACC_DOCUMENT

时间:2016-11-15 16:57:43      阅读:148      评论:0      收藏:0      [点我收藏+]

标签:index   symbol   ssi   pre   res   alt   creat   sub   struct   

技术分享

  method if_ex_acc_document~change.
    data: wa_extension   type        bapiparex,
          ext_value(960) type        c,
          wa_accit       type        accit,
          l_ref          type ref to data.

    field-symbols: <l_struc> type any,
                   <l_field> type any.

    sort c_extension2 by structure.

    loop at c_extension2 into wa_extension.
      at new structure.
        create data l_ref type (wa_extension-structure).
        assign l_ref->* to <l_struc>.
      endat.
      concatenate wa_extension-valuepart1 wa_extension-valuepart2
                  wa_extension-valuepart3 wa_extension-valuepart4
             into ext_value.
      move ext_value to <l_struc>.
      assign component POSNR of structure <l_struc> to <l_field>.
      read table c_accit with key posnr = <l_field>
            into wa_accit.
      if sy-subrc is initial.
        move-corresponding <l_struc> to wa_accit.
        modify c_accit from wa_accit index sy-tabix.
      endif.
    endloop.
  endmethod.

 

ZACC_DOCUMENT

标签:index   symbol   ssi   pre   res   alt   creat   sub   struct   

原文地址:http://www.cnblogs.com/sapSB/p/6065914.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!