Purpose:
When use tcode MB21/MB22, Stock Place are Mandatory, Use enhancement to do this.
Trigger Time:
After click save button on MB21/MB22.
Steps:
T-code:SE38
Report:MM07RFF0
Enhancement Spot:ZMB21 in Subroutine FUSSZEILE_SETZEN top.
FORM FUSSZEILE_SETZEN.
IF NOT FCAUSW-XNEUP IS INITIAL.
CLEAR: RESB, DM07R.
RESB-BWART = RKPF-BWART.
RESB-BDTER = RKPF-RSDAT.
RESB-XWAOK = X.
DM07R-BTEXT = KM07R-BTEXT.
DM07R-NAME1 = T001W-NAME1.
ENDIF.
ENDFORM.
*eject
*———————————————————————*
* FORM FUSSZEILE_RS *
*———————————————————————*
* Die Fusszeile fuer die Transaktionen Warenbewegungen ohne *
* Referenzbeleg wird bearbeitet. *
*———————————————————————*
FORM FUSSZEILE_RS.
“”””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””
“$”$\SE:(1) Form FUSSZEILE_RS, Anfang
*$*$-Start: (1)———————————————————————————$*$*
ENHANCEMENT 1 ZMB21. “active version
* 库存地点必输
IF RESB-WERKS+0(2) = ’83’
AND RESB-MATNR IS NOT INITIAL
AND RESB-LGORT IS INITIAL.
MESSAGE ‘库存地点为空,请维护!’ TYPE ‘E’.
ENDIF.
ENDENHANCEMENT.
我的微信公众号【 hot583 】 或者在这个链接联系我
本文链接 :http://www.hot583.com/2022/06/30/mm07rff0/
本文为作者原创,如果这篇文章对您有用,欢迎转载,
转载请务必注明来源《今日热点在看》http://www.hot583.com/
微信原文《全文完》