<?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 Posting Key in BAPI_ACC_DOCUMENT_POST in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-key-in-bapi-acc-document-post/m-p/5482742#M1255114</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 using bapi 'BAPI_ACC_DOCUMENT_POST' to post 'Customer Document'  in FB01. I was able to post the document but Posting Key in the document is not as desired. When I try to Post the document with out any Posting Key by default I am having Posting Key as '01'(Customer document) and '50'(GL account).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I want bapi  'BAPI_ACC_DOCUMENT_POST' to post a document with Posting key '15'(Customer Document) and '40'(GL account). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In bapi I am using these tables along with header.&lt;/P&gt;&lt;P&gt;ACCOUNTGL- GL Account &lt;/P&gt;&lt;P&gt;ACCOUNTRECEIVABLE- Customer Document&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried passing the posting key in ACCT_TYPE in table ACCOUNTGL and passing the the posting key using EXTENSION2 table but was not successful .   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone let me know&lt;/P&gt;&lt;P&gt;How can I pass the Posting Key to the bapi 'BAPI_ACC_DOCUMENT_POST' for Customer Document and GL account? &lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;How can I use EXTENSION2 table to create an appropriate posting key?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikki,&lt;/P&gt;&lt;P&gt;In one of your thread you came across the same issue and you solved it. Can you please guide me how to achive appropriate posting key using EXTENSION2 table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vijay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Apr 2009 19:02:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-29T19:02:21Z</dc:date>
    <item>
      <title>Posting Key in BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-key-in-bapi-acc-document-post/m-p/5482742#M1255114</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 using bapi 'BAPI_ACC_DOCUMENT_POST' to post 'Customer Document'  in FB01. I was able to post the document but Posting Key in the document is not as desired. When I try to Post the document with out any Posting Key by default I am having Posting Key as '01'(Customer document) and '50'(GL account).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I want bapi  'BAPI_ACC_DOCUMENT_POST' to post a document with Posting key '15'(Customer Document) and '40'(GL account). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In bapi I am using these tables along with header.&lt;/P&gt;&lt;P&gt;ACCOUNTGL- GL Account &lt;/P&gt;&lt;P&gt;ACCOUNTRECEIVABLE- Customer Document&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried passing the posting key in ACCT_TYPE in table ACCOUNTGL and passing the the posting key using EXTENSION2 table but was not successful .   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone let me know&lt;/P&gt;&lt;P&gt;How can I pass the Posting Key to the bapi 'BAPI_ACC_DOCUMENT_POST' for Customer Document and GL account? &lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;How can I use EXTENSION2 table to create an appropriate posting key?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikki,&lt;/P&gt;&lt;P&gt;In one of your thread you came across the same issue and you solved it. Can you please guide me how to achive appropriate posting key using EXTENSION2 table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vijay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2009 19:02:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-key-in-bapi-acc-document-post/m-p/5482742#M1255114</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-29T19:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: Posting Key in BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-key-in-bapi-acc-document-post/m-p/5482743#M1255115</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;Just follow these steps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Fill in your EXTENSION table like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;first 3 character represent item number&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;next 2 character represent posting key&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CLEAR: gt_extension.&lt;/P&gt;&lt;P&gt;  gt_extension(3)    = sy-index(3).&lt;/P&gt;&lt;P&gt;  gt_extension+3(2) = 'New Posting Key'.&lt;/P&gt;&lt;P&gt;  APPEND gt_extension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Create an FM similar to SAMPLE_INTERFACE_RWBAPI01 and put the following codes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT extension IS INITIAL.&lt;/P&gt;&lt;P&gt;  LOOP AT extension.&lt;/P&gt;&lt;P&gt;    READ TABLE it_accit WITH KEY posnr = extension(3).&lt;/P&gt;&lt;P&gt;    IF sy-subrc IS INITIAL.&lt;/P&gt;&lt;P&gt;      it_accit-bschl = extension+3(2).&lt;/P&gt;&lt;P&gt;      MODIFY it_accit INDEX sy-tabix.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.&lt;/P&gt;&lt;P&gt;-  Go to TCode "FIBF".&lt;/P&gt;&lt;P&gt;-  Go to Settings -&amp;gt; Products -&amp;gt; ... of a customer&lt;/P&gt;&lt;P&gt;-  Create a new entry and check the box to activate the product&lt;/P&gt;&lt;P&gt;Product = &amp;lt;any name&amp;gt;&lt;/P&gt;&lt;P&gt;Text = &amp;lt;description&amp;gt;&lt;/P&gt;&lt;P&gt;RFC = blank&lt;/P&gt;&lt;P&gt;Check the activation box&lt;/P&gt;&lt;P&gt;-  Go to Settings -&amp;gt; Process Modules -&amp;gt; ... of a customer&lt;/P&gt;&lt;P&gt;-  Create a new entry by specifying the name of the function module name and product name created earlier.&lt;/P&gt;&lt;P&gt;Process = RWBAPI01&lt;/P&gt;&lt;P&gt;Ctr = blank&lt;/P&gt;&lt;P&gt;Appl = blank&lt;/P&gt;&lt;P&gt;FM = &amp;lt;FM created&amp;gt;&lt;/P&gt;&lt;P&gt;Product = &amp;lt;name of product created earlier&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Leonard Chomi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2009 06:45:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-key-in-bapi-acc-document-post/m-p/5482743#M1255115</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-11T06:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: Posting Key in BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-key-in-bapi-acc-document-post/m-p/5482744#M1255116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/scn/directforumsearch?q=bapi_acc_document_post&amp;amp;objid=c42&amp;amp;daterange=last90days&amp;amp;searchid=23957686&amp;amp;rankby=10001&amp;amp;start=0" target="test_blank"&gt;https://www.sdn.sap.com/irj/scn/directforumsearch?q=bapi_acc_document_post&amp;amp;objid=c42&amp;amp;daterange=last90days&amp;amp;searchid=23957686&amp;amp;rankby=10001&amp;amp;start=0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go through this link&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2009 07:06:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-key-in-bapi-acc-document-post/m-p/5482744#M1255116</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-11T07:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: Posting Key in BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-key-in-bapi-acc-document-post/m-p/5482745#M1255117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont have much knowledge on this but I have searched some in SDN.. Check these links..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this links&lt;/P&gt;&lt;P&gt;[BAPI_ACC_DOCUMENT_POST|&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="7482465"&gt;&lt;/A&gt;]&lt;/P&gt;&lt;P&gt;[BAPI_ACC_DOCUMENT_POST|&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="7257175"&gt;&lt;/A&gt;]&lt;/P&gt;&lt;P&gt;[BAPI_ACC_DOCUMENT_POST|&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="7452509"&gt;&lt;/A&gt;]&lt;/P&gt;&lt;P&gt;[Posting Key in BAPI_ACC_DOCUMENT_POST   |&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="7504699"&gt;&lt;/A&gt;]&lt;/P&gt;&lt;P&gt;[Posting Key in BAPI_ACC_DOCUMENT_POST|&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="7509259"&gt;&lt;/A&gt;]&lt;/P&gt;&lt;P&gt;[BAPI_ACC_DOCUMENT_POST post One-time vender data ， can't ? |&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="7261540"&gt;&lt;/A&gt;]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards,&lt;/P&gt;&lt;P&gt;Dileep .C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2009 08:11:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-key-in-bapi-acc-document-post/m-p/5482745#M1255117</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-11T08:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: Posting Key in BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-key-in-bapi-acc-document-post/m-p/5482746#M1255118</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;For posting the Document with the Posting Key , you should use the Extension2 Structure and BADI for implementing that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should pass all the posting keys to the EXTENSION2 structure and you should implement ACC_DOCUMENT_POST (BADI), &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you pass all the posting keys to the EXTENSION2 structure, in the BAPI (BAPI_ACC_DOCUMENT_POST), the routine will call for BADI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope above idea is helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you require some more help on this.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2009 16:11:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-key-in-bapi-acc-document-post/m-p/5482746#M1255118</guid>
      <dc:creator>Adi_Bathineni</dc:creator>
      <dc:date>2009-05-12T16:11:40Z</dc:date>
    </item>
  </channel>
</rss>

