<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: IDOC Filtering in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-filtering/m-p/1326048#M167005</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naren,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are two filtering in IDoc. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Segment Filtering&amp;lt;/b&amp;gt;:&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Data Filtering&amp;lt;/b&amp;gt;:&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check this link for detail information. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com//saphelp_470/helpdata/EN/0b/2a611c507d11d18ee90000e8366fc2/frameset.htm" target="test_blank"&gt;http://help.sap.com//saphelp_470/helpdata/EN/0b/2a611c507d11d18ee90000e8366fc2/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Apr 2006 13:55:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-04-27T13:55:52Z</dc:date>
    <item>
      <title>IDOC Filtering</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-filtering/m-p/1326047#M167004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to filter IDOCs based on segment field value. Could you please provide me information on the IDOC filteration. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Apr 2006 13:32:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-filtering/m-p/1326047#M167004</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-27T13:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: IDOC Filtering</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-filtering/m-p/1326048#M167005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naren,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are two filtering in IDoc. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Segment Filtering&amp;lt;/b&amp;gt;:&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Data Filtering&amp;lt;/b&amp;gt;:&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check this link for detail information. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com//saphelp_470/helpdata/EN/0b/2a611c507d11d18ee90000e8366fc2/frameset.htm" target="test_blank"&gt;http://help.sap.com//saphelp_470/helpdata/EN/0b/2a611c507d11d18ee90000e8366fc2/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Apr 2006 13:55:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-filtering/m-p/1326048#M167005</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-27T13:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: IDOC Filtering</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-filtering/m-p/1326049#M167006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  U will not be able to fill the data of idoc directly based on the segment data because value is stored as string :- structure of idoc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MANDT	-&lt;/P&gt;&lt;HR originaltext="---------------" /&gt;&lt;P&gt;Client&lt;/P&gt;&lt;P&gt;DOCNUM	-&lt;/P&gt;&lt;HR originaltext="----------------" /&gt;&lt;P&gt;IDoc number&lt;/P&gt;&lt;P&gt;COUNTER----&lt;/P&gt;&lt;HR originaltext="----------------------" /&gt;&lt;P&gt;Counter in cluster table&lt;/P&gt;&lt;P&gt;SEGNUM	-&lt;/P&gt;&lt;HR originaltext="-------------------------" /&gt;&lt;P&gt;Number of SAP segment&lt;/P&gt;&lt;P&gt;SEGNAM----&lt;/P&gt;&lt;HR originaltext="---------------------" /&gt;&lt;P&gt;Name of SAP segment&lt;/P&gt;&lt;P&gt;PSGNUM----&lt;/P&gt;&lt;HR originaltext="-----------------------" /&gt;&lt;P&gt;Number of the hierarchically higher SAP segment&lt;/P&gt;&lt;P&gt;HLEVEL	-&lt;/P&gt;&lt;HR originaltext="------------------------------" /&gt;&lt;P&gt;Hierarchy level&lt;/P&gt;&lt;P&gt;SDATA	-&lt;/P&gt;&lt;HR originaltext="-------------------------" /&gt;&lt;P&gt;Application data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Structure is self explanatory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Segnam----&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;stores the name of the segment&lt;/P&gt;&lt;P&gt;SDATA----&lt;/P&gt;&lt;HR originaltext="-----" /&gt;&lt;P&gt;Contains the value for the segment&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U need the data SDATA to be moved in corressponding segment structure to get appropriate shape to the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when u move the data into segment structure.  corresponding field of the segment get filled with the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still if u want to filter data based on the segment data &lt;/P&gt;&lt;P&gt;go ahead&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get idoc u can use direct select based on date, idoc type etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT idoctp docnum&lt;/P&gt;&lt;P&gt;  FROM  edidc&lt;/P&gt;&lt;P&gt;  INTO TABLE lit_idoc_nos&lt;/P&gt;&lt;P&gt;  WHERE credat EQ p_credat&lt;/P&gt;&lt;P&gt;  AND   docnum IN p_docnum&lt;/P&gt;&lt;P&gt;  AND   idoctp IN p_idoctp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u can use this function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;F.M-------&amp;gt; IDOC_READ_COMPLETELY&lt;/P&gt;&lt;P&gt;im --&amp;gt;document_number&lt;/P&gt;&lt;P&gt;ta --&amp;gt;int_edidd............structure mention above&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now rest i clear i suppose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;int_edidd------&amp;gt; this will contain data with segment name and idoc type which enough to help u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please mark the helpfull answers and close the thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Manoj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Apr 2006 14:14:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-filtering/m-p/1326049#M167006</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-27T14:14:43Z</dc:date>
    </item>
    <item>
      <title>Re: IDOC Filtering</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-filtering/m-p/1326050#M167007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;Definition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Filter objects are attributes of a message in the distribution model. A filter objects consists of a filter object type (for example, material type) and an assigned object value (for example PROD).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ALE uses filter objects in outbound processing. You can use the filter objects to specify the content of a message and its receivers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Filter objects function differently for message types and for BAPIs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When message types are filtered, all the IDoc segments containing a field with an object type name whose value does not match the object value are suppressed. The subsegments of these IDoc segments are also suppressed. &lt;/P&gt;&lt;P&gt;If the suppressed segment was a mandatory segment and provided that there are no other mandatory segments of the same name on the same IDoc hierarchy level, the higher-level IDoc segment is also suppressed. This process is repeated and the final result depends on the specific IDoc structure, mandatory segments and the segments that have been repeatedly processed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the uppermost mandatory segment of an IDoc still exists after this process, the rest of the IDoc is distributed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With BAPIs the filter object type corresponds to a parameter name. BAPI filter objects check whether a parameter contains the specified object value. An IDoc is created and distributed via the BAPI, only if this is the case.&lt;/P&gt;&lt;P&gt;The following distinction is made:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Receiver determination&lt;/P&gt;&lt;P&gt;When the receiver is determined, the filter objects are checked against the specified conditions and the valid receivers are reported back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For further information see  Determining the Receivers of a BAPI in the ALE Programming Guide.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameter filtering&lt;/P&gt;&lt;P&gt;The dataset of the BAPI tables is determined by filtering the BAPI table parameters, similar to filtering IDoc segments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For further information see  BAPI Parameter Filters in the ALE Programming Guide.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=======================&lt;/P&gt;&lt;P&gt;Segment filtering&lt;/P&gt;&lt;P&gt;Individual segments can be deleted from the IDoc before dispatch by selecting Functions for the IDoc processing -&amp;gt; Settings for filtering in ALE Customizing. The appropriate setting depends on the sending and receiving logical R/3 System.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field conversion&lt;/P&gt;&lt;P&gt;Receiver-specific field conversions are defined under Functions for the IDoc processing -&amp;gt; Conversions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;General rules can be specified for field conversions; these are important for converting data fields to exchange information between R/2 and R/3 Systems. For example, the field "plant" can be converted from a 2-character field to a 4-character field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The conversion is done using general EIS conversion tools (Executive Information System).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Apr 2006 14:24:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-filtering/m-p/1326050#M167007</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-27T14:24:42Z</dc:date>
    </item>
  </channel>
</rss>

