<?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: SAVE Sequence BAPI Commit Issue, ABAP RESTful Programming On-Premise in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/save-sequence-bapi-commit-issue-abap-restful-programming-on-premise/qaa-p/12135956#M4535533</link>
    <description>&lt;P&gt;Have u find any solution for this&lt;/P&gt;</description>
    <pubDate>Wed, 25 Aug 2021 14:59:32 GMT</pubDate>
    <dc:creator>RajuSubba</dc:creator>
    <dc:date>2021-08-25T14:59:32Z</dc:date>
    <item>
      <title>SAVE Sequence BAPI Commit Issue, ABAP RESTful Programming On-Premise</title>
      <link>https://community.sap.com/t5/technology-q-a/save-sequence-bapi-commit-issue-abap-restful-programming-on-premise/qaq-p/12135945</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;
  &lt;P&gt;I am trying to implement unmanaged scenario for a create operation. I am using 'BAPI_EPM_SO_CREATE' to create a sales order with create method.&lt;/P&gt;
  &lt;P&gt;This BAPI has a parameter 'persist_to_db' which is by default true. When I am calling the BAPI , getting dump because the BAPI contains 'COMMIT WORK'. As we know we cannot use commit work during transnational phase. &lt;/P&gt;
  &lt;P&gt;So then passed 'abap_false' to persist_to_db and placed commit work in save method (part of save sequence). But still I am getting dump for using commit.&lt;/P&gt;
  &lt;P&gt;Due to this reason I am unable to persist the data even after successful execution of the BAPI. How do I commit the data in save seqeunce. Kindly help.&lt;/P&gt;
  &lt;P&gt;Regards,&lt;/P&gt;
  &lt;P&gt;ABAPer.&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jun 2020 14:04:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/save-sequence-bapi-commit-issue-abap-restful-programming-on-premise/qaq-p/12135945</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-06-14T14:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: SAVE Sequence BAPI Commit Issue, ABAP RESTful Programming On-Premise</title>
      <link>https://community.sap.com/t5/technology-q-a/save-sequence-bapi-commit-issue-abap-restful-programming-on-premise/qaa-p/12135946#M4535523</link>
      <description>&lt;P&gt;COMMIT WORK leads to a runtime error (please give details about your runtime error) when it's called inside an update task (your case?). The only way to trigger an update task is to use COMMIT WORK, so when you call the BAPI you're already inside COMMIT WORK.&lt;/P&gt;&lt;P&gt;In fact, that's a scenario to avoid: don't call a BAPI inside the update task. The solution depends on your exact scenario. Eventually one possibility is to call the BAPI inside a separate SAP LUW, for instance via tRFC (DESTINATION 'NONE' IN BACKGROUND TASK).&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jun 2020 18:38:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/save-sequence-bapi-commit-issue-abap-restful-programming-on-premise/qaa-p/12135946#M4535523</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2020-06-14T18:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: SAVE Sequence BAPI Commit Issue, ABAP RESTful Programming On-Premise</title>
      <link>https://community.sap.com/t5/technology-q-a/save-sequence-bapi-commit-issue-abap-restful-programming-on-premise/qaa-p/12135947#M4535524</link>
      <description>&lt;P&gt;Hi , This is the error 'cannot use commit work during transnational phase.' I was getting. FYI I am asking this question in the context of ABAP RESTful Programming.&lt;/P&gt;&lt;P&gt;As per my understanding we cannot use 'Commit work' in interactive phase, so I have decided to keep the commit work in save sequence.(Save method), still getting the same error. How do I commit the data in this scenario. perhaps   &lt;SPAN class="mention-scrubbed"&gt;andre.fischer&lt;/SPAN&gt;  could help me on this &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jun 2020 05:19:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/save-sequence-bapi-commit-issue-abap-restful-programming-on-premise/qaa-p/12135947#M4535524</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-06-15T05:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: SAVE Sequence BAPI Commit Issue, ABAP RESTful Programming On-Premise</title>
      <link>https://community.sap.com/t5/technology-q-a/save-sequence-bapi-commit-issue-abap-restful-programming-on-premise/qaa-p/12135948#M4535525</link>
      <description>&lt;P&gt;As far as I know the commit will be handled by the framework. &lt;/P&gt;&lt;P&gt;Even in "Save" method you will encounter the message "The command COMMIT is not allowed in a BEHAVIOR class."&lt;/P&gt;&lt;P&gt;Your "save" class is called in context of method "_PROCESS_SAVE_SEQUENCE" from class CL_RAP_TRANSACTION_MANAGER. That method will handle the commit. Of course all these if there are no "failed" entities. &lt;/P&gt;&lt;P&gt;I had a similar issue where I had to call a posting for FI documents. Due to update task usage from std tools, I had to call the FMs in background unit.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jun 2020 10:46:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/save-sequence-bapi-commit-issue-abap-restful-programming-on-premise/qaa-p/12135948#M4535525</guid>
      <dc:creator>nick_giannakis</dc:creator>
      <dc:date>2020-06-22T10:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: SAVE Sequence BAPI Commit Issue, ABAP RESTful Programming On-Premise</title>
      <link>https://community.sap.com/t5/technology-q-a/save-sequence-bapi-commit-issue-abap-restful-programming-on-premise/qaa-p/12135949#M4535526</link>
      <description>&lt;P&gt;I have also encountered the same issue. BAPI internally calls a commit work and we have second commit by the framework. &lt;/P&gt;&lt;P&gt;I have updated comments here - &lt;/P&gt;&lt;P&gt;&lt;A href="https://blogs.sap.com/2019/05/23/sap-cloud-platform-abap-restful-programming-model-rap-for-beginners/comment-page-1/#comment-516256"&gt;https://blogs.sap.com/2019/05/23/sap-cloud-platform-abap-restful-programming-model-rap-for-beginners/comment-page-1/#comment-516256&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Here is Runtime Error that we get - &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What happened?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Error in the ABAP
application program.&lt;/P&gt;&lt;P&gt;The current ABAP
program “SAPMV45A” had to be terminated because it found a&lt;BR /&gt;
statement that could not be executed.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Error analysis&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;There is probably an
error in the program&lt;BR /&gt;
“SAPMV45A”.&lt;BR /&gt;
A BEHAVIOR implementation is active for XYZ While this is the case,&lt;BR /&gt;
the following ABAP statements are illegal:&lt;/P&gt;&lt;P&gt;– COMMIT&lt;BR /&gt;
– ROLLBACK&lt;BR /&gt;
– SUBMIT&lt;BR /&gt;
– CALL TRANSACTION&lt;BR /&gt;
– LEAVE&lt;BR /&gt;
all DYNPRO-related statements, such as MESSAGE, CALL DIALOG, and CALL&lt;BR /&gt;
SCREEN&lt;/P&gt;&lt;P&gt;The following statement is only allowed in the “Save” phase: –
CALL&lt;BR /&gt;
FUNCTION IN UPDATE TASK&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2020 14:03:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/save-sequence-bapi-commit-issue-abap-restful-programming-on-premise/qaa-p/12135949#M4535526</guid>
      <dc:creator>former_member683250</dc:creator>
      <dc:date>2020-07-07T14:03:14Z</dc:date>
    </item>
    <item>
      <title>Re: SAVE Sequence BAPI Commit Issue, ABAP RESTful Programming On-Premise</title>
      <link>https://community.sap.com/t5/technology-q-a/save-sequence-bapi-commit-issue-abap-restful-programming-on-premise/qaa-p/12135950#M4535527</link>
      <description>&lt;P&gt;Hello  &lt;SPAN class="mention-scrubbed"&gt;sandra.rossi&lt;/SPAN&gt; ,&lt;/P&gt;&lt;P&gt;What is the solution for this type of issues :&lt;/P&gt;&lt;P&gt;Even i am able to create a SO in debug mode - but it is not visible in VA03 tcode - if i try to write the commit statement - it is throwing dump.&lt;/P&gt;&lt;P&gt;Without Commit, how can the SO will be saved in database?&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 06:07:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/save-sequence-bapi-commit-issue-abap-restful-programming-on-premise/qaa-p/12135950#M4535527</guid>
      <dc:creator>former_member515329</dc:creator>
      <dc:date>2021-03-18T06:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: SAVE Sequence BAPI Commit Issue, ABAP RESTful Programming On-Premise</title>
      <link>https://community.sap.com/t5/technology-q-a/save-sequence-bapi-commit-issue-abap-restful-programming-on-premise/qaa-p/12135951#M4535528</link>
      <description>&lt;P&gt;&lt;SPAN class="mention-scrubbed"&gt;ravi.kumar183&lt;/SPAN&gt; My comment was not relevant for this RAP question. I suggest that you first try your code separately as a simple test Executable program (type 1) including a COMMIT WORK and see whether it works. If yes, as far as I understand what is said here about RAP, COMMIT WORK should not be present in your code and is done by the RAP framework.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 06:23:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/save-sequence-bapi-commit-issue-abap-restful-programming-on-premise/qaa-p/12135951#M4535528</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-03-18T06:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: SAVE Sequence BAPI Commit Issue, ABAP RESTful Programming On-Premise</title>
      <link>https://community.sap.com/t5/technology-q-a/save-sequence-bapi-commit-issue-abap-restful-programming-on-premise/qaa-p/12135952#M4535529</link>
      <description>&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;But when will commit happen?&lt;/P&gt;&lt;P&gt;As i need the SO number to be captured after the BAPI call - if i forcefully write commit, then DUMP is occured.&lt;/P&gt;&lt;P&gt;Is there any workaround to get the SO number to be saved in database after the BAPI call.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 06:32:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/save-sequence-bapi-commit-issue-abap-restful-programming-on-premise/qaa-p/12135952#M4535529</guid>
      <dc:creator>former_member515329</dc:creator>
      <dc:date>2021-03-18T06:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: SAVE Sequence BAPI Commit Issue, ABAP RESTful Programming On-Premise</title>
      <link>https://community.sap.com/t5/technology-q-a/save-sequence-bapi-commit-issue-abap-restful-programming-on-premise/qaa-p/12135953#M4535530</link>
      <description>&lt;P&gt;Hi  &lt;SPAN class="mention-scrubbed"&gt;nick.giannakis&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Our requirement is also similar,&lt;BR /&gt;However, our business object does not get updated via BAPI_TRANSACTION_COMMIT.&lt;BR /&gt;We have to use a different COMMIT (diwps_rev_save ) and for this, we need to pass the values from the corresponding method to SAVE&lt;STRONG&gt;( standard method provided by RAP)&lt;/STRONG&gt;. How do I pass those values in the SAVE method?&lt;BR /&gt;&lt;BR /&gt;Any idea on this?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Wed, 28 Apr 2021 05:21:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/save-sequence-bapi-commit-issue-abap-restful-programming-on-premise/qaa-p/12135953#M4535530</guid>
      <dc:creator>former_member90848</dc:creator>
      <dc:date>2021-04-28T05:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: SAVE Sequence BAPI Commit Issue, ABAP RESTful Programming On-Premise</title>
      <link>https://community.sap.com/t5/technology-q-a/save-sequence-bapi-commit-issue-abap-restful-programming-on-premise/qaa-p/12135954#M4535531</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Hi,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;to avoid the COMMIT WORK issue, I used an aRFC function which executes the BAPI (CALL FUNCTION &amp;lt;new_arfc_function&amp;gt; STARTING NEW TASK &amp;lt;task_name&amp;gt; CALLING &amp;lt;method&amp;gt; ON END OF TASK. ... WAIT FOR ASYNCHRONOUS TASKS .... - Also possible is just DESTINATION 'NONE'. &lt;/P&gt;&lt;P&gt;Regards, Föß&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 10:56:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/save-sequence-bapi-commit-issue-abap-restful-programming-on-premise/qaa-p/12135954#M4535531</guid>
      <dc:creator>foessleitner</dc:creator>
      <dc:date>2021-06-15T10:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: SAVE Sequence BAPI Commit Issue, ABAP RESTful Programming On-Premise</title>
      <link>https://community.sap.com/t5/technology-q-a/save-sequence-bapi-commit-issue-abap-restful-programming-on-premise/qaa-p/12135955#M4535532</link>
      <description>&lt;P&gt;Thanks Johann, Can you send example code?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2021 08:01:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/save-sequence-bapi-commit-issue-abap-restful-programming-on-premise/qaa-p/12135955#M4535532</guid>
      <dc:creator>umtyzc</dc:creator>
      <dc:date>2021-06-30T08:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: SAVE Sequence BAPI Commit Issue, ABAP RESTful Programming On-Premise</title>
      <link>https://community.sap.com/t5/technology-q-a/save-sequence-bapi-commit-issue-abap-restful-programming-on-premise/qaa-p/12135956#M4535533</link>
      <description>&lt;P&gt;Have u find any solution for this&lt;/P&gt;</description>
      <pubDate>Wed, 25 Aug 2021 14:59:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/save-sequence-bapi-commit-issue-abap-restful-programming-on-premise/qaa-p/12135956#M4535533</guid>
      <dc:creator>RajuSubba</dc:creator>
      <dc:date>2021-08-25T14:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: SAVE Sequence BAPI Commit Issue, ABAP RESTful Programming On-Premise</title>
      <link>https://community.sap.com/t5/technology-q-a/save-sequence-bapi-commit-issue-abap-restful-programming-on-premise/qaa-p/12135957#M4535534</link>
      <description>&lt;P&gt;You can create as RFC FM inside of it can write BAPI logic and call as below starting new task &amp;amp; destination as None&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'ZRFC_FM' &lt;/P&gt;&lt;P&gt;      STARTING NEW TASK 'UPDATE' &lt;/P&gt;&lt;P&gt;      DESTINATION 'NONE'.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Aug 2021 17:08:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/save-sequence-bapi-commit-issue-abap-restful-programming-on-premise/qaa-p/12135957#M4535534</guid>
      <dc:creator>RajuSubba</dc:creator>
      <dc:date>2021-08-25T17:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: SAVE Sequence BAPI Commit Issue, ABAP RESTful Programming On-Premise</title>
      <link>https://community.sap.com/t5/technology-q-a/save-sequence-bapi-commit-issue-abap-restful-programming-on-premise/qaa-p/12135958#M4535535</link>
      <description>&lt;P&gt;Hello &lt;SPAN class="mention-scrubbed"&gt;reachoutnagendra&lt;/SPAN&gt;,&lt;BR /&gt;&lt;BR /&gt;I am also trying the same thing but I am not able to pass multiple item records from the UI to backend to call the BAPI, can you explain how you achieved this?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 12:39:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/save-sequence-bapi-commit-issue-abap-restful-programming-on-premise/qaa-p/12135958#M4535535</guid>
      <dc:creator>piyush_83177</dc:creator>
      <dc:date>2022-09-13T12:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: SAVE Sequence BAPI Commit Issue, ABAP RESTful Programming On-Premise</title>
      <link>https://community.sap.com/t5/technology-q-a/save-sequence-bapi-commit-issue-abap-restful-programming-on-premise/qaa-p/12135959#M4535536</link>
      <description>&lt;P&gt;Is there a solution here in the meantime? I am currently facing the problem myself and would like to execute a BAPI in a RAP managed scenario. &lt;/P&gt;&lt;P&gt;I would be particularly interested in how exactly the call should take place. Somehow it doesn't seem to work in the same LUW.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 06:59:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/save-sequence-bapi-commit-issue-abap-restful-programming-on-premise/qaa-p/12135959#M4535536</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2023-03-29T06:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: SAVE Sequence BAPI Commit Issue, ABAP RESTful Program...</title>
      <link>https://community.sap.com/t5/technology-q-a/save-sequence-bapi-commit-issue-abap-restful-programming-on-premise/qaa-p/14120662#M4916166</link>
      <description>&lt;P&gt;To calll bapi_transaction_commit it needs all together separate procedure in RAP.&lt;/P&gt;&lt;P&gt;please refer the video using below link and try to adapt based on your need&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=HQLM9I_Lcek&amp;amp;list=PLpS9_oEgVsZ3yxVjGDCXxhtJEMiZJYXtm&amp;amp;index=2&amp;amp;t=15s" target="_blank"&gt;https://www.youtube.com/watch?v=HQLM9I_Lcek&amp;amp;list=PLpS9_oEgVsZ3yxVjGDCXxhtJEMiZJYXtm&amp;amp;index=2&amp;amp;t=15s&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jun 2025 03:42:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/save-sequence-bapi-commit-issue-abap-restful-programming-on-premise/qaa-p/14120662#M4916166</guid>
      <dc:creator>vykuntrao</dc:creator>
      <dc:date>2025-06-06T03:42:54Z</dc:date>
    </item>
  </channel>
</rss>

