<?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: Using BAPI_TRANSACTION_COMMIT, but updates are not committed in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-transaction-commit-but-updates-are-not-committed/m-p/6826599#M1470841</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can check note 192235 for an explanation. The WAIT parameter ensure that the COMMIT returns only after all the updates are performed. I think that if your function updates sequentially many different objects, you can leave the parameter as space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bye&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Massimo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Apr 2010 08:08:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-04-21T08:08:14Z</dc:date>
    <item>
      <title>Using BAPI_TRANSACTION_COMMIT, but updates are not committed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-transaction-commit-but-updates-are-not-committed/m-p/6826594#M1470836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to perform a simple update on many objects in Real Estate Flexible (buildings)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I select the buildings that require changes using the standard logical DB, then i perform the updates, using the appropriate (I hope!) BAPI; the structure edifw contains the updated general building data (checked with debugger):&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
      CALL FUNCTION 'BAPI_RE_BU_CHANGE'
        EXPORTING
          COMPCODE                   = BUILDING-BUKRS
          BUSINESSENTITYNUMBER       = BUILDING-SWENR
          BUILDINGNUMBER             = BUILDING-SGENR
          BUILDING                   = edifw
*   BUILDING_X                 =
*   OBJECT_ADDRESS             =
*   OBJECT_ADDRESS_X           =
*   COSETTLE_PARAM             =
*   COSETTLE_PARAM_X           =
*   TRANS                      =
         TEST_RUN                   = P_TEST
        TABLES
*   TERM_ORG_ASSIGNMENT        =
*   MEASUREMENT                =
*   PARTNER                    =
*   OPTION_RATE                =
*   COSETTLE_RULE              =
*   CHARACT                    =
*   OBJ_ASSIGN                 =
*   RESUBM_RULE                =
*   RESUBM_DATE                =
*   ARCH_REL                   =
*   ARCH_RELMS                 =
*   STATUS                     =
*   EXTENSION_IN               =
          RETURN                     = bapir
*   INFRASTRUCTURE             =
                .
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The parameter P_TEST is set to space.&lt;/P&gt;&lt;P&gt;The BAPI returns a 'S' message (update was performed.&lt;/P&gt;&lt;P&gt;Next I call the COMMIT function:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
         EXPORTING
          WAIT          = 'X'
   IMPORTING
     RETURN        = bapiret
            .
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The commit BAPI is performed correctly, then the program exits.&lt;/P&gt;&lt;P&gt;The building data appears unchanged. Anyone can suggest why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also tried to execute the two transactions using the test sequence function of SE37.&lt;/P&gt;&lt;P&gt;The result is the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Massimo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Apr 2010 08:23:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-transaction-commit-but-updates-are-not-committed/m-p/6826594#M1470836</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-20T08:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: Using BAPI_TRANSACTION_COMMIT, but updates are not committed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-transaction-commit-but-updates-are-not-committed/m-p/6826595#M1470837</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;You need to pass the chnage indicator of the building in the BAPI parameters. I am suspecting that you need to pass the &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change indicator = U in the    BUILDING_X = X in the BAPI parameters. Check and let me know.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Apr 2010 08:30:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-transaction-commit-but-updates-are-not-committed/m-p/6826595#M1470837</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-20T08:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: Using BAPI_TRANSACTION_COMMIT, but updates are not committed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-transaction-commit-but-updates-are-not-committed/m-p/6826596#M1470838</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;In the function module 'BAPI_TRANSACTION_COMMIT', pass parameter WAIT = space. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you refer the F1 help on the ABAP statement COMMIT WORK AND WAIT, you will find that WAIT flag need not be marked in your case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;Jayesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Jayesh Gupta on Apr 20, 2010 10:37 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Apr 2010 08:35:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-transaction-commit-but-updates-are-not-committed/m-p/6826596#M1470838</guid>
      <dc:creator>jayesh_gupta</dc:creator>
      <dc:date>2010-04-20T08:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: Using BAPI_TRANSACTION_COMMIT, but updates are not committed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-transaction-commit-but-updates-are-not-committed/m-p/6826597#M1470839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wonderful, it was that the problem, I have misunderstood the documentation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Massimo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Apr 2010 08:49:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-transaction-commit-but-updates-are-not-committed/m-p/6826597#M1470839</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-20T08:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: Using BAPI_TRANSACTION_COMMIT, but updates are not committed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-transaction-commit-but-updates-are-not-committed/m-p/6826598#M1470840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jayesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I read your comment on not setting the wait parameter = 'X'.  How do I know when I absolutely need to set it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are experiencing slowness since I have a BAPI in which calls the BAPI_TRANSACTION_COMMITT 15 times and I have set the wait = 'X' for each one CALL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to figure out what will happen if I change all the wait = ' ' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in-advance..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I looked at the help file and it didn't really say anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark Carns&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Apr 2010 21:00:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-transaction-commit-but-updates-are-not-committed/m-p/6826598#M1470840</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-20T21:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: Using BAPI_TRANSACTION_COMMIT, but updates are not committed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-transaction-commit-but-updates-are-not-committed/m-p/6826599#M1470841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can check note 192235 for an explanation. The WAIT parameter ensure that the COMMIT returns only after all the updates are performed. I think that if your function updates sequentially many different objects, you can leave the parameter as space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bye&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Massimo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Apr 2010 08:08:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-transaction-commit-but-updates-are-not-committed/m-p/6826599#M1470841</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-21T08:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: Using BAPI_TRANSACTION_COMMIT, but updates are not committed</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-transaction-commit-but-updates-are-not-committed/m-p/6826600#M1470842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Massimo.  I will review the note.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Apr 2010 13:17:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-transaction-commit-but-updates-are-not-committed/m-p/6826600#M1470842</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-21T13:17:48Z</dc:date>
    </item>
  </channel>
</rss>

