Application Development 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: 

IDOC filtering

Former Member
0 Kudos

I have a quick question here. I am having 2 distribution models created for 2 destinations. They have filters on company code X and Y.

I mean one model has filter on X and other on Y.

When I send 2 customers belonging to company code X and Y using BD12 program, will 4 communication idocs gets generated or only 2 comm. idocs are generated?

If 4 comm. idocs are generated, when will those be filtered out? At the time of sending out using RSEOUT00?

Thanks,

1 ACCEPTED SOLUTION

ferry_lianto
Active Contributor
0 Kudos

Hi Naren,

There are two filtering in IDoc.

Segment Filtering:

Segment filtering can be achieved using T/Code BD56. Here you can suppress a whole segment irrespective of data inside it . You have to give Message Type / Sender Prrtner / Receiver Partner.

Data Filtering:

Data filtering can be done in dustribution model where you can restrict whole IDOCS or partials IDOCS to be send based on data in fields inside IDOC depending on whether the segment in which you filter is at the highest level or at a lower level. For example in MATMAS if you put a filter of E1MARCM for a particular plant , only data for this plant will go and other plants will be ignored.

Please check this link for detail information.

http://help.sap.com//saphelp_470/helpdata/EN/0b/2a611c507d11d18ee90000e8366fc2/frameset.htm

For your cases when running BD12:

- If you use distribution model A which has filter on company code X, SAP will generate IDoc(s) ONLY belong to company X.

- If you use distribution model B which has filter on company code Y, SAP will generate IDoc(s) ONLY belong to company Y.

The filter is happening when the IDoc(s) distributes to a given logical system (in your case when you are running RSEOUT00).

Hope this will help.

Regards,

Ferry Lianto

Please reward points if helpful.

2 REPLIES 2

ferry_lianto
Active Contributor
0 Kudos

Hi Naren,

There are two filtering in IDoc.

Segment Filtering:

Segment filtering can be achieved using T/Code BD56. Here you can suppress a whole segment irrespective of data inside it . You have to give Message Type / Sender Prrtner / Receiver Partner.

Data Filtering:

Data filtering can be done in dustribution model where you can restrict whole IDOCS or partials IDOCS to be send based on data in fields inside IDOC depending on whether the segment in which you filter is at the highest level or at a lower level. For example in MATMAS if you put a filter of E1MARCM for a particular plant , only data for this plant will go and other plants will be ignored.

Please check this link for detail information.

http://help.sap.com//saphelp_470/helpdata/EN/0b/2a611c507d11d18ee90000e8366fc2/frameset.htm

For your cases when running BD12:

- If you use distribution model A which has filter on company code X, SAP will generate IDoc(s) ONLY belong to company X.

- If you use distribution model B which has filter on company code Y, SAP will generate IDoc(s) ONLY belong to company Y.

The filter is happening when the IDoc(s) distributes to a given logical system (in your case when you are running RSEOUT00).

Hope this will help.

Regards,

Ferry Lianto

Please reward points if helpful.

Former Member
0 Kudos

Hi Naren,

Hope the Filtering concept is clear with the reply for Fierry, If your Filter Criteria is on the company code, only 2 communication IDOCs are created when you run BD12. Filtering will be done before you run RSEOUT00 program.

Cheers...

Santosh.

P.S. Rewards Points for Usefull answers.