MESSAGE_TYPE_X in Badi:MB_DOCUMENT_UPDATE_BEFORE

Note:385830
Instead of writing code in MB_DOCUMENT_BEFORE_UPDATE,write a check in user exit MBCF0002.This exit is having all the required parameters and also it will trigger while checking document and also posting document.

We can use '' sy-cprog'' to judge whether to use Validation Logic

原文地址:https://www.cnblogs.com/aurora-cj/p/10455960.html