Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Multiple MATMAS IDoc getting created through RBDMIDOC program

Former Member
0 Likes
1,271

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.

3 REPLIES 3
Read only

Former Member
0 Likes
759

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-SCENARIO

You 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.

Read only

0 Likes
759

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.

Read only

0 Likes
759

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.