<?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 Can BAPI_ACC_DOCUMENT_POST post A/P document type KN to multiple orders? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-bapi-acc-document-post-post-a-p-document-type-kn-to-multiple-orders/m-p/6585094#M1434986</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have been using an old BDC program to post documents to A/P. It uses transaction f-43. After an upgrade and requested enhancement there are a number of problems with using this program:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. It won't post to multiple company codes within one document.&lt;/P&gt;&lt;P&gt;2. All line items get charged to the order number of the last line item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think we need to rewrite this interface to no longer use BDC processing. I was looking at BAPI_ACC_DOCUMENT_POST to replace the call to transaction f-43. So I have a number of questions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Am I on the right track? &lt;/P&gt;&lt;P&gt;2. Can BAPI_ACC_DOCUMENT_POST post document type KN? &lt;/P&gt;&lt;P&gt;3. Do I need to use table ACCOUNTGL to post to PM orders and internal orders? If so, can I post to multiple orders on one document?&lt;/P&gt;&lt;P&gt;4. Is there any chance you could provide a sample program that posts documents of type KN? There are a number of source code examples available for document type KR but none of KN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;&lt;P&gt;Laura Andrews&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 30 Jan 2010 00:11:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-01-30T00:11:40Z</dc:date>
    <item>
      <title>Can BAPI_ACC_DOCUMENT_POST post A/P document type KN to multiple orders?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-bapi-acc-document-post-post-a-p-document-type-kn-to-multiple-orders/m-p/6585094#M1434986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have been using an old BDC program to post documents to A/P. It uses transaction f-43. After an upgrade and requested enhancement there are a number of problems with using this program:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. It won't post to multiple company codes within one document.&lt;/P&gt;&lt;P&gt;2. All line items get charged to the order number of the last line item.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think we need to rewrite this interface to no longer use BDC processing. I was looking at BAPI_ACC_DOCUMENT_POST to replace the call to transaction f-43. So I have a number of questions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Am I on the right track? &lt;/P&gt;&lt;P&gt;2. Can BAPI_ACC_DOCUMENT_POST post document type KN? &lt;/P&gt;&lt;P&gt;3. Do I need to use table ACCOUNTGL to post to PM orders and internal orders? If so, can I post to multiple orders on one document?&lt;/P&gt;&lt;P&gt;4. Is there any chance you could provide a sample program that posts documents of type KN? There are a number of source code examples available for document type KR but none of KN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;&lt;P&gt;Laura Andrews&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 Jan 2010 00:11:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/can-bapi-acc-document-post-post-a-p-document-type-kn-to-multiple-orders/m-p/6585094#M1434986</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-30T00:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: Can BAPI_ACC_DOCUMENT_POST post A/P document type KN to multiple orders?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/can-bapi-acc-document-post-post-a-p-document-type-kn-to-multiple-orders/m-p/6585095#M1434987</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;1. Definitely, BDC sucks.&lt;/P&gt;&lt;P&gt;2. BAPI_ACC_DOCUMENT_POST is most generic BAPI. SO it should be possible to post document with type KN. I would suggest to have a look at more specific BAPI BAPI_ACC_INVOICE_RECEIPT_POST. I am not sure if this BAPI is suitable for your case. You can have a look at all BAPI_ACC_*.&lt;/P&gt;&lt;P&gt;3.  In case of BAPI_ACC_INVOICE_RECEIPT_POST you need to fill table ACCOUNTGL. I don't see any reason why you should not be able to enter different orders for different lines. I haven't tested it.&lt;/P&gt;&lt;P&gt;4. You should be able to find some examples here on SDN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 Jan 2010 23:13:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/can-bapi-acc-document-post-post-a-p-document-type-kn-to-multiple-orders/m-p/6585095#M1434987</guid>
      <dc:creator>mvoros</dc:creator>
      <dc:date>2010-01-31T23:13:55Z</dc:date>
    </item>
  </channel>
</rss>

