<?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: FI Substitution not triggered when posting through BAPI_ACC_DOCUMENT_POST in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fi-substitution-not-triggered-when-posting-through-bapi-acc-document-post/m-p/7259616#M1528686</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Howdy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The BAPI doesn't call the substitutions - you can call the substitutions manually, eg function module FI_SUBSTITUTION_HEADER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Sep 2010 03:47:58 GMT</pubDate>
    <dc:creator>alex_cook</dc:creator>
    <dc:date>2010-09-29T03:47:58Z</dc:date>
    <item>
      <title>FI Substitution not triggered when posting through BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fi-substitution-not-triggered-when-posting-through-bapi-acc-document-post/m-p/7259615#M1528685</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;We are using a substitution to populate the profit centre for the AP line item from profit centre of the G/L line item while posting the FI documents. This substitution is defined at the "Complete document" node in the transaction GGB1. The pre-requisites for this substitution are document type and the company code. This substitution is working when the FI document is posted manually using the t.code fb60 or f-02 and also when posting through BDCs on these transactions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One of my program was using a BDC of FB60 and was calling this substitution. Now i  changed the BDC to BAPI_ACC_DOCUMENT_POST and the substitution is not triggered and the profit centre is not copied from the G/L line items. The same document while posting through the transaction FB60 is getting the profit centre from the G/L line item through the substitution. The pre-requisites are satisfied when calling through the BAPI also but still the substitution is not called.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any restriction on the substitution for BAPIs?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Immanuel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Sep 2010 03:21:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fi-substitution-not-triggered-when-posting-through-bapi-acc-document-post/m-p/7259615#M1528685</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-29T03:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: FI Substitution not triggered when posting through BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fi-substitution-not-triggered-when-posting-through-bapi-acc-document-post/m-p/7259616#M1528686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Howdy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The BAPI doesn't call the substitutions - you can call the substitutions manually, eg function module FI_SUBSTITUTION_HEADER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Sep 2010 03:47:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fi-substitution-not-triggered-when-posting-through-bapi-acc-document-post/m-p/7259616#M1528686</guid>
      <dc:creator>alex_cook</dc:creator>
      <dc:date>2010-09-29T03:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: FI Substitution not triggered when posting through BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fi-substitution-not-triggered-when-posting-through-bapi-acc-document-post/m-p/7259617#M1528687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alex,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are other substitutions which are defined at the "Line item" level in GGB1 and these substitutions are triggered when the document is posted using BAPI_ACC_DOCUMENT_POST. The control stops at the breakpoint in the substitution when the document is posted via BAPI. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it because my substitution is defined at the "Complete document" level that it is not called?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Immanuel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Sep 2010 04:15:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fi-substitution-not-triggered-when-posting-through-bapi-acc-document-post/m-p/7259617#M1528687</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-29T04:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: FI Substitution not triggered when posting through BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fi-substitution-not-triggered-when-posting-through-bapi-acc-document-post/m-p/7259618#M1528688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Found alternate solution.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Immanuel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Oct 2010 06:59:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fi-substitution-not-triggered-when-posting-through-bapi-acc-document-post/m-p/7259618#M1528688</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-13T06:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: FI Substitution not triggered when posting through BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fi-substitution-not-triggered-when-posting-through-bapi-acc-document-post/m-p/7259619#M1528689</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;Do you mind sharing the solution you found? I am having a similar problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Floyd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Oct 2010 19:05:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fi-substitution-not-triggered-when-posting-through-bapi-acc-document-post/m-p/7259619#M1528689</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-13T19:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: FI Substitution not triggered when posting through BAPI_ACC_DOCUMENT_POST</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fi-substitution-not-triggered-when-posting-through-bapi-acc-document-post/m-p/7259620#M1528690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Floyd,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement helped me. In my substitution there were a lot of logic to derive the profit centre based on different scenarios. From these logics i separated the logic required to derive the profit centre for my requirement and implemented that logic in my program itself. Then I passed this profit centre through the EXTENSION1 table and filled it in the BTE for the BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure if this will work for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Immanuel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Oct 2010 06:59:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fi-substitution-not-triggered-when-posting-through-bapi-acc-document-post/m-p/7259620#M1528690</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-14T06:59:13Z</dc:date>
    </item>
  </channel>
</rss>

