<?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 Read Material Classification during MM01 creation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-material-classification-during-mm01-creation/m-p/5991993#M1342771</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my requirement is to send Idocs to different system when a material is created or changed.   change pointers have been created and badi BDCP_BEFORE_WRITE is being used to filter out the records that don't need to be sent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the process works perfectly with one exception.   one of the filter criteria is a material classification we named COMMODITYTYPE.   at the moment my code looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT SINGLE ATWRT INTO l_CHAR_VALUE FROM AUSP&lt;/P&gt;&lt;P&gt;                             WHERE OBJEK = l_matnr&lt;/P&gt;&lt;P&gt;                             AND   ATINN = '0000000023'&lt;/P&gt;&lt;P&gt;                             AND   KLART = '001'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this works very well for changed materials (MM02) but it looks like AUSP is being updated in a separate update task and it hasn't been triggered at the time BDCP_BEFORE_WRITE gets triggered so there is nothing in the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am looking for a function module (or whatever) that can read the classification when BDCP_BEFORE_WRITE is triggered.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;has anyone come across this before?   any ideas?   thanks much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(running ECC 6.0)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Jul 2009 23:13:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-07-30T23:13:49Z</dc:date>
    <item>
      <title>Read Material Classification during MM01 creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-material-classification-during-mm01-creation/m-p/5991993#M1342771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my requirement is to send Idocs to different system when a material is created or changed.   change pointers have been created and badi BDCP_BEFORE_WRITE is being used to filter out the records that don't need to be sent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the process works perfectly with one exception.   one of the filter criteria is a material classification we named COMMODITYTYPE.   at the moment my code looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT SINGLE ATWRT INTO l_CHAR_VALUE FROM AUSP&lt;/P&gt;&lt;P&gt;                             WHERE OBJEK = l_matnr&lt;/P&gt;&lt;P&gt;                             AND   ATINN = '0000000023'&lt;/P&gt;&lt;P&gt;                             AND   KLART = '001'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this works very well for changed materials (MM02) but it looks like AUSP is being updated in a separate update task and it hasn't been triggered at the time BDCP_BEFORE_WRITE gets triggered so there is nothing in the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am looking for a function module (or whatever) that can read the classification when BDCP_BEFORE_WRITE is triggered.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;has anyone come across this before?   any ideas?   thanks much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(running ECC 6.0)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2009 23:13:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-material-classification-during-mm01-creation/m-p/5991993#M1342771</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-30T23:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: Read Material Classification during MM01 creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-material-classification-during-mm01-creation/m-p/5991994#M1342772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi James,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for material classification,  i think you are using CLFMAS message type. if you are not using then use this.&lt;/P&gt;&lt;P&gt;use FM: IDOC_INPUT_CLFMAS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tutun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2009 04:28:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-material-classification-during-mm01-creation/m-p/5991994#M1342772</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-31T04:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: Read Material Classification during MM01 creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-material-classification-during-mm01-creation/m-p/5991995#M1342773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;tutun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your reply.   however, i may not have been clear.   i am not actually sending the classification in the material idoc (and we are using MATMAS as the basic type).   in fact, the idoc gets created with everything we want.   the issue is filtering the change pointers at the time of creation.    we only want tocreate idocs for certain materials and one of the filter criteria is the classification COMMODITYTYPE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so as i go through the MM01 views i can see the correct value in the COMMODITYTYPE field but when i look in AUSP during the BADI BDCP_BEFORE_WRITE it is not there - it gets updated in a secondary update task.    so this value is sitting in memory somewhere and i am trying to find it.   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i hope that helps explain things.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;james&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2009 16:14:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-material-classification-during-mm01-creation/m-p/5991995#M1342773</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-31T16:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: Read Material Classification during MM01 creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-material-classification-during-mm01-creation/m-p/5991996#M1342774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Same issue. Not solved... &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2009 01:35:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-material-classification-during-mm01-creation/m-p/5991996#M1342774</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-27T01:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: Read Material Classification during MM01 creation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-material-classification-during-mm01-creation/m-p/5991997#M1342775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;alex,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there is no direct solution - that was confirmed by OSS.  what i came up as an alternative was to copy the classification to an unused material mater (MARA) field within a user exit.    since the MARA values are available in BDCP_BEFORE_WRITE this works to solve the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is clumsy but it worked and was the only solution that i could come up with.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;james&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2009 17:18:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-material-classification-during-mm01-creation/m-p/5991997#M1342775</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-27T17:18:49Z</dc:date>
    </item>
  </channel>
</rss>

