<?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 Post Document in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/post-document/m-p/6399575#M1406038</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, i need to know if some data can be posted by BAPI_ACC_DOCUMENT_POST.&lt;/P&gt;&lt;P&gt;How can i know it without getting a document number? I only need to know if the document can be posted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Javier Fernandez Acero on Nov 26, 2009 5:12 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Nov 2009 16:12:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-11-26T16:12:16Z</dc:date>
    <item>
      <title>Post Document</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/post-document/m-p/6399575#M1406038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, i need to know if some data can be posted by BAPI_ACC_DOCUMENT_POST.&lt;/P&gt;&lt;P&gt;How can i know it without getting a document number? I only need to know if the document can be posted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Javier Fernandez Acero on Nov 26, 2009 5:12 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Nov 2009 16:12:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/post-document/m-p/6399575#M1406038</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-26T16:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: Post Document</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/post-document/m-p/6399576#M1406039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check for commit flag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dont put this equal to X , and check the sy-subrc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you get it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Nov 2009 16:39:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/post-document/m-p/6399576#M1406039</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-26T16:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: Post Document</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/post-document/m-p/6399577#M1406040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Check for commit flag.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; dont put this equal to X , and check the sy-subrc.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Hope you get it.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Even if you don't do the commit the document number will be used, so you will have holes in you document number assignments. This may or may not be a problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPIs don't set the return code. You have to check the RETURN table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A better solution might be to use &lt;STRONG&gt;BAPI_ACC_DOCUMENT_CHECK&lt;/STRONG&gt; I haven't tried this so I don't know if the document number is used up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Nov 2009 16:47:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/post-document/m-p/6399577#M1406040</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-26T16:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: Post Document</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/post-document/m-p/6399578#M1406041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Bapi does not have commit flag.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Nov 2009 16:49:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/post-document/m-p/6399578#M1406041</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-26T16:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: Post Document</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/post-document/m-p/6399579#M1406042</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;so you just want to know whether you can post it instead of post it, right?&lt;/P&gt;&lt;P&gt;I think you can just call BAPI_TRANSACTION_ROLLBACK after your post.&lt;/P&gt;&lt;P&gt;of course, if your post didn't succeed, you don't need call BAPI_TRANSACTION_ROLLBACK .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Nov 2009 03:42:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/post-document/m-p/6399579#M1406042</guid>
      <dc:creator>peter_peng</dc:creator>
      <dc:date>2009-11-27T03:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: Post Document</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/post-document/m-p/6399580#M1406043</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;You can use BAPI- &lt;STRONG&gt;BAPI_ACC_DOCUMENT_CHECK&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this all the structures and internal tables are passed&lt;/P&gt;&lt;P&gt;same as that needs to be passed in POST BAPI but the check&lt;/P&gt;&lt;P&gt;BAPI does not posts the document only checks the whole document&lt;/P&gt;&lt;P&gt;details if they are correct or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mansi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Nov 2009 06:25:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/post-document/m-p/6399580#M1406043</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-27T06:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: Post Document</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/post-document/m-p/6399581#M1406044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check for commit flag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dont put this equal to X , and check the sy-subrc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you get it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you check this before replying?&lt;/P&gt;&lt;P&gt;It will not help anybody to flood this forum with untested answers.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Nov 2009 09:01:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/post-document/m-p/6399581#M1406044</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-27T09:01:54Z</dc:date>
    </item>
  </channel>
</rss>

