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 Segment Filter to send to one logical system

Former Member
0 Kudos

Hi Experts,

I have a new custom segment, added to custom extension of basic type CREMAS.

Currently MDG sends two outbound IDocs to 2 systems, 1 ECC and other non-sap, middleware.

I want this new IDoc segment to be sent to only middleware and not ECC system.

I have added the filter in BD56, with the custom segement. however it looks like only standard segments like 'E1KNVKM' came be filtered out and not custom ('Y') segments

I have tried few BADIs, IDOC_DATA_INSERT and IDOC_DATA_MAPPER, the replication is not triggered here.

Thank you very much.

2 REPLIES 2

Former Member
0 Kudos

Hi all,

Was able to solve the issue by enhancing a standard functional module MASTER_IDOC_DISTRIBUTE, where we can get IDOC control record which has sender&receiver partner and also IDOC data.

Hence we can specify conditions in source system enhancements to restrict particular segments based on logical system. Else we can also just add the same segment in target and not use. the other option is to restrict at the inbound IDOC once the segment is received at the target logical system. The latter options will be valid if the target system will agree for code changes.

BD56 will just work for sap segments but not custom segments.

Thank You, Shaila.

Former Member

will note that. Thank you.