<?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: DIS not created with BAPI_DOCUMENT_CREATE2 (commit) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dis-not-created-with-bapi-document-create2-commit/m-p/12225683#M1983987</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;Do you get any information in RETURN structure after the execution? &lt;BR /&gt;Do you encounter any dumps in ST22 after BAPI execution? &lt;BR /&gt;Regards,&lt;BR /&gt;Bartosz&lt;/P&gt;</description>
    <pubDate>Tue, 14 Jul 2020 10:25:34 GMT</pubDate>
    <dc:creator>ziolkowskib</dc:creator>
    <dc:date>2020-07-14T10:25:34Z</dc:date>
    <item>
      <title>DIS not created with BAPI_DOCUMENT_CREATE2 (commit)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dis-not-created-with-bapi-document-create2-commit/m-p/12225682#M1983986</link>
      <description>&lt;P&gt;Hi experts,&lt;/P&gt;
  &lt;P&gt;I am receiving a weird issue when I try to create a document info record with BAPI_DOCUMENT_CREATE2.&lt;/P&gt;
  &lt;P&gt;There is a document number returned, but the info record is not being created.&lt;BR /&gt;I have tried it 'COMMIT WORK AND WAIT' as well as BAPI_TRANSACTION_COMMIT (with waiting and without).&lt;/P&gt;
  &lt;P&gt;Here is what I tried:&lt;/P&gt;
  &lt;P&gt;Test data:&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1823973-ukpgj.png" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1823975-a9gyl.png" /&gt;&lt;/P&gt;
  &lt;P&gt;Test sequence (based on note 2622784):&lt;/P&gt;
  &lt;P&gt;&lt;IMG alt="" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG alt="" /&gt;&lt;/P&gt;
  &lt;P&gt;Result:&lt;/P&gt;
  &lt;P&gt;&lt;IMG alt="" /&gt;&lt;IMG alt="" /&gt;&lt;/P&gt;
  &lt;P&gt;DIS has not been created (CV03N):&lt;/P&gt;
  &lt;P&gt;&lt;IMG alt="" /&gt;&lt;IMG alt="" style="font-size: 15px; color: rgb(60, 60, 60);" /&gt;&lt;/P&gt;
  &lt;P&gt;The weird part is:&lt;/P&gt;
  &lt;P&gt;If I run it a second time, the exact same number is returned and the document info record is created.&lt;/P&gt;
  &lt;P&gt;I tried it in a custom fm with a 'WAIT UP TO X SECONDS' (10 - 60 seconds), but no luck.&lt;/P&gt;
  &lt;P&gt;Any ideas on that?&lt;/P&gt;
  &lt;P&gt;&lt;BR /&gt;Thanks in advance!&lt;/P&gt;
  &lt;P&gt;Kind regards&lt;/P&gt;
  &lt;P&gt;Tim&lt;/P&gt;
  &lt;H1&gt;&lt;/H1&gt;</description>
      <pubDate>Tue, 14 Jul 2020 06:33:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dis-not-created-with-bapi-document-create2-commit/m-p/12225682#M1983986</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-07-14T06:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: DIS not created with BAPI_DOCUMENT_CREATE2 (commit)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dis-not-created-with-bapi-document-create2-commit/m-p/12225683#M1983987</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;Do you get any information in RETURN structure after the execution? &lt;BR /&gt;Do you encounter any dumps in ST22 after BAPI execution? &lt;BR /&gt;Regards,&lt;BR /&gt;Bartosz&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jul 2020 10:25:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dis-not-created-with-bapi-document-create2-commit/m-p/12225683#M1983987</guid>
      <dc:creator>ziolkowskib</dc:creator>
      <dc:date>2020-07-14T10:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: DIS not created with BAPI_DOCUMENT_CREATE2 (commit)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dis-not-created-with-bapi-document-create2-commit/m-p/12225684#M1983988</link>
      <description>&lt;P&gt;Hi Bartosz,&lt;/P&gt;&lt;P&gt;ST22 is clean and the return structure is empty.&lt;BR /&gt;As mentioned before:&lt;/P&gt;&lt;P&gt;After calling the bapi and do the bapi_transaction_commit (wait = X), I am doing a select on draw, but there is no entry.&lt;/P&gt;&lt;P&gt;Afterwards I run the bapi, within the same fm, and doing a commit again.&lt;/P&gt;&lt;P&gt;Then, the inforecord is created, with the same number, already returned in the first call.&lt;/P&gt;&lt;P&gt;The issue is: we need to call the bapi via rfc, so this workaround is not working for us.&lt;/P&gt;&lt;P&gt;I appreciate any ideas.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jul 2020 12:48:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dis-not-created-with-bapi-document-create2-commit/m-p/12225684#M1983988</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-07-14T12:48:10Z</dc:date>
    </item>
  </channel>
</rss>

