<?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_ENTRYSHEET_CREATE in test run in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-entrysheet-create-in-test-run/m-p/6920899#M1484251</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;not possible&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Jun 2010 10:58:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-06-02T10:58:32Z</dc:date>
    <item>
      <title>BAPI_ENTRYSHEET_CREATE in test run</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-entrysheet-create-in-test-run/m-p/6920895#M1484247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ppl,&lt;/P&gt;&lt;P&gt;I am using the BAPI 'BAPI_ENTRYSHEET_CREATE' in my program to create service entry sheets.&lt;/P&gt;&lt;P&gt;The problem is that when I run this BAPI in test run mode, still the service entry number gets created (though the actual document is not created).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to restrict the number generation for the entry sheets when the BAPI is executed in test mode ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  CALL FUNCTION 'BAPI_ENTRYSHEET_CREATE'
       EXPORTING
            entrysheetheader            = wa_header
            testrun                     = w_test_run
       IMPORTING
            entrysheet                  = ws_entrysheet_no
       TABLES
            ENTRYSHEETACCOUNTASSIGNMENT = i_account
            entrysheetservices          = bapi_esll
            entrysheetsrvaccassvalues   = i_service_acc
            return                      = i_return.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The value of w_test_run is decided at runtime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 May 2010 10:42:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-entrysheet-create-in-test-run/m-p/6920895#M1484247</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-11T10:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ENTRYSHEET_CREATE in test run</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-entrysheet-create-in-test-run/m-p/6920896#M1484248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Number is generated as the next number in the number range.&lt;/P&gt;&lt;P&gt;This happens with all the BAPIs.&lt;/P&gt;&lt;P&gt;This will however not update in the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If still required, you may have a new number range for testing and then reset / delete the range later.&lt;/P&gt;&lt;P&gt;Thnx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 May 2010 11:27:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-entrysheet-create-in-test-run/m-p/6920896#M1484248</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-11T11:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ENTRYSHEET_CREATE in test run</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-entrysheet-create-in-test-run/m-p/6920897#M1484249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pranu,&lt;/P&gt;&lt;P&gt;We have a checkbox 'Test Run' on the selection screen of our program.&lt;/P&gt;&lt;P&gt;The users will first execute the program in test run and then if there are no errors, they will create the service entry sheet in actual through the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, when the program is executed in test run, a service entry number is created which is of no use. That's a concern for the user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 May 2010 11:33:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-entrysheet-create-in-test-run/m-p/6920897#M1484249</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-11T11:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ENTRYSHEET_CREATE in test run</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-entrysheet-create-in-test-run/m-p/6920898#M1484250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Has nobody faced this problem ever ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 May 2010 06:06:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-entrysheet-create-in-test-run/m-p/6920898#M1484250</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-13T06:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ENTRYSHEET_CREATE in test run</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-entrysheet-create-in-test-run/m-p/6920899#M1484251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;not possible&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jun 2010 10:58:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-entrysheet-create-in-test-run/m-p/6920899#M1484251</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-02T10:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ENTRYSHEET_CREATE in test run</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-entrysheet-create-in-test-run/m-p/6920900#M1484252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just a way around....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a ZBAPI which will be the exact replica of the Standard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Put a condition over the code where the Next Available Number is fetched from the Number Range.&lt;/P&gt;&lt;P&gt;Thus this Number will NOT be used if you are in Test Run.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pranu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jun 2010 08:24:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-entrysheet-create-in-test-run/m-p/6920900#M1484252</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-07T08:24:53Z</dc:date>
    </item>
  </channel>
</rss>

