<?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_TRANSACTION_COMMIT gives short dump in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-gives-short-dump/m-p/7461150#M1553941</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think u need to start a new session,,,call a report or define a new FM using Remote-Enabled Moudle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Dec 2010 02:15:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-12-30T02:15:37Z</dc:date>
    <item>
      <title>BAPI_TRANSACTION_COMMIT gives short dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-gives-short-dump/m-p/7461135#M1553926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gurus,&lt;/P&gt;&lt;P&gt;I have a problem. I m using the BAPI and after that ım committing my changes to the database.&lt;/P&gt;&lt;P&gt;However, I get a short dump. It says unexpected commit work. My source code is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
call function 'BAPI_GOODSMVT_CREATE'
      exporting
        goodsmvt_header  = gs_goodsmvt_header
        goodsmvt_code    = gs_goodsmvt_code
      importing
        goodsmvt_headret = gs_goodsmvt_headret
      tables
        goodsmvt_item    = gt_goodsmvt_item
        return           = gt_return.

    clear : lv_hata.
    loop at gt_return into gv_return.
      if gv_return-type eq 'E'.
        lv_hata = 'X'.
      endif.
    endloop.

*  CLEAR : gt_messages, gt_messages[].
    if lv_hata is initial.
      call function 'BAPI_TRANSACTION_COMMIT'
         exporting
          wait   = 'X'
        importing
          return = bapi_return2.
    endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;My return table is empty. What may be the reason. Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Neil Gardiner on Dec 9, 2010 11:37 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Dec 2010 09:24:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-gives-short-dump/m-p/7461135#M1553926</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-08T09:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_TRANSACTION_COMMIT gives short dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-gives-short-dump/m-p/7461136#M1553927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How did you declare the bapi_return2?  And check the detail analysis of the dump in ST22.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vishwa.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Dec 2010 09:38:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-gives-short-dump/m-p/7461136#M1553927</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-08T09:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_TRANSACTION_COMMIT gives short dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-gives-short-dump/m-p/7461137#M1553928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;bapi_return2        type bapiret2.&lt;/P&gt;&lt;P&gt;I have already checked the details. It is just what ı wrote in the first post.:(&lt;/P&gt;&lt;P&gt;ERROR MESSAGE: In order processing, a commit work may not be carried out until the save process is finished because otherwise the order data may be posted incorrectly or incopletely.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: OSMANBIYIK on Dec 8, 2010 10:44 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Dec 2010 09:40:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-gives-short-dump/m-p/7461137#M1553928</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-08T09:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_TRANSACTION_COMMIT gives short dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-gives-short-dump/m-p/7461138#M1553929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like there is a user-exit or BADI containing a COMMIT WORK.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Dec 2010 09:46:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-gives-short-dump/m-p/7461138#M1553929</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-08T09:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_TRANSACTION_COMMIT gives short dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-gives-short-dump/m-p/7461139#M1553930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Write WAIT UP TO 2 SECONDS. before the commit  BAPI and check if the dump is happening.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vishwa.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Dec 2010 09:48:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-gives-short-dump/m-p/7461139#M1553930</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-08T09:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_TRANSACTION_COMMIT gives short dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-gives-short-dump/m-p/7461140#M1553931</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;Try to check update request by trx SM13 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Dec 2010 09:48:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-gives-short-dump/m-p/7461140#M1553931</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-08T09:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_TRANSACTION_COMMIT gives short dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-gives-short-dump/m-p/7461141#M1553932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;WHat to do now. I cannot delete it. THey are different from each other. How can ı make them work together.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Dec 2010 09:48:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-gives-short-dump/m-p/7461141#M1553932</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-08T09:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_TRANSACTION_COMMIT gives short dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-gives-short-dump/m-p/7461142#M1553933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TO Visha: Yes, it is again happening:(&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: OSMANBIYIK on Dec 8, 2010 10:53 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Dec 2010 09:53:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-gives-short-dump/m-p/7461142#M1553933</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-08T09:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_TRANSACTION_COMMIT gives short dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-gives-short-dump/m-p/7461143#M1553934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can u please post the dump caused...&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;S.Janagar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Dec 2010 09:56:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-gives-short-dump/m-p/7461143#M1553934</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-08T09:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_TRANSACTION_COMMIT gives short dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-gives-short-dump/m-p/7461144#M1553935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; ERROR MESSAGE: In order processing, a commit work may not be carried out until the save process is finished because otherwise the order data may be posted incorrectly or incopletely.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Edited by: OSMANBIYIK on Dec 8, 2010 10:44 AM&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am curious: is this piece of code written in a separate program or did you write it in a user-exit or BADI or enhancement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the latter is the case: there's your problem. You should not use a COMMIT WORK in a user-exit etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Dec 2010 10:03:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-gives-short-dump/m-p/7461144#M1553935</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-08T10:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_TRANSACTION_COMMIT gives short dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-gives-short-dump/m-p/7461145#M1553936</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;PRE&gt;&lt;CODE&gt;
 CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
      EXPORTING
        GOODSMVT_HEADER  = LS_GOODSMVT_HEADER
        GOODSMVT_CODE    = '01'
      IMPORTING
        MATERIALDOCUMENT = LV_MATERIALDOCUMENT
      TABLES
        GOODSMVT_ITEM    = LT_GOODSMVT_ITEM_BAPI
        RETURN           = LT_RETURN_GR.


    IF LV_MATERIALDOCUMENT IS NOT INITIAL.
      DATA : LT_RETURN_GOODS TYPE BAPIRET2.
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
        EXPORTING
          WAIT   = 'X'
        IMPORTING
          RETURN = LT_RETURN_GOODS.
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Neil Gardiner on Dec 9, 2010 11:38 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Dec 2010 10:06:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-gives-short-dump/m-p/7461145#M1553936</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-08T10:06:37Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_TRANSACTION_COMMIT gives short dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-gives-short-dump/m-p/7461146#M1553937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I m writing this code in  a BADI. However, once upon a time this block was working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Dec 2010 10:54:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-gives-short-dump/m-p/7461146#M1553937</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-08T10:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_TRANSACTION_COMMIT gives short dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-gives-short-dump/m-p/7461147#M1553938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As Maen said, you cannot call a COMMIT within a BADI. &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;However, once upon a time this block was working&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I Don't think so..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Dec 2010 10:59:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-gives-short-dump/m-p/7461147#M1553938</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-08T10:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_TRANSACTION_COMMIT gives short dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-gives-short-dump/m-p/7461148#M1553939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IF_EX_WORKORDER_CONFIRM~AT_SAVE-&amp;gt; I m working in this method.&lt;/P&gt;&lt;P&gt;Do you have any alternative idea to commit work? What should ı do right now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: OSMANBIYIK on Dec 8, 2010 12:02 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Dec 2010 11:01:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-gives-short-dump/m-p/7461148#M1553939</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-08T11:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_TRANSACTION_COMMIT gives short dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-gives-short-dump/m-p/7461149#M1553940</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;If you are calling the BAPI with in any BADI, you don't need to explicitly do the COMMIT. The data will automatically get committed if  the transaction is successful.&lt;/P&gt;&lt;P&gt;&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;Jaya krishna.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Dec 2010 12:10:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-gives-short-dump/m-p/7461149#M1553940</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-08T12:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_TRANSACTION_COMMIT gives short dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-gives-short-dump/m-p/7461150#M1553941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think u need to start a new session,,,call a report or define a new FM using Remote-Enabled Moudle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Dec 2010 02:15:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-gives-short-dump/m-p/7461150#M1553941</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-30T02:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_TRANSACTION_COMMIT gives short dump</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-gives-short-dump/m-p/7461151#M1553942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Have to check declaration or bapi_return2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Please declare bapi_return2 as follow&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

DATA: BEGIN OF  bapi_return2 OCCURS 0.
        INCLUDE STRUCTURE BAPIRET2.
DATA: END OF  bapi_return2.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
           EXPORTING
                WAIT   = 'X'
           IMPORTING
                RETURN =  bapi_return2.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Dec 2010 05:06:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-transaction-commit-gives-short-dump/m-p/7461151#M1553942</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-30T05:06:02Z</dc:date>
    </item>
  </channel>
</rss>

