Skip to Content
avatar image
-1
Former Member

IDOC Segment Filter to send to one logical system

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Mar 15, 2017 at 06:06 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded