<?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: BAPI for fetching materials changed in a specific time range in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-fetching-materials-changed-in-a-specific-time-range/m-p/9711370#M1770204</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gita ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope in SAP No Material Master BAPI available which fetch the Material Master Record based on Created or Changed in Particular Duration , you can create your own custom function module or program using "MARA" table .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regard's&lt;/P&gt;&lt;P&gt;Smruti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Sep 2013 05:46:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-09-05T05:46:52Z</dc:date>
    <item>
      <title>BAPI for fetching materials changed in a specific time range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-fetching-materials-changed-in-a-specific-time-range/m-p/9711366#M1770200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement in my project wherein, we want to pull only the latest changed or created materials from SAP by giving a time range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The details about the requirement is that, initially we want to push all the materials created in ECC to an external legacy MES system. &lt;/P&gt;&lt;P&gt;Since materials are not changed or created very frequently, we want to schedule a background job that runs every day or every week to fetch materials, only created or changed in that duration. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a standard BAPI to do so?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;Gita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Sep 2013 05:14:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-fetching-materials-changed-in-a-specific-time-range/m-p/9711366#M1770200</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-09-05T05:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI for fetching materials changed in a specific time range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-fetching-materials-changed-in-a-specific-time-range/m-p/9711367#M1770201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gita.&lt;/P&gt;&lt;P&gt;You find the date of last change in MARA-laeda for a material.&lt;/P&gt;&lt;P&gt;Using &lt;STRONG&gt;BAPI_MATERIAL_GET_DETAIL&lt;/STRONG&gt;, you can get this data for a material.&lt;/P&gt;&lt;P&gt;Then using this data in an internal table, filter using date range and perform your business logic.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Sep 2013 05:34:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-fetching-materials-changed-in-a-specific-time-range/m-p/9711367#M1770201</guid>
      <dc:creator>Arun_Prabhu_K</dc:creator>
      <dc:date>2013-09-05T05:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI for fetching materials changed in a specific time range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-fetching-materials-changed-in-a-specific-time-range/m-p/9711368#M1770202</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;We are also tracking materials changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We use the "Change documentd" created during mm01 mm02 MM06.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Object class: MATERIAL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: cdhdr,cdpos,cdred .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: It is worthwhile building index over CDHDR - fields OBJECTCLAS , UDATE .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CHANGEDOCUMENT_READ_HEADERS'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CHANGEDOCUMENT_READ_POSITIONS'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Sep 2013 05:43:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-fetching-materials-changed-in-a-specific-time-range/m-p/9711368#M1770202</guid>
      <dc:creator>rosenberg_eitan</dc:creator>
      <dc:date>2013-09-05T05:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI for fetching materials changed in a specific time range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-fetching-materials-changed-in-a-specific-time-range/m-p/9711369#M1770203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gita,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to push data why need a BAPI....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can query MARA directly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : last_date type sy-datum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select * from MARA into table it_mara &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where ersda GE last_date or lesda GE last_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the BAPI or Normal selects of required data for these materials.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use IDoc methodology to update data in batches by activating change pointers no need to do any coding..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the receiving system should understand IDoc....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Sep 2013 05:46:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-fetching-materials-changed-in-a-specific-time-range/m-p/9711369#M1770203</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-09-05T05:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI for fetching materials changed in a specific time range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-fetching-materials-changed-in-a-specific-time-range/m-p/9711370#M1770204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gita ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope in SAP No Material Master BAPI available which fetch the Material Master Record based on Created or Changed in Particular Duration , you can create your own custom function module or program using "MARA" table .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regard's&lt;/P&gt;&lt;P&gt;Smruti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Sep 2013 05:46:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-fetching-materials-changed-in-a-specific-time-range/m-p/9711370#M1770204</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-09-05T05:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI for fetching materials changed in a specific time range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-fetching-materials-changed-in-a-specific-time-range/m-p/9711371#M1770205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gita,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there is a standard ALE scenario in SAP for distribution of material masters using change pointers and Idoc's. This might be an alternative for your requirement.&lt;/P&gt;&lt;P&gt;Maintain distribution module for MATMAS Idoc in BD64 and make sure change pointers are active.&lt;/P&gt;&lt;P&gt;Then run program RBDMIDOC for MATMAS regularly in a Job. This program will send all new and changed material masters since the last run.&lt;/P&gt;&lt;P&gt;The recieving application need of cource some logic for the Idoc processing or you use a middleware in between like PI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Sep 2013 07:47:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-fetching-materials-changed-in-a-specific-time-range/m-p/9711371#M1770205</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-09-05T07:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI for fetching materials changed in a specific time range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-fetching-materials-changed-in-a-specific-time-range/m-p/9711372#M1770206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Michael, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I will go for this approach. &lt;/P&gt;&lt;P&gt;Do we have something similar for inventory?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have another requirement where in any inventory change (GR/GI/Stock status change) needs to push the details to an external system whenever the change is carried out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;Gita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Sep 2013 10:16:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-fetching-materials-changed-in-a-specific-time-range/m-p/9711372#M1770206</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-09-05T10:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI for fetching materials changed in a specific time range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-fetching-materials-changed-in-a-specific-time-range/m-p/9711373#M1770207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gita,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;change pointer are used for master data, like material, customer, vendor.&lt;/P&gt;&lt;P&gt;In case of status change you sometimes find an event of the corresponding business object where you can develop an event receiver like it is in production order (BUS2005). In transactional data you often find message control like in purchase or sales orders where also Idoc's can be created based on conditions.&lt;/P&gt;&lt;P&gt;I am not sure if there is something for stock changes.&lt;/P&gt;&lt;P&gt;What do you mean by stock status change and in which SAP transaction you can see it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Sep 2013 13:02:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-fetching-materials-changed-in-a-specific-time-range/m-p/9711373#M1770207</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-09-05T13:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI for fetching materials changed in a specific time range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-fetching-materials-changed-in-a-specific-time-range/m-p/9711374#M1770208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Michael.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By Stock Status change, i mean when the status changes from unrestricted/blocked/quality etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For inventory my requirement is. Whenever there is a change in the inventory stock, like credit or debit, or the stock changes from unrestricted to blocked or vice versa, in real time I want some idoc to be sent to a MES so that both are in sync.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PLease help me with this requirement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;Gita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2013 03:17:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-fetching-materials-changed-in-a-specific-time-range/m-p/9711374#M1770208</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-09-06T03:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI for fetching materials changed in a specific time range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-fetching-materials-changed-in-a-specific-time-range/m-p/9711375#M1770209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gita,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did some investigation. There are options for message output of material documents.&lt;/P&gt;&lt;P&gt;But I would prefer to implement enhancement MB_CF001 in CMOD. Within FM EXIT_SAPLMBMB_001, which is called before a material document change is commited, you have to write your own logic for the checks and the interface. So you are free to define an own file structure or Idoc.&lt;/P&gt;&lt;P&gt;I would probably use the existing Idoc type WMMBID02 and fill the values within the exit.&lt;/P&gt;&lt;P&gt;You can transfer it to the ALE outbound layer by means of FM MASTER_IDOC_DISTRIBUTE. Rest are Idoc settings as usual in WE20, WE21.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps to find your solution. It will not be so easy then it is for "out-of-the-box" material master distribution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2013 07:20:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-fetching-materials-changed-in-a-specific-time-range/m-p/9711375#M1770209</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-09-06T07:20:13Z</dc:date>
    </item>
  </channel>
</rss>

