<?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_ACC_ACTIVITY_ALLOC_POST in test mode in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-activity-alloc-post-in-test-mode/m-p/7019081#M1497801</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;that is the nature of all BAPIs . The creation of the object (even in a test mode) includes the (internal) number assignment.&lt;/P&gt;&lt;P&gt;Of course the object does not exist in the database, but the (internal) number is consumed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Remember that BAPIs are supposed to be stateless and 'forget' the previous call, even if you send the same data again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 May 2010 16:50:55 GMT</pubDate>
    <dc:creator>abdirisak_mohamed</dc:creator>
    <dc:date>2010-05-26T16:50:55Z</dc:date>
    <item>
      <title>BAPI_ACC_ACTIVITY_ALLOC_POST in test mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-activity-alloc-post-in-test-mode/m-p/7019079#M1497799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Essentially I want to run BAPI_ACC_ACTIVITY_ALLOC_POST in test mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in a program, I execute BAPI_ACC_ACTIVITY_ALLOC_POST and say I get doc  number 100.&lt;/P&gt;&lt;P&gt;Then I execute BAPI_TRANSACTION_ROLLBACK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I execute BAPI_BUPA_CREATE_FROM_DATA again, I expecte  doc number 100  because I have not executed BAPI_TRANSACTION_COMMIT, but instead I get 101.&lt;/P&gt;&lt;P&gt;Doing the same again, and I get 102.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What's going on? Is there a way to simulate BP creation?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Heidi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'BAPI_ACC_ACTIVITY_ALLOC_POST'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          doc_header      =  dochdrp&lt;/P&gt;&lt;P&gt;          ignore_warnings = 'X'&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;          doc_no          = doc_no&lt;/P&gt;&lt;P&gt;        TABLES&lt;/P&gt;&lt;P&gt;          doc_items       = bapiaaitm&lt;/P&gt;&lt;P&gt;          return          =  return&lt;/P&gt;&lt;P&gt;        EXCEPTIONS&lt;/P&gt;&lt;P&gt;          OTHERS          = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF  test EQ 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'&lt;/P&gt;&lt;P&gt;          IMPORTING&lt;/P&gt;&lt;P&gt;            return = wa_bapiret2_roll.&lt;/P&gt;&lt;P&gt;        IF wa_bapiret2_roll IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;          WRITE : wa_bapiret2_roll-message.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      ELSE.&lt;/P&gt;&lt;P&gt;        COMMIT WORK AND WAIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CALL FUNCTION 'DEQUEUE_ALL'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Heidi Heinzberger on May 26, 2010 6:26 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 May 2010 16:13:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-activity-alloc-post-in-test-mode/m-p/7019079#M1497799</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-26T16:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_ACTIVITY_ALLOC_POST in test mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-activity-alloc-post-in-test-mode/m-p/7019080#M1497800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Heidi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thats a normal behavior from SAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When using BAPI in test run, the documents number generated in test mode will increase up the current doc. number, so the next time you create a valid document. It will be jumped.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gilberto Li&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 May 2010 16:38:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-activity-alloc-post-in-test-mode/m-p/7019080#M1497800</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-26T16:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_ACTIVITY_ALLOC_POST in test mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-activity-alloc-post-in-test-mode/m-p/7019081#M1497801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;that is the nature of all BAPIs . The creation of the object (even in a test mode) includes the (internal) number assignment.&lt;/P&gt;&lt;P&gt;Of course the object does not exist in the database, but the (internal) number is consumed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Remember that BAPIs are supposed to be stateless and 'forget' the previous call, even if you send the same data again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 May 2010 16:50:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-activity-alloc-post-in-test-mode/m-p/7019081#M1497801</guid>
      <dc:creator>abdirisak_mohamed</dc:creator>
      <dc:date>2010-05-26T16:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_ACTIVITY_ALLOC_POST in test mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-activity-alloc-post-in-test-mode/m-p/7019082#M1497802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for Answers, &lt;/P&gt;&lt;P&gt;Is it possible that I put back the number  ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 May 2010 08:46:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-activity-alloc-post-in-test-mode/m-p/7019082#M1497802</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-27T08:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_ACTIVITY_ALLOC_POST in test mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-activity-alloc-post-in-test-mode/m-p/7019083#M1497803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nein, das ist nicht moeglich, soweit ich weiss.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 May 2010 20:46:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-activity-alloc-post-in-test-mode/m-p/7019083#M1497803</guid>
      <dc:creator>abdirisak_mohamed</dc:creator>
      <dc:date>2010-05-27T20:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_ACTIVITY_ALLOC_POST in test mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-activity-alloc-post-in-test-mode/m-p/7019084#M1497804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Mohamed  for your answer. I found another solution.&lt;/P&gt;&lt;P&gt;other  BAPI  for test:&lt;/P&gt;&lt;P&gt; BAPI_ACC_ACTIVITY_ALLOC_CHECK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;many greetings&lt;/P&gt;&lt;P&gt;Heidi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jun 2010 13:42:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-activity-alloc-post-in-test-mode/m-p/7019084#M1497804</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-02T13:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_ACTIVITY_ALLOC_POST in test mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-activity-alloc-post-in-test-mode/m-p/7019085#M1497805</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;What is the technical and functional difference between 'BAPI_ACC_ACTIVITY_ALLOC_CHECK' and 'BAPI_ACC_ACTIVITY_ALLOC_POST' . Are they supposed to be called in sequence ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If yes, in what sequence?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry, if this is an incorrect question , but hoping for an answer as I' totally new to this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Priyanka Ashtekar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2011 07:03:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-activity-alloc-post-in-test-mode/m-p/7019085#M1497805</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-19T07:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_ACTIVITY_ALLOC_POST in test mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-activity-alloc-post-in-test-mode/m-p/7019086#M1497806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Heidi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPI_BUPA_CREATE_FROM_DATA call inside to another BAPI:&amp;nbsp; BUPA_CREATE_FROM_DATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUPA_CREATE_FROM_DATA has an export paramater called IV_TESTRUN to execute them in test mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can copy the bapi BAPI_BUPA_CREATE_FROM_DATA to a Z bapi, and add a new parameter to perform the test mode. Inside Z bapi, modify the call to bapi BUPA_CREATE_FROM_DATA and pass the value of the test parameter of Z bapi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 09:39:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-activity-alloc-post-in-test-mode/m-p/7019086#M1497806</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-06-11T09:39:29Z</dc:date>
    </item>
  </channel>
</rss>

