<?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 get previous version data in SAVE badi? in Spend Management Q&amp;A</title>
    <link>https://community.sap.com/t5/spend-management-q-a/how-to-get-previous-version-data-in-save-badi/qaa-p/9416935#M148637</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hallo SG,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BBP_PD_SC_GETDETAIL do not have E_VERSIONS table.&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;Anubhav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 19 May 2013 10:02:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-05-19T10:02:00Z</dc:date>
    <item>
      <title>How to get previous version data in SAVE badi?</title>
      <link>https://community.sap.com/t5/spend-management-q-a/how-to-get-previous-version-data-in-save-badi/qaq-p/9416932</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;In BBP_DOC_SAVE_BADI using FM BBP_PD_SC_GETDETAIL gives the data currently entered in the UI i.e. for eg. if a SC was saved earlier with line item 1 quantity = 10 now the user is editing the SC and changed quantity to 100 so above FM returns 100 for 1st item quantity. &lt;/P&gt;&lt;P&gt;How can I get the previous data before it is changed i.e. how can I determine the last saved item details before the current session?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to get the change version GUID for item but that does not works.&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;Anubhav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2013 12:39:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/spend-management-q-a/how-to-get-previous-version-data-in-save-badi/qaq-p/9416932</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-05-14T12:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to get previous version data in SAVE badi?</title>
      <link>https://community.sap.com/t5/spend-management-q-a/how-to-get-previous-version-data-in-save-badi/qaa-p/9416933#M148635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Anubhav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please use the MF BBP_PD_SC_GETDETAIL, and read E_VERSIONS table, then use the versions's GUID to search again with BBP_PD_SC_GETDETAIL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is the way to search information in previous versions of the document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2013 13:17:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/spend-management-q-a/how-to-get-previous-version-data-in-save-badi/qaa-p/9416933#M148635</guid>
      <dc:creator>former_member208244</dc:creator>
      <dc:date>2013-05-14T13:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to get previous version data in SAVE badi?</title>
      <link>https://community.sap.com/t5/spend-management-q-a/how-to-get-previous-version-data-in-save-badi/qaa-p/9416934#M148636</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 would like to highlight two points here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. You cannot get the version information from BBP_PD_SC_GETDETAIL. For that you'll have to go to the generic BAPI "BBP_PROCDOC_GETDETAIL".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. A changed version of a document will not be created when you update a document in saved state.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can get the previously saved consistent value either directly from the table BBP_PDIGP or Reset the buffer using the function module&amp;nbsp;&amp;nbsp; BBP_PROCDOC_RESET_BUFFER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: If you reset buffer, then any changes to the document during the transaction will not be reflected. Use it cautiously.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Karthik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2013 11:28:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/spend-management-q-a/how-to-get-previous-version-data-in-save-badi/qaa-p/9416934#M148636</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-05-16T11:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to get previous version data in SAVE badi?</title>
      <link>https://community.sap.com/t5/spend-management-q-a/how-to-get-previous-version-data-in-save-badi/qaa-p/9416935#M148637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hallo SG,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BBP_PD_SC_GETDETAIL do not have E_VERSIONS table.&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;Anubhav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 May 2013 10:02:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/spend-management-q-a/how-to-get-previous-version-data-in-save-badi/qaa-p/9416935#M148637</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-05-19T10:02:00Z</dc:date>
    </item>
  </channel>
</rss>

