<?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: Create wbs element with long text in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-wbs-element-with-long-text/m-p/634716#M26780</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;Have you tried &lt;A href="https://archive.sap.com/discussions/thread/1142714"&gt; this&lt;/A&gt; in the case of a failure of step 6?&lt;/P&gt;
  &lt;P&gt;How about various &lt;A href="http://bit.ly/2j5ixuY"&gt; rollback&lt;/A&gt; techniques?&lt;/P&gt;
  &lt;P&gt;Another option is to have a ghost WBS that you will delete at the end (or have it so it is used for those purposes only) that you can test the SAVE_TEXT on it, as a kind of a simulation, and if it fails not to go through steps 5 and 6. There are problems with this way that you need to manage - not sure how your system is customized and what constraints you put on WBS in your organization, consult the authority at your workplace.&lt;/P&gt;</description>
    <pubDate>Sat, 10 Feb 2018 13:00:11 GMT</pubDate>
    <dc:creator>iftah_peretz</dc:creator>
    <dc:date>2018-02-10T13:00:11Z</dc:date>
    <item>
      <title>Create wbs element with long text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-wbs-element-with-long-text/m-p/634715#M26779</link>
      <description>&lt;P&gt;Hello guys,&lt;/P&gt;
  &lt;P&gt;at the moment I'm trying to create a custom report which can create wbs elements from an excel file. Therefor I want to add some basic data of wbs element, set user status and set longtext for wbs element. My problem now is that I want to the whole thing in one commit. Unfortunately the status and the longtext have to created in separated tasks. At the moment it looks like:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;(1) BAPI_PS_INITIALIZATION for WBS element initialization
(2) BAPI_BUS2054_CREATE_MULTI for WBS element creation
(3) BAPI_BUS2054_SET_STATUS for setting status of WBS
(4) BAPI_PS_PRECOMMIT do the precommit
(5) BAPI_TRANSACTION_COMMIT do the commit
(6) SAVE_TEXT and COMMIT_TEXT to add the long text&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;My problem is now the steps 5 and 6. I only want to create the wbs element, when both work, wbs creation and long text creation. So normally I have to do the comit (5) in step 6 instead. But when switching that, I cannot create the text because the OBJNR for longtext is not created yet. In the way it is now, it works, but I have no chance to undo the creation when the longtext creation fails.&lt;/P&gt;
  &lt;P&gt;Any solutions for that?&lt;/P&gt;
  &lt;P&gt;Regards&lt;/P&gt;
  &lt;P&gt;Michael&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2018 10:25:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-wbs-element-with-long-text/m-p/634715#M26779</guid>
      <dc:creator>Missschaaa</dc:creator>
      <dc:date>2018-01-30T10:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: Create wbs element with long text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-wbs-element-with-long-text/m-p/634716#M26780</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;Have you tried &lt;A href="https://archive.sap.com/discussions/thread/1142714"&gt; this&lt;/A&gt; in the case of a failure of step 6?&lt;/P&gt;
  &lt;P&gt;How about various &lt;A href="http://bit.ly/2j5ixuY"&gt; rollback&lt;/A&gt; techniques?&lt;/P&gt;
  &lt;P&gt;Another option is to have a ghost WBS that you will delete at the end (or have it so it is used for those purposes only) that you can test the SAVE_TEXT on it, as a kind of a simulation, and if it fails not to go through steps 5 and 6. There are problems with this way that you need to manage - not sure how your system is customized and what constraints you put on WBS in your organization, consult the authority at your workplace.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Feb 2018 13:00:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-wbs-element-with-long-text/m-p/634716#M26780</guid>
      <dc:creator>iftah_peretz</dc:creator>
      <dc:date>2018-02-10T13:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: Create wbs element with long text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-wbs-element-with-long-text/m-p/634717#M26781</link>
      <description>&lt;P&gt;Why does the long text have to be in the same commit? Many SAP documents save texts in the V2 (secondary) update, so unless you have a very specific reason, I don't see an issue with your sequence. Perhaps it would be easier to adjust any follow dependencies.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Feb 2018 13:13:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-wbs-element-with-long-text/m-p/634717#M26781</guid>
      <dc:creator>pokrakam</dc:creator>
      <dc:date>2018-02-10T13:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: Create wbs element with long text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-wbs-element-with-long-text/m-p/634718#M26782</link>
      <description>&lt;P&gt;You could wrap the SAVE /COMMIT_TEXT in a RFC FM (or use RFC_SAVE_TEXT) and call this FM in BACKGROUND TASK/UNIT before the commit, so it will be executed after the update and only if successful?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2018 08:01:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-wbs-element-with-long-text/m-p/634718#M26782</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2018-02-12T08:01:15Z</dc:date>
    </item>
  </channel>
</rss>

