<?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 Debug BTE issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/debug-bte-issue/m-p/4590488#M1082532</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   We have written a Business transaction event(BTE) for Customer.  BTE number is 00001150 and is used for offset account determination.&lt;/P&gt;&lt;P&gt;   My question is, how do I debug this code written in this BTE ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any explination related to BTE is very much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Oct 2008 04:32:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-01T04:32:38Z</dc:date>
    <item>
      <title>Debug BTE issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debug-bte-issue/m-p/4590488#M1082532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   We have written a Business transaction event(BTE) for Customer.  BTE number is 00001150 and is used for offset account determination.&lt;/P&gt;&lt;P&gt;   My question is, how do I debug this code written in this BTE ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any explination related to BTE is very much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2008 04:32:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debug-bte-issue/m-p/4590488#M1082532</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-01T04:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: Debug BTE issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debug-bte-issue/m-p/4590489#M1082533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try with update Debugging, keep the break point in BTE code. and run the transaction with normal debugging using /h and then activate the update debugging and see..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2008 04:36:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debug-bte-issue/m-p/4590489#M1082533</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-01T04:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: Debug BTE issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debug-bte-issue/m-p/4590490#M1082534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sudhaker&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTEs are user-exits that are realized by dynamically called function modules.&lt;/P&gt;&lt;P&gt;In case of BTE 00001150 you will find fm OPEN_FI_PERFORM_00001150_P with the following coding:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FUNCTION OPEN_FI_PERFORM_00001150_P.
*"----------------------------------------------------------------------
*"*"Lokale Schnittstelle:
*"  TABLES
*"      T_ACCIT STRUCTURE  ACCIT
*"      T_ACCCR STRUCTURE  ACCCR OPTIONAL
*"      T_ACCITSUB STRUCTURE  ACCIT_SUBST
*"  EXCEPTIONS
*"      NOTHING_ACTIVE
*"      WRONG_SUBST
*"----------------------------------------------------------------------
DATA: L_ACCIT TYPE TABLE OF ACCIT,                     "start:note530655
      L_ACCCR TYPE TABLE OF ACCCR.                     "end:note530655

call function 'PC_FUNCTION_FIND'
       exporting
            i_procs       = '00001150'
       tables
            t_fmrfc       = fmtab
       exceptions
            nothing_found = 4
            others        = 8.
  if sy-subrc ne 0.
    message s015 with '00001150' raising nothing_active.
  endif.

*---------- Contents of fields that can be substituted -----------------
  perform accitsub_fill tables t_accitsub.

*------------------ Save interface data --------------------------------
*  memid+6 = '00001150P'.                             "start:note530655
*  export t_accit t_acccr to memory id memid.
  L_ACCIT[] = T_ACCIT[].
  L_ACCCR[] = T_ACCCR[].                              "end:note530655

  loop at fmtab.
    check not fmtab-funct is initial.
    if fmtab-rfcds is initial.
*------------- Open FI Interface with local destination ----------------
      call function fmtab-funct
           tables
                t_accit    = t_accit
                t_acccr    = t_acccr
                t_accitsub = accitsubtab .
    else.
...
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function module &lt;STRONG&gt;PC_FUNCTION_FIND&lt;/STRONG&gt; selects all fm's defined for this BTE which are subsequently called dynamically:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;call function fmtab-funct
...&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thus, BTE debugging is by no means different from debugging any other function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are already on SAP release &amp;gt;= 6.20 then you can use activatable break-points, e.g.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;BREAK-POINT ID &amp;lt;name of checkpoint group&amp;gt;.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2008 05:04:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debug-bte-issue/m-p/4590490#M1082534</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2008-10-01T05:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: Debug BTE issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debug-bte-issue/m-p/4590491#M1082535</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;You can keep break-points inside the BTE and test it. Else find OPEN_FI_PERFORM_00001150_P from the main program and keep the breakpoint in the next call statement( which is a dynamic call of a function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prasana.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2008 11:31:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debug-bte-issue/m-p/4590491#M1082535</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-01T11:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: Debug BTE issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debug-bte-issue/m-p/4590492#M1082536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   I am able to debug now but I have another issue now.  We have implemented OSS note 354529 and this note talks about replacement of OPEN_FI_PERFORM_00001150_P by a z function module Z_SAMPLE_PROCESS_00001150.  We have done setup in FIBF and entered data as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MANDT    030                              &lt;/P&gt;&lt;P&gt;PROCS    00001150                         &lt;/P&gt;&lt;P&gt;LAND                                      &lt;/P&gt;&lt;P&gt;APPLK    FI-AA                            &lt;/P&gt;&lt;P&gt;                                          &lt;/P&gt;&lt;P&gt;FUNCT    Z_SAMPLE_PROCESS_00001150        &lt;/P&gt;&lt;P&gt;PRDKT    OPEN_FI                          &lt;/P&gt;&lt;P&gt;MONIT                                     &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The new func module is not being called.  It is failed at call function 'PC_FUNCTION_FIND' in OPEN_FI_PERFORM_00001150_P.&lt;/P&gt;&lt;P&gt;  Can you please let me know what I am missing here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2008 08:21:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debug-bte-issue/m-p/4590492#M1082536</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-06T08:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: Debug BTE issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debug-bte-issue/m-p/4590493#M1082537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please check thread for details&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2009 04:41:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debug-bte-issue/m-p/4590493#M1082537</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-15T04:41:11Z</dc:date>
    </item>
  </channel>
</rss>

