How to find out T code wise BADI and userexits

Hi,
Is there any standard way of finding out the BADIs and User exits Tcode wise.
regards,
Kannan.

Hi,
Use the following program to get the T code wise BADI and user exits.
*& Report  ZSD_FINDEXIT_BADI                                           *
REPORT  ZUSEREXIT                      .
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.
endcase.
Hope this will help u.
regards,
Naidu
Edited by: KANNAN on Apr 13, 2009 1:44 PM

Similar Messages

  • How to find out company code from a plant ?

    Hello friends,
    I have to modify a program that uses FM "BAPI_COMPANYCODE_GET_PERIOD".   For that, we have to export company code ID.  Currently it is hard coded with one company code.  Now we want to make this program usable by all company codes.  So instead of hard coding, I would like to dynamically find out company code based on the plant.   So I want to know - how to find out company code from a plant ?  Is there any table that has plant to company-code assignment data, or any other FM/BAPI to get this info ?
    Thanks,
    - Chetan

    hi
    u can find this from table T001K
    or just goto EC01
    here click on STRUCTURE>NAVIGATION
    double click on co code u will get the list
    u can slo try this in EC02
    regards
    kunal

  • How to find out what version of iTune and iPhoto I have?

    How to find out what version of iTune and iPhoto I have?

    For each application, launch it and choose About from that application's menu, or control-click its Dock icon, choose Show in Finder, control-click that, and choose Get Info.
    (76257)

  • How to find out material code using web services?

    Hi,
    Is there a WSDL to find out material code of a componet if only inventory ID is known?
    Regards
    Kari

    Thanks

  • How to find out the Target Component name and Target view name

    Hi All Expert,
                      I want to know ,how to find out the target component and target view in WEB UI,when i click on a field which shows as a hyper link in WEB UI .At GUI level ,i know the how it will work.Any way to find out the component name and view name which is show the details of that field at GUI level .IF you go to transaction CRMD_ORDER then open the service contract id .then goto the item level value .there is 1 service data tab is available at item level.there is two button is available.first one is available time and second one is response time .if i click on any button then one popup is open which is shows the details of that button.I dont know how to find out the component name and view name from GUI level.
    Thanks in Advance....
    Vishwas Sahu

    Hi Vishwa,
                 The control would be something like this for navigation in Get_p_xxx method u mention as link and u mention a event name which gets triggered on the click of this hyperlink. So your GET_P_XXX method would have the following code:
    CASE iv_property.
        WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.
          rv_value = cl_bsp_dlc_view_descriptor=>field_type_event_link.
        WHEN if_bsp_wd_model_setter_getter=>fp_onclick.
          rv_value = 'EXAMPLE'.
    Now you have to create a method as EH_ONEXAMPLE at your IMPL class and within which you would give an outbound plug method. Within the outbound plug the target data would be filled in the collection and window outbound plug would be triggered.
    This is a huge topic and  i have just mentioned you basic things.
    Regards,
    Bharathy.

  • How to find out who your administrator is and why I can't view certain things even on this web sight business account is what I have

    How do I find out who my administrator is and why I can't view certain things and get error 401 says i am an unauthorized user
    It is a small business which doesn't make sense why I shouldn't be able to access certain pages  on the Internet
    I believe my husband is the administrator actually
    Plus 404 and 403

    If you are referencing a specific web site, there is no way to determine who is set up as administrator. Contact the web site directly.
    Barry
    P.S. As a note, you already received an answer to your "401" question. Please do not rephrase a question and post it again. We are volunteers here and do not like to answer something that has already been addressed.
    Message was edited by: Barry Hemphill

  • How to find out the failed sql command and its data from DEFERROR

    Hi,
    has anybody a procedure or some other possibilities to read the content of column USER_DATA of the advanced replication view DEFERROR in order to find out the failed sql command and its column values?
    Thanks in advance.

    Hi Vishwa,
                 The control would be something like this for navigation in Get_p_xxx method u mention as link and u mention a event name which gets triggered on the click of this hyperlink. So your GET_P_XXX method would have the following code:
    CASE iv_property.
        WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.
          rv_value = cl_bsp_dlc_view_descriptor=>field_type_event_link.
        WHEN if_bsp_wd_model_setter_getter=>fp_onclick.
          rv_value = 'EXAMPLE'.
    Now you have to create a method as EH_ONEXAMPLE at your IMPL class and within which you would give an outbound plug method. Within the outbound plug the target data would be filled in the collection and window outbound plug would be triggered.
    This is a huge topic and  i have just mentioned you basic things.
    Regards,
    Bharathy.

  • How to find out the code behind a button

    Hi,
    What technique should I use to find out what java code is invoked when I click on a button in the portal?
    More concrete: I want to know the code behind the button I'm talking about <a href="https://forums.sdn.sap.com/thread.jspa?threadID=188251">here</a>.
    T h a n k s !
    Jeroen

    I would suggest you use HTTPWatch in your browser to see what is happening behind you button click.
    You can get it here
    <a href="http://www.simtec.ltd.uk/">http://www.simtec.ltd.uk/</a>

  • How to find out source code of portal

    Hi all,
        I'm working ECC6.0.
        In the portal there is a field managers substitute , when ever manager enteres . managers substitute name will populate.   the portal is constructed long back . it uses jsp.  I found out that portal applicarion calls from the jsp link of another server. i can view only  the application but i want to know where the souce code is available . potal calls the function module or table to get managers substite .i need to find out FM or filed name.
    thanks
    Naveen

    Hi all,
        I'm working ECC6.0.
        In the portal there is a field managers substitute , when ever manager enteres . managers substitute name will populate.   the portal is constructed long back . it uses jsp.  I found out that portal applicarion calls from the jsp link of another server. i can view only  the application but i want to know where the souce code is available . potal calls the function module or table to get managers substite .i need to find out FM or filed name.
    thanks
    Naveen

  • How to find out what code called the procedure

    Hi,
    I'm doing an error logging api, that will log errors when it's called. What I wasn't to know is if there's a way to find out what procedure/function called the api?
    One way is to pass the function as a text variable but it would be cool if the api could find out who called it.
    Hope i made myself clear :-)

    I think you can use DBMS_UTILITY.FORMAT_CALL_STACK (I assume that's also what Tom K is using in his utility - with a nice wrapper around it).
    Look at this example:
    SQL>CREATE OR REPLACE procedure p as
      2  begin
      3   dbms_output.put_line(dbms_utility.format_call_stack);
      4  end;
      5  /
    Procedure created.
    SQL>CREATE OR REPLACE procedure p2 as
      2  begin
      3    p;
      4  end;
      5  /
    Procedure created.
    SQL>CREATE OR REPLACE procedure p3 as
      2  begin
      3    p2;
      4  end;
      5  /
    Procedure created.
    SQL>exec p3;
    ----- PL/SQL Call Stack -----
      object      line  object
      handle    number  name
    38aad05a8         3  procedure HRM.P
    38aaa6990         3  procedure HRM.P2
    38aa9f470         3  procedure HRM.P3
    38a6e9d88         1  anonymous block
    PL/SQL procedure successfully completed.
    SQL>

  • Please help on how to find out if your capped? And...

    Is there another way to find out if your capped and when it will come off (other than it sloooooooows down at 5 and picks up at 12? Which could be lots of users on line, but funny how it happens every night at the same time.)
    without having to call bt to be told no your not

    the speedtester should tell you what yourthroughput is. try doing that during your peak time. also do a download test say xp service pack 3
    before peak time and during peak time to see how your line is bieng capped.  that way hopefully you can get a better idea

  • SQL Server Software ISO, How to find out what is the Edition and Version of the SQL software before starting installation

    Hi All-
    Before starting installation, I would like to find out What EDITION and VERSION  is the SQL Server Software ISO.
    Please note this is not to find out what version is the installed sql server but before the installation: Is there a note or abrv. that describes what kind of Edition and version is the ISO?
    Detail explanation is appreciated.
    Thanks.
    belayzeleka

    @Balmukund - Thanks for the input - That one is a nice blog!
    But assuming you can`t change the Product Key value (you are not provided that number, as you know it gets populated by itself) can you find out
    what implies the corresponding edition? If there is a folder where this reference is store, could you provide the full file path where  this folder is located?
    The ideal solution would be a way to find out what the Edition
    is befor we start installation.
    Thanks!
    Also just to add what I came across:
    The SQL Server 2012 installation software comes with pretty much all edition in it, that kind of makes it difficult to easily identify what edition is the specific ISO, but when
    one downloads from MSDN one must downloads the
    right edition either Standard,
    Enterprise, etc so that when you install it, it installs whatever edition is downloaded.
    The best source would be whoever downloaded the software.
    Also, before going too far, you can find out what edition it is being installed right before the setup wizard finishes on the
    License Terms page (Microsoft Software License Terms Page) and if the edition is not the one you intended to install, you can cancel it there and everything will be rolled back- no hastle.
    belayzeleka

  • How to find out Company code from Plant in BW

    Hi,                                                      This is probably a very basic question.                                 
    In one of my ODSs, I have 0PLANT infoobject but do not have the Company Code. I thought 0COMP_CODE should have been an attribute of 0PLANT. But it is not and I am NOT finding anyway to derive the company code from the Plant code.                              
    I guess I can change my datasource to get that value but thought the Plant-->Company Code link is one of the most basic things in SAP R/3.    
    I cannot imagine it can be missed in the Business Content design by SAP.  
    So thought I would check with you to see if my expectation is correct.    
    If not, what might have been the reason behind the exclusion of the link between Plant and Company Code from the Business Content.                                                                               
    Thanks and regards,                                                       
    Atul Kulkarni

    Hi,
    we are running RETAIL and by design:
    a plant (0PLANT ) belongs to a sales organization (0SALESORG attr of 0PLANT) which belongs to a company code (0COMP_CODE attr of 0SALESORG)
    this defines a unique comp_code for a plant.
    You can therefore put the following two fields in an internal table of a start routine
    SELECT pPLANT sCOMP_CODE
    INTO CORRESPONDING FIELDS OF TABLE lt_internal
    FROM /BI0/PPLANT p
    INNER JOIN  /BI0/PSALESORG s ON sSALESORG = pSALESORG
      AND sOBJVERS= pOBJVERS
      AND s~OBJVERS = 'A'.
    and look it up in your IObj routine.
    In R/3 that's true WERKS (T001W9 belongs to a BWKEY (T001K) which belongs to a BUKRS.
    hope that helps...

  • How to find out my verizon account number and pass code?

    Recently I tried to port one Verizon prepaid cellphone number to another carrier. During the porting the carrier asked me to provide the Verizon account number and pass code. How can I get this info?
    Thanks.

    Just as SuzyQ stated, Verizon Prepaid account numbers should be your mobile number, and as for the passcode, unless changed should be the last 4 digits of your mobile number. If you need more assistance give customer service a call.

  • How to find out the most used objects and rarely used objects?

    Hello all,
                  Can somebody please guide me on the procedure to separate frequently used transactions or reports or tables from rarely used ones on the production server?
    Is there any special transaction to find this out?
    hope to hear from you soon.
    Thanks,
    me

    The SAP standard doesn´t provide such a functionality. There is, however, a product called "RBE" (Reverse Business Engineer) which is part of the Solution Manager (ST-SEP). It must be licensed separately.
    Check
    https://service.sap.com/~sapdownload/011000358700000052162007E
    Markus

Maybe you are looking for