<?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 Commit Work Database Update in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-commit-work-database-update/m-p/5707722#M1296013</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can not see your program design entirely but check this:&lt;/P&gt;&lt;P&gt;Why dont you create all Profit centers first then COMMIT and then create related Projects/WBSs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Jun 2009 12:57:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-06-18T12:57:38Z</dc:date>
    <item>
      <title>BAPI Commit Work Database Update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-commit-work-database-update/m-p/5707720#M1296011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have Project Structre that looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Proj1&lt;/P&gt;&lt;P&gt;   bwbs1 prctr1&lt;/P&gt;&lt;P&gt;      wbs1 prctr1&lt;/P&gt;&lt;P&gt;   bwbs2 prctr2&lt;/P&gt;&lt;P&gt;      wbs2 prctr2...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;( Tcode: CJ02 or CJ20 )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try to use PS substitution to accomplish the above.  When SAP loops to the line &lt;/P&gt;&lt;P&gt;bwbs1, I use 'BAPI_PROFITCENTER_CREATE' to create the profit center( prctr1 ) and&lt;/P&gt;&lt;P&gt;substituted into prps-prctr for bwbs1.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;When it looped to the next line( wbs1 ), since it is a wbs, i find its parent( bwbs1 ) and &lt;/P&gt;&lt;P&gt;copy the profit center( prctr1 ) into the profit center field( prps-prctr ) of wbs1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Repeat the same for bwbs2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem: If i do not  use 'BAPI_TRANSACTION_COMMIT' at the end of each   'BAPI_PROFITCENTER_CREATE', in the end, SAP will return a message saying &lt;/P&gt;&lt;P&gt;profit center does not exist.  Therefore, it cannot be substituted.  If I do use &lt;/P&gt;&lt;P&gt;'BAPI_TRANSACTION_COMMIT', it will create prctr1 in CEPC when it is looping to the line for bwbs1.   However, it will also immediately create all the bwbs1, wbs1, bwbs2, wbs2 all into prps.  This means that &lt;/P&gt;&lt;P&gt;none of the profit center can further be substituted by the custom profit center.  Is there any way we can commit to database only the profit center created but not the list of BWBS/WBS that need further substitution?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2009 21:27:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-commit-work-database-update/m-p/5707720#M1296011</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-12T21:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI Commit Work Database Update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-commit-work-database-update/m-p/5707721#M1296012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2009 03:27:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-commit-work-database-update/m-p/5707721#M1296012</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-18T03:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI Commit Work Database Update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-commit-work-database-update/m-p/5707722#M1296013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can not see your program design entirely but check this:&lt;/P&gt;&lt;P&gt;Why dont you create all Profit centers first then COMMIT and then create related Projects/WBSs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2009 12:57:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-commit-work-database-update/m-p/5707722#M1296013</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-18T12:57:38Z</dc:date>
    </item>
  </channel>
</rss>

