<?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: Problems implementing BADI_ACC_DOCUMENT in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-implementing-badi-acc-document/m-p/7345007#M1539935</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;You can create your Z Class for BADI implementation by copying class CL_EXM_IM_ACC_DOCUMENT to a Z class. This will copy the Standard interface, you don't need to implement a Z interface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After having the class implemented, it will only be used when executing FM BAPI_ACC_DOCUMENT_POST with the table parameter EXTENSION2 filled. If you execute FM BAPI_ACC_DOCUMENT_POST with EXTENSION2 initial, then the BADI will not be executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Abraço.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Oct 2010 12:53:38 GMT</pubDate>
    <dc:creator>mrio_espinheira</dc:creator>
    <dc:date>2010-10-12T12:53:38Z</dc:date>
    <item>
      <title>Problems implementing BADI_ACC_DOCUMENT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-implementing-badi-acc-document/m-p/7345006#M1539934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi gurus, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to enhance badi_acc_document to change some document fields when posting via bapi but im facing some troubles here...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i try to implement a Zbadi BADI_ACC_DOCUMENT enhancement my zbadi it´s not getting called...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other problem that i see it's taht im able to create a Z class , CL_EXM_IM_ACC_DOCUMENT implementation, but im unable to implement a Z interface , IF_EX_ACC_DOCUMENT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone allready had this kind of problems or know a soluiton to this problem.&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;P&gt;João Martins&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Oct 2010 12:00:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-implementing-badi-acc-document/m-p/7345006#M1539934</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-12T12:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problems implementing BADI_ACC_DOCUMENT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-implementing-badi-acc-document/m-p/7345007#M1539935</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;You can create your Z Class for BADI implementation by copying class CL_EXM_IM_ACC_DOCUMENT to a Z class. This will copy the Standard interface, you don't need to implement a Z interface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After having the class implemented, it will only be used when executing FM BAPI_ACC_DOCUMENT_POST with the table parameter EXTENSION2 filled. If you execute FM BAPI_ACC_DOCUMENT_POST with EXTENSION2 initial, then the BADI will not be executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Abraço.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Oct 2010 12:53:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-implementing-badi-acc-document/m-p/7345007#M1539935</guid>
      <dc:creator>mrio_espinheira</dc:creator>
      <dc:date>2010-10-12T12:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: Problems implementing BADI_ACC_DOCUMENT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-implementing-badi-acc-document/m-p/7345008#M1539936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved Guys!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just needed to extend class CL_EXM_IM_ACC_DOCUMENT to a Z class and then define it in the Z badi implementation, and then enhance the Z class in order to implement both methods.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the tip Mario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points will be given&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Abraço&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW there no need to fill extension2 table, cause the Bapi doesnt check if table is empty or not, for fill_accit method. If the badi implementation is active the it always passes thru this implementation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: joao martins on Oct 12, 2010 3:22 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Oct 2010 13:22:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-implementing-badi-acc-document/m-p/7345008#M1539936</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-12T13:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problems implementing BADI_ACC_DOCUMENT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-implementing-badi-acc-document/m-p/7345009#M1539937</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;You are right on the topic of filling the EXTENSION2 parameter, what I said only applies to BTE RWBAPI01 (FI-FI) and to table parameter EXTENSION1, which can also be used to change document data before posting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Oct 2010 13:39:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-implementing-badi-acc-document/m-p/7345009#M1539937</guid>
      <dc:creator>mrio_espinheira</dc:creator>
      <dc:date>2010-10-12T13:39:25Z</dc:date>
    </item>
  </channel>
</rss>

