<?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: How to retreive value of DATE field in SAP-CLM? in Spend Management Q&amp;A</title>
    <link>https://community.sap.com/t5/spend-management-q-a/how-to-retreive-value-of-date-field-in-sap-clm/qaa-p/8207710#M127246</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the code below to get the email :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
vendorHome = IBeanHomeLocator.lookup(session,VendorIBeanHomeIfc.sHOME_NAME);
vendorBean = vendorHome.find(doc.getVendorRef());
email = vendorBean.getBuyerContactEmail();
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't forget the necessary imports.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this ends your confusion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Devesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Oct 2011 09:28:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-10-12T09:28:19Z</dc:date>
    <item>
      <title>How to retreive value of DATE field in SAP-CLM?</title>
      <link>https://community.sap.com/t5/spend-management-q-a/how-to-retreive-value-of-date-field-in-sap-clm/qaq-p/8207700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to retrieve value of "Date of Publish" field, please let me know what syntax is used for the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Saloni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Oct 2011 12:22:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/spend-management-q-a/how-to-retreive-value-of-date-field-in-sap-clm/qaq-p/8207700</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-07T12:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to retreive value of DATE field in SAP-CLM?</title>
      <link>https://community.sap.com/t5/spend-management-q-a/how-to-retreive-value-of-date-field-in-sap-clm/qaa-p/8207701#M127237</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;I am using below code to get values of DATE_TO_PUBLISH_DATE and CONTACT_EMAIL, but I am getting null output although there are values set in these fields. Here, publish date is date for publish to supplier and contact email is vendors mail id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you suggest if anything is missing? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;publish_date = doc.getExtensionField("DATE_TO_PUBLISH_DATE");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vendor_email = doc.getExtensionField("CONTACT_EMAIL");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Saloni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Oct 2011 15:17:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/spend-management-q-a/how-to-retreive-value-of-date-field-in-sap-clm/qaa-p/8207701#M127237</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-07T15:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to retreive value of DATE field in SAP-CLM?</title>
      <link>https://community.sap.com/t5/spend-management-q-a/how-to-retreive-value-of-date-field-in-sap-clm/qaa-p/8207702#M127238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;Only extension fields can  be accesed by doc.getExtensionField(..). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Standard fields can be accessed by the respective getter methods (e.g. getPublishDate()). If you don't see a simillar method exposed you should ask SAP for this through an OSS message giving some background aroudn your requirement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use a generic getter "get("Attribute_Name") "method to access standard fields ONLY if SAP confirms this field will be exposed as a fix .  Plese note you have a risk of using generic getters for unexposed fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Baski&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Oct 2011 15:52:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/spend-management-q-a/how-to-retreive-value-of-date-field-in-sap-clm/qaa-p/8207702#M127238</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-07T15:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to retreive value of DATE field in SAP-CLM?</title>
      <link>https://community.sap.com/t5/spend-management-q-a/how-to-retreive-value-of-date-field-in-sap-clm/qaa-p/8207703#M127239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Baski,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I needed to get values of Vendor_Visible, Date_To_Publish_Date and Email. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per your last reply, I checked in Setup--&amp;gt; Extension Definitions List. But these fields are not defined there. Although I am able to get value of Vendor_Visible using getExtensionField("Vendor_Visible") but not other two values. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please confirm how we get to know whether a field is extension field or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Saloni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2011 08:33:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/spend-management-q-a/how-to-retreive-value-of-date-field-in-sap-clm/qaa-p/8207703#M127239</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-10T08:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to retreive value of DATE field in SAP-CLM?</title>
      <link>https://community.sap.com/t5/spend-management-q-a/how-to-retreive-value-of-date-field-in-sap-clm/qaa-p/8207704#M127240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;As long as you don't define extension fields explicitly during customization, you won't have any extension fields. All the fields that are delivered are standard fields. &lt;/P&gt;&lt;P&gt;Coming to the question, &lt;/P&gt;&lt;P&gt;In the scenario explained, not sure how you a standard field value(Vendor_Visible) could be accessed through "doc.getExtensionField()". .  I seriously doubt that.. Please check. as this a boolean field, you may get FALSE all the time.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the IAPI document if you see any specifc methods for these variables, you may have to request SAP through an OSS message.&lt;/P&gt;&lt;P&gt;Thanks, Baski&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2011 08:45:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/spend-management-q-a/how-to-retreive-value-of-date-field-in-sap-clm/qaa-p/8207704#M127240</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-10T08:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to retreive value of DATE field in SAP-CLM?</title>
      <link>https://community.sap.com/t5/spend-management-q-a/how-to-retreive-value-of-date-field-in-sap-clm/qaa-p/8207705#M127241</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;Ok, I will try doing by defining extension fields as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While going through IAPI, I found the below methods &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;getPublishDate()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;getPublishToVendor()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;getVendorContactEmail()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I tried &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;doc.getPublishDate(), the following error was displayed,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sourced file: inline evaluation of: ``import com.sap.odp.api.util.&lt;/STRONG&gt;; import java.util.&lt;STRONG&gt;; import javax.mail.&lt;/STRONG&gt;; import j . . . '' : Error in method invocation: No args method getPublishDate() not found in class'com.frictionless.api.contracts.ContractIBeanImpl'*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any idea whether what is missing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Saloni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2011 08:53:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/spend-management-q-a/how-to-retreive-value-of-date-field-in-sap-clm/qaa-p/8207705#M127241</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-10T08:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to retreive value of DATE field in SAP-CLM?</title>
      <link>https://community.sap.com/t5/spend-management-q-a/how-to-retreive-value-of-date-field-in-sap-clm/qaa-p/8207706#M127242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Baski,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I tried to retrieve &lt;STRONG&gt;vendor_visible&lt;/STRONG&gt; and &lt;STRONG&gt;date_to_publish&lt;/STRONG&gt; using getExtensionField(" ") method, its working fine. But I am still not able to get value for &lt;STRONG&gt;Primary Contact Email&lt;/STRONG&gt; on Supplier Info tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am doubtful what is the attribute name we pass for EMAIL address on supplier info tab?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From where can we check this attribute name, as using database column name is not working?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Saloni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2011 13:38:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/spend-management-q-a/how-to-retreive-value-of-date-field-in-sap-clm/qaa-p/8207706#M127242</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-10T13:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to retreive value of DATE field in SAP-CLM?</title>
      <link>https://community.sap.com/t5/spend-management-q-a/how-to-retreive-value-of-date-field-in-sap-clm/qaa-p/8207707#M127243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Saloni, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to find the e-mail of the primary contact, do the following : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)Locate the corresponding VendorIBeanIfc for your MA/SA. Use IBean Management for this. &lt;/P&gt;&lt;P&gt;2)Use the getBuyerContactEmail() method on the bean to get the e-mail. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps &lt;/P&gt;&lt;P&gt;Devesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2011 12:56:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/spend-management-q-a/how-to-retreive-value-of-date-field-in-sap-clm/qaa-p/8207707#M127243</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-11T12:56:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to retreive value of DATE field in SAP-CLM?</title>
      <link>https://community.sap.com/t5/spend-management-q-a/how-to-retreive-value-of-date-field-in-sap-clm/qaa-p/8207708#M127244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Devesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried running the below script but it didnt work.&lt;/P&gt;&lt;P&gt;Can you please check if I am missing something?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;linkDefnHome = IBeanHomeLocator.lookup(session,DocumentLinkDefinitionIBeanHomeIfc.sHOME_NAME);&lt;/P&gt;&lt;P&gt;linkDefn = linkDefnHome.findUnique("FCI_MAS_CONTACT");&lt;/P&gt;&lt;P&gt;vendorEmail=linkDefn.getEmail();&lt;/P&gt;&lt;P&gt;throw doc.createApplicationException("VENDOR_VISIBLE", "Supplier Emailis "+vendorEmail);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, tried below but not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vendorEmail=linkDefn.getBuyerContactEmail();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Saloni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2011 14:06:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/spend-management-q-a/how-to-retreive-value-of-date-field-in-sap-clm/qaa-p/8207708#M127244</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-11T14:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to retreive value of DATE field in SAP-CLM?</title>
      <link>https://community.sap.com/t5/spend-management-q-a/how-to-retreive-value-of-date-field-in-sap-clm/qaa-p/8207709#M127245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Devesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In IBean Management, we need to obtain the bean object using below code. But I am not sure what is Unique Document Identifier for VendorIbeanIFC or ContactIBeanIFC. &lt;/P&gt;&lt;P&gt;Can you help with the same. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;linkDefnHome = IBeanHomeLocator.lookup(session, DocumentLinkDefinitionIBeanHomeIfc.sHOME_NAME);&lt;/P&gt;&lt;P&gt;// Find by Unique Document Identifier&lt;/P&gt;&lt;P&gt;//&lt;/P&gt;&lt;P&gt;linkDefn = linkDefnHome.findUnique("Unique document Identifier");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Saloni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2011 14:19:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/spend-management-q-a/how-to-retreive-value-of-date-field-in-sap-clm/qaa-p/8207709#M127245</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-11T14:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to retreive value of DATE field in SAP-CLM?</title>
      <link>https://community.sap.com/t5/spend-management-q-a/how-to-retreive-value-of-date-field-in-sap-clm/qaa-p/8207710#M127246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the code below to get the email :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
vendorHome = IBeanHomeLocator.lookup(session,VendorIBeanHomeIfc.sHOME_NAME);
vendorBean = vendorHome.find(doc.getVendorRef());
email = vendorBean.getBuyerContactEmail();
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't forget the necessary imports.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this ends your confusion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Devesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2011 09:28:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/spend-management-q-a/how-to-retreive-value-of-date-field-in-sap-clm/qaa-p/8207710#M127246</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-12T09:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to retreive value of DATE field in SAP-CLM?</title>
      <link>https://community.sap.com/t5/spend-management-q-a/how-to-retreive-value-of-date-field-in-sap-clm/qaa-p/8207711#M127247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Devesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks alot for your help. My problem is resolved now &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Saloni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2011 10:59:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/spend-management-q-a/how-to-retreive-value-of-date-field-in-sap-clm/qaa-p/8207711#M127247</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-12T10:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to retreive value of DATE field in SAP-CLM?</title>
      <link>https://community.sap.com/t5/spend-management-q-a/how-to-retreive-value-of-date-field-in-sap-clm/qaa-p/8207712#M127248</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;By using getContactRef( ) issue was resolved. VendorRef( ) was not working.&lt;/P&gt;&lt;P&gt;Using Ibean management was helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Saloni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2011 11:01:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/spend-management-q-a/how-to-retreive-value-of-date-field-in-sap-clm/qaa-p/8207712#M127248</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-12T11:01:29Z</dc:date>
    </item>
  </channel>
</rss>

