<?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: Posting Key issue 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-issue-in-bapi-acc-document-post/m-p/568537#M22064</link>
    <description>&lt;P&gt;The Note already provided contains a sample for noted item (like F for vendor) so open it and look for &lt;A href="https://launchpad.support.sap.com/applications/nnfv2/services/bsp/sap/support/sapnotes/public/services/attachment.htm?iv_key=012003146900001241332014&amp;amp;iv_version=0008&amp;amp;iv_guid=B0297506DBF0AF49B58FA2CBD1967E13"&gt;noted_item.txt&lt;/A&gt;. Also read carefully the note as there should be a note/minimal SP required to use the BAPI for those kind of document.&lt;/P&gt;</description>
    <pubDate>Fri, 22 Sep 2017 08:30:19 GMT</pubDate>
    <dc:creator>RaymondGiuseppi</dc:creator>
    <dc:date>2017-09-22T08:30:19Z</dc:date>
    <item>
      <title>Posting Key issue in BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-key-issue-in-bapi-acc-document-post/m-p/568529#M22056</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;I have problem to pass posting to BAPI BAPI_ACC_DOCUMENT_POST...&lt;/P&gt;
  &lt;P&gt;I need to pass POSTING KEY as '19' . Currently the BAPI update the posting as 11 by automatically .&lt;/P&gt;
  &lt;P&gt;Special G/L Indicator for the Next Line Item = A.&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/68940-bapi.jpg" /&gt;&lt;/P&gt;
  &lt;H3&gt;&lt;/H3&gt;
  &lt;P&gt;I have implemented the BADI ACC_DOCUMENT, Method CHANGE&lt;/P&gt;
  &lt;P&gt;method IF_EX_ACC_DOCUMENT~CHANGE.&lt;BR /&gt; DATA: wa_extension TYPE bapiparex,&lt;BR /&gt; wa_accit TYPE accit.&lt;BR /&gt;LOOP AT c_extension2 INTO wa_extension.&lt;BR /&gt;* Extend BAPI to have Posting Keys defined by user&lt;BR /&gt; IF wa_extension-structure = 'POSTING_KEY'.&lt;BR /&gt; CLEAR wa_accit.&lt;BR /&gt; READ TABLE c_accit INTO wa_accit&lt;BR /&gt; WITH KEY posnr = wa_extension-valuepart1.&lt;BR /&gt; IF sy-subrc = 0.&lt;BR /&gt; wa_accit-bschl = wa_extension-valuepart2.&lt;BR /&gt; MODIFY c_accit FROM wa_accit INDEX sy-tabix TRANSPORTING bschl.&lt;BR /&gt; ENDIF.&lt;BR /&gt;ENDIF.&lt;BR /&gt;ENDLOOP.&lt;BR /&gt; endmethod.&lt;/P&gt;
  &lt;P&gt;My Program.&lt;/P&gt;
  &lt;P&gt;* Populate the Extension table&lt;BR /&gt; wa_bapiparex-structure = 'POSTING_KEY'.&lt;BR /&gt; wa_bapiparex-valuepart1 = ' 0000000001'. " Item number&lt;BR /&gt; wa_bapiparex-valuepart2 = '19'. " Posting Key&lt;BR /&gt; APPEND wa_bapiparex TO it_bapiparex.&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; * Valida consistencia de información&lt;BR /&gt; CALL FUNCTION 'BAPI_ACC_DOCUMENT_CHECK'&lt;BR /&gt; EXPORTING&lt;BR /&gt; documentheader = gd_documentheader&lt;BR /&gt; customercpd = gd_customercpd&lt;BR /&gt; contractheader = gd_fica_hd&lt;BR /&gt; TABLES&lt;BR /&gt; accountgl = it_accountgl&lt;BR /&gt; accountreceivable = it_accountreceivable&lt;BR /&gt; accountpayable = it_accountpayable&lt;BR /&gt; * accounttax = it_accounttax&lt;BR /&gt; currencyamount = it_currencyamount&lt;BR /&gt; * criteria = it_criteria&lt;BR /&gt; * valuefield = it_valuefield&lt;BR /&gt; extension1 = it_ext&lt;BR /&gt; return = it_return&lt;BR /&gt; * paymentcard = it_paymentcard&lt;BR /&gt; * contractitem = it_fica_it&lt;BR /&gt; extension2 = it_bapiparex.&lt;BR /&gt; * realestate = it_re.&lt;BR /&gt; APPEND LINES OF it_return TO it_allreturn.&lt;/P&gt;
  &lt;P&gt;The system show this message of error:&lt;/P&gt;
  &lt;P&gt;Special G/L indicator not defined or incorrect 19&lt;BR /&gt;&lt;/P&gt;
  &lt;P&gt;Can you please help me to solve it,&lt;/P&gt;
  &lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Sun, 17 Sep 2017 14:58:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-key-issue-in-bapi-acc-document-post/m-p/568529#M22056</guid>
      <dc:creator>former_member55784</dc:creator>
      <dc:date>2017-09-17T14:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: Posting Key issue in BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-key-issue-in-bapi-acc-document-post/m-p/568530#M22057</link>
      <description>&lt;P&gt;Did you fill SP_GL_IND in ACCOUNTRECEIVABLE?&lt;/P&gt;
  &lt;P&gt;NB: Most of the time I use the 'Special G/L Indicator' field for AP/AR accounts and the 'Transaction Key' field for G/L accounts to automatically change the posting key.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2017 05:53:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-key-issue-in-bapi-acc-document-post/m-p/568530#M22057</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2017-09-18T05:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: Posting Key issue in BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-key-issue-in-bapi-acc-document-post/m-p/568531#M22058</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;
  &lt;P&gt;I am filling SP_GL_IND with value A in table ACCOUNTRECEIVABLE&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/67024-error1.jpg" /&gt;&lt;/P&gt;
  &lt;P&gt;This generated error:&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/67025-error2.jpg" /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2017 21:21:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-key-issue-in-bapi-acc-document-post/m-p/568531#M22058</guid>
      <dc:creator>former_member55784</dc:creator>
      <dc:date>2017-09-18T21:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: Posting Key issue in BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-key-issue-in-bapi-acc-document-post/m-p/568532#M22059</link>
      <description>&lt;P&gt;Try to pass an initial value to GL_ACCOUNT field in ACCOUNTRECEIVABLE.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2017 09:51:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-key-issue-in-bapi-acc-document-post/m-p/568532#M22059</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2017-09-19T09:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: Posting Key issue in BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-key-issue-in-bapi-acc-document-post/m-p/568533#M22060</link>
      <description>&lt;P&gt;BAPI will automatically assign posting key on the basis of 1) account receivable or payable and 2) amount passed to it. Just check it in SE37 with some test cases. There is no need of BADI in this case.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2017 10:05:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-key-issue-in-bapi-acc-document-post/m-p/568533#M22060</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-09-19T10:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: Posting Key issue in BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-key-issue-in-bapi-acc-document-post/m-p/568534#M22061</link>
      <description>&lt;P&gt;When I pass an initial value to GL_ACCOUNT field in ACCOUNTRECEIVABLE work fine , but I need to pass POSTING KEY as '19' . Currently the BAPI update the posting as 11 by automatically .&lt;/P&gt;
  &lt;P&gt;I disabled the BADI in this case.&lt;/P&gt;
  &lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2017 11:42:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-key-issue-in-bapi-acc-document-post/m-p/568534#M22061</guid>
      <dc:creator>former_member55784</dc:creator>
      <dc:date>2017-09-19T11:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: Posting Key issue in BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-key-issue-in-bapi-acc-document-post/m-p/568535#M22062</link>
      <description>&lt;P&gt;Read &lt;A href="https://launchpad.support.sap.com/#/notes/2083799"&gt;2083799 - Composite SAP Note: Postings with Accounting BAPIs&lt;/A&gt;, look for '7. Special G/L transactions'. you should read 'The structures ACCOUNTRECEIVABLE and ACCOUNTPAYABLE contain the field SP_GL_IND, which you can use to post a special G/L transaction. &lt;STRONG&gt;The BAPI then derives the posting key of this open item accordingly.&lt;/STRONG&gt;' So if that's not what you get, look for your Customizing or some substition/change/BAdi which could cause the problem, look also for OSS notes available for your version.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2017 12:22:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-key-issue-in-bapi-acc-document-post/m-p/568535#M22062</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2017-09-19T12:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: Posting Key issue in BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-key-issue-in-bapi-acc-document-post/m-p/568536#M22063</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;
  &lt;P&gt;I solved the issue passing an initial value to GL_ACCOUNT field in ACCOUNTRECEIVABLE.&lt;/P&gt;
  &lt;P&gt;However when I am using other type 'Special G/L Indicator' for example F the system is generating the following error:&lt;/P&gt;
  &lt;P&gt;Tipo: E Nro.: 613 BAPI call with wrong business transaction RFBU RFBU DOCUMENTHEADER&lt;/P&gt;
  &lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2017 20:32:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-key-issue-in-bapi-acc-document-post/m-p/568536#M22063</guid>
      <dc:creator>former_member55784</dc:creator>
      <dc:date>2017-09-21T20:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: Posting Key issue in BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-key-issue-in-bapi-acc-document-post/m-p/568537#M22064</link>
      <description>&lt;P&gt;The Note already provided contains a sample for noted item (like F for vendor) so open it and look for &lt;A href="https://launchpad.support.sap.com/applications/nnfv2/services/bsp/sap/support/sapnotes/public/services/attachment.htm?iv_key=012003146900001241332014&amp;amp;iv_version=0008&amp;amp;iv_guid=B0297506DBF0AF49B58FA2CBD1967E13"&gt;noted_item.txt&lt;/A&gt;. Also read carefully the note as there should be a note/minimal SP required to use the BAPI for those kind of document.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2017 08:30:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-key-issue-in-bapi-acc-document-post/m-p/568537#M22064</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2017-09-22T08:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: Posting Key issue in BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/posting-key-issue-in-bapi-acc-document-post/m-p/568538#M22065</link>
      <description>&lt;P&gt;Excuse me if the time is really later, but I had a problem with BAPI_ACC_DOCUMENT_POST and I read your message to understand and create my own solution. &lt;/P&gt;&lt;P&gt;However, I don't use the BADI.&lt;/P&gt;&lt;P&gt;I found the field SP_IND_GL in the table ACCOUNTPAYABLE and I fill it with the content of my original document. Only to explain, my goal was convert all open documents in AP in some company to other. It works well. &lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 15:03:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/posting-key-issue-in-bapi-acc-document-post/m-p/568538#M22065</guid>
      <dc:creator>erico_bispo</dc:creator>
      <dc:date>2021-05-12T15:03:56Z</dc:date>
    </item>
  </channel>
</rss>

