‎2010 Oct 12 7:36 AM
Hello All,
I am creating MATMAS Idocs by RBDMIDOC proram, but as MATMAS message type is used in multiple distribution models ( i.e. MATAMAS is being sent to multiple partners), its creating multiple IDocs.
I want my IDoc to get triggered only for a particular partner. How can i acheive this ?
Searched on SDN but did not found solution.
‎2010 Oct 12 7:50 AM
As the standard settings, IDOCs will be transmitted to all the Partners which are maintained in WE20 (Partner Configuration). You can restrict the triggering of IDOC based on some condition using the Business transaction event MGV00100 (Publish & Subscribe). This event is called from Function module MASTERIDOC_CREATE_MATMAS (Line number 2074). Documentation of Standard FM SAMPLE_INTERFACE_MGV00100 reads
* Event rissen by the ALE outbound process for MATMAS.
* It allows to modify the idoc's control header the idoc data aswell
* as serialization information created by the standard SAP outbound
* process.
* Raising the EXCEPTION ERROR will prevent the IDOC from being
* submitted to the ALE layer.
* BE CAREFUL WITH ANY CHANGES TO IDOC_CONTROL. IT MAY EFFECT YOUR WHOLE
* ALE-SCENARIOYou have to copy the Standard FM SAMPLE_INTERFACE_MGV00100 to a Z function module and assign it using transaction code FIBF. Search SCN to get more details about configuring Business transaction events using FIBF.
‎2010 Oct 13 10:26 AM
Hi Vinod
Thanks for your help. I am stuck up at Process. When I am assigning Z function module to process in FIBF transaction Which process i need to select ?
In F4 help there is no process related to material master or ALE.
‎2010 Oct 13 10:42 AM
You can have a look at this WiKi post [Business Transaction Event - VKOA0100 - For Outbound Pricing IDOC Filtering |http://wiki.sdn.sap.com/wiki/display/ABAP/BusinessTransactionEvent-VKOA0100-ForOutboundPricingIDOCFiltering]to understand the process. This Wiki explain similar scenario related to Pricing Outbound Idocs.