<?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: BAPI data required at runtime before commit in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-data-required-at-runtime-before-commit/m-p/1828575#M353315</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sudhir,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is not possible, not before commit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reason is that BAPIs make use of PERFORM ... ON COMMIT. In those forms global tables are evaluated, processed and data gets stored in the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could search for a userexit or badi shortly before data save takes place. At this point you may be able to see the data before they are committed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dynamic assign of global BAPI fields might also lead to a result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please explain your situation in detail: What (business) process will be controlled by the not-yet-and-maybe-never existing data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Feb 2007 13:36:25 GMT</pubDate>
    <dc:creator>Clemenss</dc:creator>
    <dc:date>2007-02-02T13:36:25Z</dc:date>
    <item>
      <title>BAPI data required at runtime before commit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-data-required-at-runtime-before-commit/m-p/1828572#M353312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using BAPI_EQUI_CREATE_BY_REFERENCE, I need to update certain custom fields in the newly created equipment(BASED ON THE NEWLY CREATED EQUIPMENT NUMBER) &amp;lt;b&amp;gt;before committing the BAPI&amp;lt;/b&amp;gt; &amp;amp; block the commit if certain logic fails!.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone please tell me a way to &amp;lt;b&amp;gt;&amp;lt;i&amp;gt;access the newly created data by BAPI before committing it&amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt;. Any help in this regard will be generously credited.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sudhir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2007 13:25:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-data-required-at-runtime-before-commit/m-p/1828572#M353312</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-02T13:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI data required at runtime before commit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-data-required-at-runtime-before-commit/m-p/1828573#M353313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sudhir,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. After calling the BAPI,&lt;/P&gt;&lt;P&gt;   u can use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; COMMIT WORK AND WAIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2007 13:28:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-data-required-at-runtime-before-commit/m-p/1828573#M353313</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-02T13:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI data required at runtime before commit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-data-required-at-runtime-before-commit/m-p/1828574#M353314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sudhir,&lt;/P&gt;&lt;P&gt;  The bapi will not get committed until you use the bapi_transaction_commit.&lt;/P&gt;&lt;P&gt;Before calling the bapi_transaction_commmit , you can check if the bapi was succesful(Based on the return table) and then conditionally commit or rollback using the bapi bapi_transaction_rollback).&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2007 13:31:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-data-required-at-runtime-before-commit/m-p/1828574#M353314</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-02T13:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI data required at runtime before commit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-data-required-at-runtime-before-commit/m-p/1828575#M353315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sudhir,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is not possible, not before commit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reason is that BAPIs make use of PERFORM ... ON COMMIT. In those forms global tables are evaluated, processed and data gets stored in the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could search for a userexit or badi shortly before data save takes place. At this point you may be able to see the data before they are committed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dynamic assign of global BAPI fields might also lead to a result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please explain your situation in detail: What (business) process will be controlled by the not-yet-and-maybe-never existing data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2007 13:36:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-data-required-at-runtime-before-commit/m-p/1828575#M353315</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2007-02-02T13:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI data required at runtime before commit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-data-required-at-runtime-before-commit/m-p/1828576#M353316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its not about commit or rollback guys, I can get the data that was created by the BAPI's return structures, but I need to change certain data before commiting the BAPI. Now how do I access &amp;amp; change the data that will be committed to the database!!??, any thoughts??.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sudhir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2007 13:40:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-data-required-at-runtime-before-commit/m-p/1828576#M353316</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-02T13:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI data required at runtime before commit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-data-required-at-runtime-before-commit/m-p/1828577#M353317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. how do I access &amp;amp; change the data &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Indirectly, there might be some user-exit or BADI,&lt;/P&gt;&lt;P&gt;  which will be called before the transaction is saved,&lt;/P&gt;&lt;P&gt;   (either manually,  OR either thru BAPI).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. There we can access/change the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Otherwise, there is no option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2007 13:43:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-data-required-at-runtime-before-commit/m-p/1828577#M353317</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-02T13:43:35Z</dc:date>
    </item>
  </channel>
</rss>

