MIRO增强凭证拆分增强点

Function:FI_DOCUMENT_POST
Form:FI_DOCUMENT_PREPARE

隐士增强

SE38->LFACIF5D

  PERFORM fill_localization_fields.
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""$"$\SE:(1) Form FI_DOCUMENT_PREPARE, End                                                                                                                     A
*$*$-Start: (1)---------------------------------------------------------------------------------$*$*
ENHANCEMENT 1  ZEN_MIRO_SPLIT_ENHANCEMENT.    "active version
  BREAK yangtao.
  DATA:lv_active.
  CALL FUNCTION 'ZFMBS_CHECK_ENHNMT'
    EXPORTING
      i_program = 'LFACIF5D'
      i_method  = 'ZEN_MIRO_SPLIT_ENHANCEMENT'
      i_form    = 'MIRO'
*     I_BUKRS   =
*     I_WERKS   =
    CHANGING
      active    = lv_active.
  IF lv_active = 'X'.
    IF sy-tcode = 'MIRO' OR sy-tcode = 'MR8M' OR sy-tcode = 'MIR4' OR sy-tcode = 'MIR7'.
      IF line_exists( xbkpf[  bukrs = '1000' ] ) AND
          line_exists( xbkpf[  bukrs = '3000' ] ).
        DELETE xbkpf WHERE bukrs = '1000'.
        DELETE xbseg WHERE bukrs = '1000'.
      ENDIF.
    ENDIF.
  ENDIF.
ENDENHANCEMENT.
*$*$-End:   (1)---------------------------------------------------------------------------------$*$*
ENDFORM.                    "FI_DOCUMENT_PREPARE

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值