<?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 cs72 user exit in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/cs72-user-exit/m-p/6208379#M1377275</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Friends.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AS per my requirement  in tcode cs72 ' No duplicate material should be entered in BOM'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;System shoud give error message ,when duplicate material number is entered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to write logic (coding) in user exit pcsd0005.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i cannot understand what coding should be written.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one tell me the coding.&lt;/P&gt;&lt;P&gt;please.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Oct 2009 05:20:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-10-12T05:20:06Z</dc:date>
    <item>
      <title>cs72 user exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cs72-user-exit/m-p/6208379#M1377275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Friends.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AS per my requirement  in tcode cs72 ' No duplicate material should be entered in BOM'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;System shoud give error message ,when duplicate material number is entered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to write logic (coding) in user exit pcsd0005.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i cannot understand what coding should be written.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one tell me the coding.&lt;/P&gt;&lt;P&gt;please.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Oct 2009 05:20:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cs72-user-exit/m-p/6208379#M1377275</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-12T05:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: cs72 user exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cs72-user-exit/m-p/6208380#M1377276</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;from your requirement i understood that, no two material(material no.) should be same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so check whether the material entered are getting populated in the table 'MAT_BOM_ALLOCATION'. if populating, sort them by matnr and then loop the table and check whether user entered 2 same matnr and give ur error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ie.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;sort mat_bom_allocation.
loop at mat_bom_allocation.
  if sy-tabix = 1.
    wa = mat_bom_allocation.
  else.
    wa1 = mat_bom_allocation.
    if wa1 = wa.
      message e000(z1) with ' no duplicate materials allowed'.
      exit.
    else.
      wa1 = wa.
    endif.
  endif.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where wa and wa1 are work areas of mat_bom_allocation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sakthi Sri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2009 09:56:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cs72-user-exit/m-p/6208380#M1377276</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-13T09:56:52Z</dc:date>
    </item>
  </channel>
</rss>

