<?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: Finding BADI in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/finding-badi/m-p/1707574#M309811</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; To get BAdI that come across while you execute any functionality :&lt;/P&gt;&lt;P&gt;  Set a breakpoint at line -&lt;/P&gt;&lt;P&gt;'CALL METHOD cl_exithandler=&amp;gt;get_class_name_by_interface'&lt;/P&gt;&lt;P&gt;  of method 'get_instance'  of class 'cl_exithandler' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once control comes to this point you can get the exit_name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if it helps.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shikha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Nov 2006 09:39:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-08T09:39:40Z</dc:date>
    <item>
      <title>Finding BADI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/finding-badi/m-p/1707568#M309805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;How are you?&lt;/P&gt;&lt;P&gt;How can I find a BADI? How can I Trace it?&lt;/P&gt;&lt;P&gt;Can any one explain me clearly?&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rajendra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2006 11:57:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/finding-badi/m-p/1707568#M309805</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-07T11:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: Finding BADI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/finding-badi/m-p/1707569#M309806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi prasad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer these threads...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="2548894"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="2263085"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Alfred&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward with points for helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2006 12:01:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/finding-badi/m-p/1707569#M309806</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-07T12:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: Finding BADI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/finding-badi/m-p/1707570#M309807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajendra,&lt;/P&gt;&lt;P&gt;Just Copy &amp;amp; paste this code for finding BAdI's related to a given t-code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks to Kishan&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TABLES : TSTC,
TADIR,
MODSAPT,
MODACT,
TRDIR,
TFDIR,
ENLFDIR,
SXS_ATTRT ,
TSTCT.

DATA : JTAB LIKE TADIR OCCURS 0 WITH HEADER LINE.
DATA : FIELD1(30).
DATA : V_DEVCLASS LIKE TADIR-DEVCLASS.

PARAMETERS : P_TCODE LIKE TSTC-TCODE,
P_PGMNA LIKE TSTC-PGMNA .




DATA wa_tadir type tadir.

START-OF-SELECTION.

IF NOT P_TCODE IS INITIAL.
SELECT SINGLE * FROM TSTC WHERE TCODE EQ P_TCODE.

ELSEIF NOT P_PGMNA IS INITIAL.
TSTC-PGMNA = P_PGMNA.
ENDIF.

IF SY-SUBRC EQ 0.
SELECT SINGLE * FROM TADIR
WHERE PGMID = 'R3TR'
AND OBJECT = 'PROG'
AND OBJ_NAME = TSTC-PGMNA.

MOVE : TADIR-DEVCLASS TO V_DEVCLASS.

IF SY-SUBRC NE 0.
SELECT SINGLE * FROM TRDIR
WHERE NAME = TSTC-PGMNA.
IF TRDIR-SUBC EQ 'F'.
SELECT SINGLE * FROM TFDIR
WHERE PNAME = TSTC-PGMNA.

SELECT SINGLE * FROM ENLFDIR
WHERE FUNCNAME = TFDIR-FUNCNAME.

SELECT SINGLE * FROM TADIR
WHERE PGMID = 'R3TR'
AND OBJECT = 'FUGR'
AND OBJ_NAME EQ ENLFDIR-AREA.

MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
ENDIF.
ENDIF.

SELECT * FROM TADIR INTO TABLE JTAB
WHERE PGMID = 'R3TR'
AND OBJECT in ('SMOD', 'SXSD')
AND DEVCLASS = V_DEVCLASS.


SELECT SINGLE * FROM TSTCT
WHERE SPRSL EQ SY-LANGU
AND TCODE EQ P_TCODE.

FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
WRITE:/(19) 'Transaction Code - ',
20(20) P_TCODE,
45(50) TSTCT-TTEXT.
SKIP.
IF NOT JTAB[] IS INITIAL.
WRITE:/(105) SY-ULINE.
FORMAT COLOR COL_HEADING INTENSIFIED ON.

* Sorting the internal Table
sort jtab by OBJECT.
data : wf_txt(60) type c,
wf_smod type i ,
wf_badi type i ,
wf_object2(30) type C.
clear : wf_smod, wf_badi , wf_object2.
* Get the total SMOD.




LOOP AT JTAB into wa_tadir.
at first.
FORMAT COLOR COL_HEADING INTENSIFIED ON.

WRITE:/1 SY-VLINE,
2 'Enhancement/ Business Add-in',
41 SY-VLINE ,
42 'Description',
105 SY-VLINE.
WRITE:/(105) SY-ULINE.
endat.
clear wf_txt.
at new object.
if wa_tadir-object = 'SMOD'.
wf_object2 = 'Enhancement' .
elseif wa_tadir-object = 'SXSD'.
wf_object2 = ' Business Add-in'.

endif.
FORMAT COLOR COL_GROUP INTENSIFIED ON.

WRITE:/1 SY-VLINE,

2 wf_object2,
105 SY-VLINE.
endat.

case wa_tadir-object.
when 'SMOD'.
wf_smod = wf_smod + 1.
SELECT SINGLE MODTEXT into wf_txt
FROM MODSAPT
WHERE SPRSL = SY-LANGU
AND NAME = wa_tadir-OBJ_NAME.
FORMAT COLOR COL_NORMAL INTENSIFIED OFF.

when 'SXSD'.
* For BADis
wf_badi = wf_badi + 1 .
select single TEXT into wf_txt
from SXS_ATTRT
where sprsl = sy-langu
and EXIT_NAME = wa_tadir-OBJ_NAME.
FORMAT COLOR COL_NORMAL INTENSIFIED ON.

endcase.



WRITE:/1 SY-VLINE,
2 wa_tadir-OBJ_NAME hotspot on,
41 SY-VLINE ,
42 wf_txt,
105 SY-VLINE.
AT END OF object.
write : /(105) sy-ULINE.
ENDAT.


ENDLOOP.

WRITE:/(105) SY-ULINE.



SKIP.
FORMAT COLOR COL_TOTAL INTENSIFIED ON.
WRITE:/ 'No.of Exits:' , wf_smod.
WRITE:/ 'No.of BADis:' , wf_badi.

ELSE.
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
WRITE:/(105) 'No userexits or BADis exist'.
ENDIF.
ELSE.
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
WRITE:/(105) 'Transaction does not exist'.
ENDIF.

AT LINE-SELECTION.

data : wf_object type tadir-object.
clear wf_object.


GET CURSOR FIELD FIELD1.
CHECK FIELD1(8) EQ 'WA_TADIR'.
read table jtab with key obj_name = sy-lisel+1(20).
move jtab-object to wf_object.

case wf_object.
when 'SMOD'.
SET PARAMETER ID 'MON' FIELD SY-LISEL+1(10).

CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
when 'SXSD'.
SET PARAMETER ID 'EXN' FIELD SY-LISEL+1(20).
CALL TRANSACTION 'SE18' AND SKIP FIRST SCREEN.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and for other help check this links,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.allsaplinks.com/badi.html" target="test_blank"&gt;http://www.allsaplinks.com/badi.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And also download this file....&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.savefile.com/files.php?fid=8913854" target="test_blank"&gt;http://www.savefile.com/files.php?fid=8913854&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are other tutorials on this site...&lt;/P&gt;&lt;P&gt;&lt;A href="http://sapbrain.com/Tutorials/tuto_download.html" target="test_blank"&gt;http://sapbrain.com/Tutorials/tuto_download.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="816639"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BADI Link&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2005/helpdata/en/73/7e7941601b1d09e10000000a155106/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2005/helpdata/en/73/7e7941601b1d09e10000000a155106/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/rnd/papers/sugi30/SAP.ppt" target="test_blank"&gt;http://support.sas.com/rnd/papers/sugi30/SAP.ppt&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/abapindx.htm" target="test_blank"&gt;http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/abapindx.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://members.aol.com/_ht_a/skarkada/sap/" target="test_blank"&gt;http://members.aol.com/_ht_a/skarkada/sap/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.ct-software.com/reportpool_frame.htm" target="test_blank"&gt;http://www.ct-software.com/reportpool_frame.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.saphelp.com/SAP_Technical.htm" target="test_blank"&gt;http://www.saphelp.com/SAP_Technical.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.kabai.com/abaps/q.htm" target="test_blank"&gt;http://www.kabai.com/abaps/q.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.guidancetech.com/people/holland/sap/abap/" target="test_blank"&gt;http://www.guidancetech.com/people/holland/sap/abap/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.planetsap.com/download_abap_programs.htm" target="test_blank"&gt;http://www.planetsap.com/download_abap_programs.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/c8/1975cc43b111d1896f0000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/c8/1975cc43b111d1896f0000e8322d00/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;/people/thomas.weiss/blog/2006/04/03/how-to-define-a-new-badi-within-the-enhancement-framework--part-3-of-the-series&lt;/P&gt;&lt;P&gt;/people/thomas.weiss/blog/2006/04/18/how-to-implement-a-badi-and-how-to-use-a-filter--part-4-of-the-series-on-the-new-enhancement-framework&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raghav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2006 12:06:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/finding-badi/m-p/1707570#M309807</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-07T12:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: Finding BADI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/finding-badi/m-p/1707571#M309808</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;chk these excellent links.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci948835,00.html" target="test_blank"&gt;http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci948835,00.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sappoint.com/abap/bapiintro.pdf#search=%22bapi%20development%20check%20list%22" target="test_blank"&gt;http://www.sappoint.com/abap/bapiintro.pdf#search=%22bapi%20development%20check%20list%22&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/e3/cfa21850a711d395f900a0c94260a5/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/e3/cfa21850a711d395f900a0c94260a5/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Anver&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2006 12:08:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/finding-badi/m-p/1707571#M309808</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2006-11-07T12:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: Finding BADI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/finding-badi/m-p/1707572#M309809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look at weblog on How to search BADIs by Alwin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/people/alwin.vandeput2/blog/2006/04/13/how-to-search-for-badis-trace-it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will surely help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Vibha &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2006 12:21:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/finding-badi/m-p/1707572#M309809</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-07T12:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: Finding BADI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/finding-badi/m-p/1707573#M309810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi friend,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Finding a BADI is very easy.&lt;/P&gt;&lt;P&gt;in order to  find a badi first you should know for which transaction the badi is required . for that transaction find out the package.&lt;/P&gt;&lt;P&gt;for eg for tcode ME21N the package is ME&lt;/P&gt;&lt;P&gt;for MM01 the package is MGA. package can be find out from menu bar SYSTEM-&amp;gt;STATUS and GOTO-&amp;gt;ATTRIBUTES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after finding the package name &lt;/P&gt;&lt;P&gt;go to tcode SE18  press f4 on the field&lt;/P&gt;&lt;P&gt;it will display a dialog box press on INFORMATION SYSTEM BUTTON.&lt;/P&gt;&lt;P&gt;and give the package name and presss ENTER&lt;/P&gt;&lt;P&gt;it will display all the BADI related to that tcode.&lt;/P&gt;&lt;P&gt;after u find the related badi u have to implement the badi&lt;/P&gt;&lt;P&gt;in se19.&lt;/P&gt;&lt;P&gt;ALL THE BESST&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2006 12:51:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/finding-badi/m-p/1707573#M309810</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-07T12:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: Finding BADI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/finding-badi/m-p/1707574#M309811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; To get BAdI that come across while you execute any functionality :&lt;/P&gt;&lt;P&gt;  Set a breakpoint at line -&lt;/P&gt;&lt;P&gt;'CALL METHOD cl_exithandler=&amp;gt;get_class_name_by_interface'&lt;/P&gt;&lt;P&gt;  of method 'get_instance'  of class 'cl_exithandler' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once control comes to this point you can get the exit_name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if it helps.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shikha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Nov 2006 09:39:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/finding-badi/m-p/1707574#M309811</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-08T09:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: Finding BADI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/finding-badi/m-p/1707575#M309812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To find BADI's &amp;amp; Implementation 'SE18' &amp;amp; 'SE19' respectively.  To Trace the BADI, Go to 'se93' &amp;amp; enter function module name / program name into that screen &amp;amp; Execute it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'Runtime Analysis - Performance File - Analyse' or 'F7' key to see performance of that BADI.  I hope this would be helpful, if so, reward the points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ramki.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Nov 2006 13:01:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/finding-badi/m-p/1707575#M309812</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-08T13:01:40Z</dc:date>
    </item>
  </channel>
</rss>

