Skip to Content
-1

IDOC Segment Filter to send to one logical system

Mar 05, 2017 at 10:56 PM

105

avatar image

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.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Shaila Kasha Mar 15, 2017 at 06:06 PM
0

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.

Share
10 |10000 characters needed characters left characters exceeded