会计文本替代ZRGGBS000

这篇博客介绍了会计文本替代的配置,主要涉及TCODE OBBH,程序ZRGGBS000的修复和更新。内容包括不同版本的修改,如客户退回订单、发票抬头/付款、发票明细等信息的替代,并提供了相应的代码示例,如U100、U101等用户退出点的实现。
摘要由CSDN通过智能技术生成

会计文本替代的配置的TCODE : OBBH

  PROGRAM zrggbs000 .
*---------------------------------------------------------------------*
* Corrections/ repair
* wms092357 070703 Note 638886: template routines to be used for
*                  workaround to substitute bseg-bewar from bseg-xref1/2
*---------------------------------------------------------------------*
*                                                                     *
*   Substitutions: EXIT-Formpool for Uxxx-Exits                       *
*                                                                     *
*   This formpool is used by SAP for testing purposes only.           *
*                                                                     *
*   Note: If you define a new user exit, you have to enter your       *
*         user exit in the form routine GET_EXIT_TITLES.              *
*                                                                     *
*---------------------------------------------------------------------*
*& 修改日期:2010.06.10
*& 修 改 人:zhouxu V1.0
*& 修改原因:1 客户退回订单会计文本替代
*& 修改日期:2010.08.10
*& 修 改 人:zhouxu V1.1
*& 修改原因:1 发票抬头/付款,发票明细/销售订单号/行项目号/物料编码/描述/数量/单位,替代到会计凭证明细文本字段(参考项目
*& 修改日期:2010.08.26
*& 修 改 人:zhouxu V1.2
*& 修改原因:1 采购订单 客户和简称复制的会计凭证行项目文本中
INCLUDE fgbbgd00.              "Standard data types


*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*
*    PLEASE INCLUDE THE FOLLOWING "TYPE-POOL"  AND "TABLES" COMMANDS  *
*        IF THE ACCOUNTING MODULE IS INSTALLED IN YOUR SYSTEM         *
TYPE-POOLS: gb002. " TO BE INCLUDED IN                       "wms092357
TABLES: bkpf,      " ANY SYSTEM THAT                         "wms092357
        bseg,      " HAS 'FI' INSTALLED                      "wms092357
        cobl,                                               "wms092357
        csks,                                               "wms092357
        anlz,                                               "wms092357
        glu1,                                               "wms092357
        vbak,                                               "susan
        kna1,                                               "susan
        tvaut.                                              "susan
*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*

DATA: v_lifnr LIKE bseg-lifnr, v_name1 LIKE lfa1-name1. "KHB
DATA: v_txz01 LIKE ekpo-txz01.                              "v1.2采购短文本
* v_name1 LIKE lfa1-name1. "KHB

*----------------------------------------------------------------------*
*       FORM GET_EXIT_TITLES                                           *
*----------------------------------------------------------------------*
*       returns name and title of all available standard-exits         *
*       every exit in this formpool has to be added to this form.      *
*       You have to specify a parameter type in order to enable the    *
*       code generation program to determine correctly how to          *
*       generate the user exit call, i.e. how many and what kind of    *
*       parameter(s) are used in the user exit.                        *
*       The following parameter types exist:                           *
*                                                                      *
*       TYPE                Description              Usage             *
*    ------------------------------------------------------------      *
*       C_EXIT_PARAM_NONE   Use no parameter         Subst. and Valid. *
*                           except B_RESULT                            *
*       C_EXIT_PARAM_FIELD  Use one field as param.  Only Substitution *
*       C_EXIT_PARAM_CLASS  Use a type as parameter  Subst. and Valid  *
*                                                                      *
*----------------------------------------------------------------------*
*  -->  EXIT_TAB  table with exit-name and exit-titles                 *
*                 structure: NAME(5), PARAM(1), TITEL(60)
*----------------------------------------------------------------------*
FORM get_exit_titles TABLES etab.

  DATA: BEGIN OF exits OCCURS 50,
          name(5)   TYPE c,
          param     LIKE c_exit_param_none,
          title(60) TYPE c,
        END OF exits.

  exits-name  = 'U100'.
  exits-param = c_exit_param_none.
  exits-title = text-100.             "Cost center from CSKS
  APPEND exits.

  exits-name  = 'U101'.
  exits-param = c_exit_param_field.
  exits-title = text-101.             "Cost center from CSKS
  APPEND exits.

  exits-name  = 'U901'.
  exits-param = c_exit_param_field.
  exits-title = text-101.             "Cost center from CSKS
  APPEND exits.

  exits-name  = 'U902'.               "KHB
  exits-param = c_exit_param_field.
  exits-title = text-902.             "A类/K类/F类的PO上物料描述放SGTXT上
  APPEND exits.

  exits-name  = 'U903'.               "Susan 2009-7-21
  exits-param = c_exit_param_field.
  exits-title = text-903.             "ZFD订单,将样品发放字样及物料描述、订单原因放在SGTXT上
  APPEND exits.

  exits-name  = 'U904'.               "
  exits-param = c_exit_param_field.
  exits-title = text-999.             "
  APPEND exits.
*  begin V1.1
  exits-name  = 'U905'.               "
  exits-param = c_exit_param_field.
  exits-title = text-101.             "
  APPEND exits.
**  end v1.1
  exits-name  = 'U911'.
  exits-param = c_exit_param_field.
  exits-title = text-101.             "Cost center from CSKS
  APPEND exits.

* begin of insertion                                          "wms092357
  exits-name  = 'U200'.
  exits-param = c_exit_param_field.
  exits-title = text-200.             "Cons. transaction type
  APPEND exits.                       "from xref1/2
* end of insertion                                            "wms092357

************************************************************************
* PLEASE DELETE THE

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值