<?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: How to debug a BADI in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-badi/m-p/6134076#M1365876</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I put a break point and saw neither in Invoice creation nor at the save of invoice that BADI is hit/trigerred.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Use " this is in the documentaion of the BADI

This Business Add-In is used in the Interest Calculation (FI-AR-AR-IN) and Billing (SD-BIL) components.

It enables you to assign your customer invoices a payment reference number of your choice. This 
function is particularly interesting for companies in Denmark, Finland, Norway, and Sweden, where 
the payment reference number plays a more important role than in other countries.

In the standard R/3 System, when you create a customer invoice, the system generates a payment
 reference number by taking the invoice reference number and adding a check digit to it. However, this
 Add-In allows you to use a different number as the basis for the payment reference number, for example
 the customer number or the date as the reference number instead. You can use any of the numbers from
 the accounting document header or line items.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Aug 2009 06:59:22 GMT</pubDate>
    <dc:creator>former_member156446</dc:creator>
    <dc:date>2009-08-26T06:59:22Z</dc:date>
    <item>
      <title>How to debug a BADI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-badi/m-p/6134071#M1365871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have implemented a BADI -- FI_PAYREF_BADI_010 ....., now i am trying to debug this implementation by putting a break point in the code in implementation , now i am trying to change the invoice -- account section thorugh VF01 or VF02 transaction.... but it is not triggering ...i am not bale to judge where the problem is ......i have also checked that there is no other implementation for this BADI apart from wht i have created .....&lt;/P&gt;&lt;P&gt;please help me out&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2009 06:47:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-badi/m-p/6134071#M1365871</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-26T06:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug a BADI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-badi/m-p/6134072#M1365872</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;Inadditon to setting the break point in the BADI methods, you need to do the below: so that it triggers for each BADI call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Go to the TCode SE24 and enter CL_EXITHANDLER as object type.&lt;/P&gt;&lt;P&gt;2. In 'Display' mode, go to 'Methods' tab.&lt;/P&gt;&lt;P&gt;3. Double click the method 'Get Instance' to display it source code.&lt;/P&gt;&lt;P&gt;4. Set a breakpoint on 'CALL METHOD cl_exithandler=&amp;gt;get_class_name_by_interface'.&lt;/P&gt;&lt;P&gt;5. Then run your transaction.&lt;/P&gt;&lt;P&gt;6. The screen will stop at this method.&lt;/P&gt;&lt;P&gt;7. Check the value of parameter 'EXIT_NAME'. It will show you the BADI for that transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now if the BADI is triggered correctly the implementation can be debugged.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2009 06:51:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-badi/m-p/6134072#M1365872</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-26T06:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug a BADI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-badi/m-p/6134073#M1365873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Check if the BADI implementation is activated or not ? Try putting hard breakpoint if in dev. system or put an external breakpoint in the BADI implementation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KR Jaideep,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2009 06:51:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-badi/m-p/6134073#M1365873</guid>
      <dc:creator>jaideepsharma</dc:creator>
      <dc:date>2009-08-26T06:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug a BADI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-badi/m-p/6134074#M1365874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey i have checked ...BADI implementation is in active state only&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2009 06:52:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-badi/m-p/6134074#M1365874</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-26T06:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug a BADI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-badi/m-p/6134075#M1365875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  this is a filter dependent BADI when you are creating the implementation in the attributes tab you would have an option to define filters click the plus sign and add the country for which you want the BADU to trigger activate the BADi and then try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Himanshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2009 06:55:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-badi/m-p/6134075#M1365875</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-26T06:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug a BADI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-badi/m-p/6134076#M1365876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I put a break point and saw neither in Invoice creation nor at the save of invoice that BADI is hit/trigerred.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Use " this is in the documentaion of the BADI

This Business Add-In is used in the Interest Calculation (FI-AR-AR-IN) and Billing (SD-BIL) components.

It enables you to assign your customer invoices a payment reference number of your choice. This 
function is particularly interesting for companies in Denmark, Finland, Norway, and Sweden, where 
the payment reference number plays a more important role than in other countries.

In the standard R/3 System, when you create a customer invoice, the system generates a payment
 reference number by taking the invoice reference number and adding a check digit to it. However, this
 Add-In allows you to use a different number as the basis for the payment reference number, for example
 the customer number or the date as the reference number instead. You can use any of the numbers from
 the accounting document header or line items.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2009 06:59:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-badi/m-p/6134076#M1365876</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2009-08-26T06:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug a BADI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-badi/m-p/6134077#M1365877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey thanks for ur reply &lt;/P&gt;&lt;P&gt;ya i know it is filter dependent so i added the country keys for that and also activated .....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2009 07:02:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-badi/m-p/6134077#M1365877</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-26T07:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug a BADI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-badi/m-p/6134078#M1365878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hmm...ok even i m checking tht for VFo1 , and VF02 this BADI is not trigerring ....&lt;/P&gt;&lt;P&gt;how to find the transaction where this BADI is trigerring ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2009 07:08:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-badi/m-p/6134078#M1365878</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-26T07:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug a BADI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-badi/m-p/6134079#M1365879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try putting breakpoint on function module SXV_GET_CLIF_BY_NAME. Execute your transaction. Program will stop at this function module. Check the name parameter. When the name is name of your BADI start debugging the program and check why the BADI implementation is not called.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KR Jaideep,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2009 07:10:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-badi/m-p/6134079#M1365879</guid>
      <dc:creator>jaideepsharma</dc:creator>
      <dc:date>2009-08-26T07:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug a BADI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-badi/m-p/6134080#M1365880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Do a where used list on BADI and you will come to know the program where it is used. It's used in FI_PAYREF_CREATE_1 Function module which is used  in report RFDUZI00 and RFKUZI00.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KR Jaideep,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2009 07:11:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-badi/m-p/6134080#M1365880</guid>
      <dc:creator>jaideepsharma</dc:creator>
      <dc:date>2009-08-26T07:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug a BADI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-badi/m-p/6134081#M1365881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  Check the package FBAS and also the documentation for the BADI to check where it is triggereing.&lt;/P&gt;&lt;P&gt; In order to check where it is triggering go to class cl_exithandler and put a debug point in method 'GET_INSTANCE' there exit_name variable would give you the name of exits triggering when you run a transaction say Vf02.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like : BADI_SD_BILLING_ITEM&lt;/P&gt;&lt;P&gt;       BADI_SD_BILLING,GOS_SRV_SELECT,BADI_SD_TO_FM,BADI_MATN1 are some of the BADIs triggering for VF02.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Himanshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2009 07:16:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-badi/m-p/6134081#M1365881</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-26T07:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug a BADI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-badi/m-p/6134082#M1365882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi sharma , i have tried to put the break point as u said ...but my BADI is not gettiing triggered there....it is showing so many other values in names tab&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2009 07:16:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-badi/m-p/6134082#M1365882</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-26T07:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug a BADI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-badi/m-p/6134083#M1365883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Then I don't think this BADI is called for your transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KR Jaideep,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2009 07:28:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-badi/m-p/6134083#M1365883</guid>
      <dc:creator>jaideepsharma</dc:creator>
      <dc:date>2009-08-26T07:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug a BADI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-badi/m-p/6134084#M1365884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jaya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wht exactly ur requirement,for what purpose u want to implenment it,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check whether this is the correct badi for ur purpose.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2009 07:11:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-debug-a-badi/m-p/6134084#M1365884</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-27T07:11:29Z</dc:date>
    </item>
  </channel>
</rss>

