<?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: COEP Access in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/coep-access/m-p/4816553#M1127259</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check this code.but make sure you select all the KEY fields into internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select objnr kstar matnr INTO table itab from coep 
         where &amp;lt;condition&amp;gt;.

SORT itab.

loop at itab into wa_itab where kstar NE '519000'.  
v_index = sy-tabix. 
read table itab into wa_itab2 where objnr = wa_itab-objnr 
		      kstar = '519000' 
		      BINARY SEARCH.
IF sy-subrc = 0. 
wa_itab-matnr = wa_itab2-matnr. 
modify itab from wa_itab Index v_index transporting matnr. 
endif. 

clear wa_itab,wa_itab1. 
ENDLOOP. 
modify coep from itab. 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Dec 2008 21:01:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-12-03T21:01:02Z</dc:date>
    <item>
      <title>COEP Access</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/coep-access/m-p/4816552#M1127258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;i think i can post my query in more simpler way .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to replace all material here in same table with 20299 main materrial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to get main material .any object num for which kstar = 519000 in front of that is main material.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;objnr                    kstar     matnr&lt;/P&gt;&lt;P&gt;OR000000009726 510000 10043 &lt;/P&gt;&lt;P&gt;OR000000009726 510000 10030 &lt;/P&gt;&lt;P&gt;OR000000009726 510000 10025 &lt;/P&gt;&lt;P&gt;OR000000009726 510000 10035 &lt;/P&gt;&lt;P&gt;OR000000009726 519000 20299 &lt;/P&gt;&lt;P&gt;OR000000009726 510000 10035 &lt;/P&gt;&lt;P&gt;OR000000009726 519500 20299&lt;/P&gt;&lt;P&gt;OR000000009726 950145 20299&lt;/P&gt;&lt;P&gt;OR000000009726 950115 20299&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ivneet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Dec 2008 20:03:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/coep-access/m-p/4816552#M1127258</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-03T20:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: COEP Access</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/coep-access/m-p/4816553#M1127259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check this code.but make sure you select all the KEY fields into internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select objnr kstar matnr INTO table itab from coep 
         where &amp;lt;condition&amp;gt;.

SORT itab.

loop at itab into wa_itab where kstar NE '519000'.  
v_index = sy-tabix. 
read table itab into wa_itab2 where objnr = wa_itab-objnr 
		      kstar = '519000' 
		      BINARY SEARCH.
IF sy-subrc = 0. 
wa_itab-matnr = wa_itab2-matnr. 
modify itab from wa_itab Index v_index transporting matnr. 
endif. 

clear wa_itab,wa_itab1. 
ENDLOOP. 
modify coep from itab. 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Dec 2008 21:01:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/coep-access/m-p/4816553#M1127259</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-03T21:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: COEP Access</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/coep-access/m-p/4816554#M1127260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd make really sure I knew what I was doing before I updated a standard SAP table like this. Particularly one as important as this one that must be kept in synch with other tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Dec 2008 21:29:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/coep-access/m-p/4816554#M1127260</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-03T21:29:57Z</dc:date>
    </item>
  </channel>
</rss>

