<?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>Question Re: Script to add suppliers in project document in Spend Management Q&amp;A</title>
    <link>https://community.sap.com/t5/spend-management-q-a/script-to-add-suppliers-in-project-document/qaa-p/11184646#M167582</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sudipta,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see the below code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;supplierContactColl = doc.getVendorList();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;StandardVendor=&lt;SPAN style="color: #333333; font-size: 12px;"&gt;supplierContactColl &lt;/SPAN&gt;.create();&lt;/P&gt;&lt;P&gt;StandardVendor.setUniqueName("VEN-0000002");&lt;/P&gt;&lt;P&gt;StandardVendor.setDisplayName("ABC Ltd");&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;StandardVendor.setContactEmail("&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:seraka@xx.com"&gt;seraka@xx.com&lt;/A&gt;&lt;SPAN&gt;");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;supplierContactColl .add(StandardVendor);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Kushagra A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Jul 2015 11:06:31 GMT</pubDate>
    <dc:creator>kushagra_agrawal</dc:creator>
    <dc:date>2015-07-22T11:06:31Z</dc:date>
    <item>
      <title>Script to add suppliers in project document</title>
      <link>https://community.sap.com/t5/spend-management-q-a/script-to-add-suppliers-in-project-document/qaq-p/11184642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are currently running on SAP Sourcing /CLM 10 . We are using project module with supplier tab .&amp;nbsp; Currently have a requirement for adding the supplier(s) in supplier tab of project via script ( instead of adding manually , needs to be added via script while saving the project&amp;nbsp; )&amp;nbsp; . The code we are trying is below but not working . &lt;/P&gt;&lt;P&gt;While saving the project document no error is appearing but supplier is also not appearing under supplier tab . Can you please guide ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;supplierContactColl = doc.getVendorList();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;StandardVendor=doc.&lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;getVendorList().create();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;StandardVendor.setUniqueName("&lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;VEN-0000002");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;StandardVendor.setDisplayName(&lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;"ABC Ltd");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;StandardVendor.&lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;setContactEmail("&lt;/SPAN&gt;&lt;A href="mailto:sdudaka@bh.com" style="color: #1155cc; font-family: arial, sans-serif; font-size: 12.8000001907349px;" target="_blank"&gt;seraka@xx.com&lt;/A&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px;"&gt;");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code is triggered on Project document and saving event . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here , we wanted to hard code a supplier to be added in supplier tab . The supplier is existing&amp;nbsp; in CLM . Once we have the above code working , we need to add supplier dynamically on saving event .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2015 07:39:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/spend-management-q-a/script-to-add-suppliers-in-project-document/qaq-p/11184642</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-07-22T07:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: Script to add suppliers in project document</title>
      <link>https://community.sap.com/t5/spend-management-q-a/script-to-add-suppliers-in-project-document/qaa-p/11184643#M167579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sudipta,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is not recommended to set the values in POST_SAVE Event, changes will not reflect to the opened document. Moreover this event occurs when all the vaidation is done and doc is saved in the DB.&amp;nbsp; Try to move your code to Validate event script and check. It should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Best,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Kushagra A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2015 08:09:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/spend-management-q-a/script-to-add-suppliers-in-project-document/qaa-p/11184643#M167579</guid>
      <dc:creator>kushagra_agrawal</dc:creator>
      <dc:date>2015-07-22T08:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: Script to add suppliers in project document</title>
      <link>https://community.sap.com/t5/spend-management-q-a/script-to-add-suppliers-in-project-document/qaa-p/11184644#M167580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply Kushagra.&lt;/P&gt;&lt;P&gt;I have tried the same for validated target , but no result . Is there anything I am missing in the code ?&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>Wed, 22 Jul 2015 10:27:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/spend-management-q-a/script-to-add-suppliers-in-project-document/qaa-p/11184644#M167580</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-07-22T10:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Script to add suppliers in project document</title>
      <link>https://community.sap.com/t5/spend-management-q-a/script-to-add-suppliers-in-project-document/qaa-p/11184645#M167581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure you also have:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;supplierContactColl.add(StandardVendor);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to add the newly created line to the collection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bogdan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2015 10:45:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/spend-management-q-a/script-to-add-suppliers-in-project-document/qaa-p/11184645#M167581</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-07-22T10:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: Script to add suppliers in project document</title>
      <link>https://community.sap.com/t5/spend-management-q-a/script-to-add-suppliers-in-project-document/qaa-p/11184646#M167582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sudipta,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see the below code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;supplierContactColl = doc.getVendorList();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;StandardVendor=&lt;SPAN style="color: #333333; font-size: 12px;"&gt;supplierContactColl &lt;/SPAN&gt;.create();&lt;/P&gt;&lt;P&gt;StandardVendor.setUniqueName("VEN-0000002");&lt;/P&gt;&lt;P&gt;StandardVendor.setDisplayName("ABC Ltd");&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;StandardVendor.setContactEmail("&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:seraka@xx.com"&gt;seraka@xx.com&lt;/A&gt;&lt;SPAN&gt;");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;supplierContactColl .add(StandardVendor);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Kushagra A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2015 11:06:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/spend-management-q-a/script-to-add-suppliers-in-project-document/qaa-p/11184646#M167582</guid>
      <dc:creator>kushagra_agrawal</dc:creator>
      <dc:date>2015-07-22T11:06:31Z</dc:date>
    </item>
  </channel>
</rss>

