<?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: FB01 and BAPI_ACC_DOCUMENT_POST in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fb01-and-bapi-acc-document-post/m-p/1759154#M328721</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;Please check this line codes in program LACC9F20 inside the BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FORM fill_acct_key.
                                                         
  DATA: ld_bschh  LIKE accit-bschl,
        ld_bschs  LIKE accit-bschl,
        ld_umskz  LIKE accit-umskz.
  
  IF NOT gs_accit-ktosl IS INITIAL AND
     gs_accit-kstat IS INITIAL.
    CALL FUNCTION 'FI_GET_POSTING_KEY'
      EXPORTING
        i_ktosl       = gs_accit-ktosl
      IMPORTING
        e_bschs       = ld_bschs
        e_bschh       = ld_bschh
        e_umskz       = ld_umskz
      EXCEPTIONS
        error_message = 1.
...
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Dec 2006 18:05:14 GMT</pubDate>
    <dc:creator>ferry_lianto</dc:creator>
    <dc:date>2006-12-12T18:05:14Z</dc:date>
    <item>
      <title>FB01 and BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fb01-and-bapi-acc-document-post/m-p/1759151#M328718</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'm using BAPI_ACC_DOCUMENT_POST to simulate FB01. &lt;/P&gt;&lt;P&gt;Someone has used this BAPI to simulate FB01??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cant find the Posting Key (BSEG-BSCHL) in this BAPI, and i really need that. &lt;/P&gt;&lt;P&gt;Can anyone tell me if i should use this BAPI to simulate FB01 or exists another one.&lt;/P&gt;&lt;P&gt;And can someone help me to find the Posting Key in this BAPI?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2006 17:54:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fb01-and-bapi-acc-document-post/m-p/1759151#M328718</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-12T17:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: FB01 and BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fb01-and-bapi-acc-document-post/m-p/1759152#M328719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using FM POSTING_INTERFACE_DOCUMENT instead BAPI, works really fine.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2006 17:57:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fb01-and-bapi-acc-document-post/m-p/1759152#M328719</guid>
      <dc:creator>LucianoBentiveg</dc:creator>
      <dc:date>2006-12-12T17:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: FB01 and BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fb01-and-bapi-acc-document-post/m-p/1759153#M328720</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;- 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 (&amp;lt;b&amp;gt;KOTSL).&amp;lt;/b&amp;gt;&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;&lt;/P&gt;&lt;P&gt;If I could make a suggestion why dont you use &amp;lt;b&amp;gt;LSMW&amp;lt;/b&amp;gt; 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;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Or you can Do BDC&amp;lt;/b&amp;gt;&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;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if this Helps.&lt;/P&gt;&lt;P&gt;Manish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Manish Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2006 17:58:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fb01-and-bapi-acc-document-post/m-p/1759153#M328720</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-12T17:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: FB01 and BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fb01-and-bapi-acc-document-post/m-p/1759154#M328721</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;Please check this line codes in program LACC9F20 inside the BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FORM fill_acct_key.
                                                         
  DATA: ld_bschh  LIKE accit-bschl,
        ld_bschs  LIKE accit-bschl,
        ld_umskz  LIKE accit-umskz.
  
  IF NOT gs_accit-ktosl IS INITIAL AND
     gs_accit-kstat IS INITIAL.
    CALL FUNCTION 'FI_GET_POSTING_KEY'
      EXPORTING
        i_ktosl       = gs_accit-ktosl
      IMPORTING
        e_bschs       = ld_bschs
        e_bschh       = ld_bschh
        e_umskz       = ld_umskz
      EXCEPTIONS
        error_message = 1.
...
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2006 18:05:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fb01-and-bapi-acc-document-post/m-p/1759154#M328721</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2006-12-12T18:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: FB01 and BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fb01-and-bapi-acc-document-post/m-p/1759155#M328722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can check sap note : 487722 if you would like to include posting key in the BAPI&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2006 19:55:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fb01-and-bapi-acc-document-post/m-p/1759155#M328722</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-12T19:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: FB01 and BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fb01-and-bapi-acc-document-post/m-p/1759156#M328723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI, I NEED MORE INFO ABOUT THIS FM POSTING_INTERFACE_DOCUMENT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Dec 2006 20:55:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fb01-and-bapi-acc-document-post/m-p/1759156#M328723</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-16T20:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: FB01 and BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fb01-and-bapi-acc-document-post/m-p/1759157#M328724</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 picked up automatically by the BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The posting key is decided on the following factors &lt;/P&gt;&lt;P&gt;&amp;gt; the sign you have assigned to the amounts against each Accounting Document Line Item Number (ITEMNO_ACC).&lt;/P&gt;&lt;P&gt;&amp;gt; Also the accnt(GL / Vendor / Customer) details given against the corresponding ITEMNO_ACC to show from which accnt the amount needs to be debited and credited to which accnt.&lt;/P&gt;&lt;P&gt;&amp;gt;Debit /Crdit indicator used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this info helped you in giving an idea  about the posting key for this BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nishi.M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2011 14:20:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fb01-and-bapi-acc-document-post/m-p/1759157#M328724</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-24T14:20:10Z</dc:date>
    </item>
  </channel>
</rss>

