<?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 BAPI_ACC_DOCUMENT_POST - Document numbers in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-document-numbers/m-p/5693609#M1293625</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using BAPI_ACC_DOCUMENT_POST to post documents in a program. After the documents are posted I want to display the list of document numbers that are posted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked the return table but it doesn't contain document numbers. Only "Document posted successfully" message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there way to get these posted document numbers (BELNR) after posting with BAPI_ACC_DOCUMENT_POST? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Jun 2009 16:09:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-06-05T16:09:06Z</dc:date>
    <item>
      <title>BAPI_ACC_DOCUMENT_POST - Document numbers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-document-numbers/m-p/5693609#M1293625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using BAPI_ACC_DOCUMENT_POST to post documents in a program. After the documents are posted I want to display the list of document numbers that are posted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked the return table but it doesn't contain document numbers. Only "Document posted successfully" message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there way to get these posted document numbers (BELNR) after posting with BAPI_ACC_DOCUMENT_POST? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2009 16:09:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-document-numbers/m-p/5693609#M1293625</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-05T16:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_POST - Document numbers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-document-numbers/m-p/5693610#M1293626</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;This is the code I've used to find out the numebr of the posted document:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT RETURN.
       IF RETURN-ID     = 'RW' AND RETURN-NUMBER = '605'.
         DOC_NEW-BELNR = RETURN-MESSAGE_V2(10).
         DOC_NEW-BUKRS = RETURN-MESSAGE_V2+10(4).
         DOC_NEW-GJAHR = RETURN-MESSAGE_V2+14(4).
       ENDIF.
    ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2009 16:18:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-document-numbers/m-p/5693610#M1293626</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-05T16:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_POST - Document numbers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-document-numbers/m-p/5693611#M1293627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;excellent! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2009 16:27:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-document-numbers/m-p/5693611#M1293627</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-05T16:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_POST - Document numbers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-document-numbers/m-p/5693612#M1293628</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;I am also using the same bapi for generating a FI document.&lt;/P&gt;&lt;P&gt;Bapi returns a success message but the document is not visible in FB03.&lt;/P&gt;&lt;P&gt;Plz let me know what else needs to be done.&lt;/P&gt;&lt;P&gt;I have a called a FM BAP_TRANSACTION_COMMIT after the FM BAPI_ACC_DOCUMENT_POST.&lt;/P&gt;&lt;P&gt;So logically i think i am doing the right thing, but its not working &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have gone through lot of threads on the sdn but couldn't find a one which could help me.&lt;/P&gt;&lt;P&gt;Plz suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Jun 2009 08:03:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-document-numbers/m-p/5693612#M1293628</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-13T08:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_ACC_DOCUMENT_POST - Document numbers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-document-numbers/m-p/5693613#M1293629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this is little late to answer .. but still it will be better for clarity.&lt;/P&gt;&lt;P&gt;First of all accouting document will be generated only after commit of the BAPI i.e. call BAPI_TRANSACTION_COMMIT after BAPI_ACC_DOCUMENT_POST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second to check the accounting document number generated from BAPI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When filling the BAPI interface, leave the following fields empty if the FI document number is to be the reference document number for the posting: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;o DOCUMENTHEADER: OBJ_TYPE, OBJ_KEY and OBJ_SYS &lt;/P&gt;&lt;P&gt;o DOCUMENTHEADER and ACCOUNTGL: AC_DOC_NO &lt;/P&gt;&lt;P&gt;o ACCOUNT_GL: STAT_CON, AC_DOC_NO &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the importing paramters &lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;obj_type = l_type&lt;/P&gt;&lt;P&gt;obj_key = l_key&lt;/P&gt;&lt;P&gt;obj_sys = l_sys&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first 10 character of l_key will contain the FI document number&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Dec 2009 21:08:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-acc-document-post-document-numbers/m-p/5693613#M1293629</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-14T21:08:05Z</dc:date>
    </item>
  </channel>
</rss>

