A Badi is available which can stop communication Idocs from being created. Check it out !
Badi IDOC_CREATION_CHECK
is available (via transaction SE18
). The article on "Customer distribution model" explains briefly how the master Idoc and communication Idocs work. The Badi can be used to suppress the creation of the actual communication Idoc. This can thus be a mechanism to avoid unwanted messages being produced.
The Badi implementation IDOC_CREATION_CHECK
implements a method IDOC_CREATION_CHECK
to which the Idoc header and Idoc data is passed (mind you at this point in processing the Idoc has not yet been created, thus no Idoc status information is available). Parameter CREATE_IDOC
is a flag that indicates whether the Idoc should be created.