<?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: Creating the document through BAPI in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-the-document-through-bapi/m-p/3649891#M879089</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Whether already nobody faced with my problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Apr 2008 13:49:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-09T13:49:08Z</dc:date>
    <item>
      <title>Creating the document through BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-the-document-through-bapi/m-p/3649888#M879086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All of kind morning! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prompt please. &lt;/P&gt;&lt;P&gt;In FB1 when creating the document, on the first screen (" the Data of heading ") you specify Company Code. On the second screen there is a field " New Company Code " (NEWBK) there the second is underlined Company Code. In a result three documents, the General for two Company Codes and separateness for everyone Company Code are formed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How it is possible to realize it through BAPI? If yes that as it to make. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS. Earlier, when there was no such need used BAPI_ACC_DOCUMENT_POST. &lt;/P&gt;&lt;P&gt;PS. I Work in 6.0 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Beforehand I thank!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2008 03:47:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-the-document-through-bapi/m-p/3649888#M879086</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-08T03:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: Creating the document through BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-the-document-through-bapi/m-p/3649889#M879087</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;The posting key is decided automatically by the BAPI, it depends on the sign you have assigned to the amounts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case I suppose the BAPI'll use the postig key 40/50:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;40 if the amount is greater than 0, &lt;/P&gt;&lt;P&gt;50 if the amount is less than 0, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you can have some problem only if you need to use some keys different from 40/50.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case I believe you have to use the BAPI BAPI_ACC_DOCUMENT_POST, here you can choose which posting keys to be used in order to transaction key (KOTSL).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the table T030B&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I could make a suggestion why dont you use LSMW for the same&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The standard object is 0100.&lt;/P&gt;&lt;P&gt;It uses the standard program RFBIBL00 itself. But you should be able to format it easily&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a document on how you can use the tool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://sapabap.iespana.es/sapabap/manuales/pdf/lsmw.pdf" target="test_blank"&gt;http://sapabap.iespana.es/sapabap/manuales/pdf/lsmw.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you can Do BDC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look at the below threads, these threads have the sameple code also&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="1799592"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="121541"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suggest you to Search in SDN with key - FB01&lt;/P&gt;&lt;P&gt;Will get few more useful related Posts.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2008 03:51:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-the-document-through-bapi/m-p/3649889#M879087</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-08T03:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: Creating the document through BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-the-document-through-bapi/m-p/3649890#M879088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thanks for a fast reply!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the program for creating of documents has been realized up to me. Documents were created on one Company Code (BUKRS) through BAPI_ACC_DOCUMENT_POST.&lt;/P&gt;&lt;P&gt;It is necessary for me to change the program that the document was created for two Company Code&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2008 04:10:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-the-document-through-bapi/m-p/3649890#M879088</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-08T04:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: Creating the document through BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-the-document-through-bapi/m-p/3649891#M879089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Whether already nobody faced with my problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 13:49:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-the-document-through-bapi/m-p/3649891#M879089</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-09T13:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: Creating the document through BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-the-document-through-bapi/m-p/3649892#M879090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;up&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2008 05:04:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-the-document-through-bapi/m-p/3649892#M879090</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-11T05:04:44Z</dc:date>
    </item>
  </channel>
</rss>

