SAP的第一代增强


In the first generation enhancement .The head of program is at beginning of user exits.
We demonstrate it by sales order

1. How to enhance in th va01

When we create sales order, we need check PO number.
在这里插入图片描述

2. How to find enhancement spot

In the spro we can find it
在这里插入图片描述
we find the to explain document.
在这里插入图片描述
When we click porgramme or go to the vmod , we may modify code in the form.
在这里插入图片描述在这里插入图片描述

4 Example

The enhancement is in the vl02n.

  DATA:LT_ZTMM129 LIKE TABLE OF ZTMM129,
       LW_ZTMM129 LIKE LINE OF  LT_ZTMM129.

  DATA:LSTRING  TYPE CHAR50.

 data:lt_XLIPS like TABLE OF XLIPS,
      LW_XLIPS LIKE LINE OF  lt_XLIPS .

*  DATA:R_UCOMM TYPE SY-UCOMM.
*
*
*  R_UCOMM =  SY-UCOMM.
*
*  CHECK R_UCOMM  = 'WABU_T'.


  if LIKP-LFART = 'NLCC' .
  SELECT * FROM  ZTMM129  INTO CORRESPONDING FIELDS OF TABLE LT_ZTMM129.

  LOOP AT XLIPS INTO LIPS.

    MOVE-CORRESPONDING XLIPS TO  LW_XLIPS.

    check  LW_XLIPS-BWART = '643' .


    CHECK   LT_ZTMM129  IS NOT INITIAL.

    READ TABLE LT_ZTMM129  INTO LW_ZTMM129 WITH KEY WERKS = LW_XLIPS-WERKS
    LGORT = LW_XLIPS-LGORT TRANSPORTING NO FIELDS.
    CHECK SY-SUBRC = 0 .
    CONCATENATE LW_XLIPS-WERKS LW_XLIPS-LGORT  '不允许做643移动类型出库!'INTO LSTRING.

    MESSAGE LSTRING TYPE 'E'.

    CLEAR: LW_XLIPS.
  ENDLOOP.

  endif.
4 Summary

1.The advantage is that it is easy for changing code. The weakness is that when you update the SAP and the code is lost.
2.MV50AFZ1 spro . We can serach it in the sap community. And you confirm if it is right.
3. you can find it by se80 or vmod or spro(usage).
4. we can use standard data directly.
5. we use ‘/H’ and read standard button 's name.
6 we can use bapi. and don’t clear standard work area.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值