How can i find the exact BADI For a Particular Transaction

hi ppl,
How can i find the exact BADI For a Particular Transaction. Is there any Standard transaction or Programs to do this or suggest some other way.

Use this code:
*& Report  ZGET_BADI
REPORT  ZGET_BADI.
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.
Regards
Vinayak

Similar Messages

  • How can I find the serial number for my creative suite CS6 I bought it from a store.

    How can I find the serial number for my creative suite CS6 I bought it from a store.

    https://www.adobe.com/account.html for serial numbers or subscriptions on your Adobe page... or
    Lost serial # http://helpx.adobe.com/x-productkb/global/find-serial-number.html

  • How can I find the serial number for my stolen iPad that's associated with my apple ID ?

    How can I find the serial number for my stolen iPad that's associated with my apple ID ?

    If you registered it with Apple check your registered items at Your Support Profile for Registered Purchases. Also, see iOS- How to find the serial number, IMEI, MEID, CDN, and ICCID number.
    What To Do If Your iDevice Is Lost Or Stolen
    If you activated Find My Phone before it was lost or stolen, you can track it only if Wi-Fi is enabled on the device. What you cannot do is track your device using a serial number or other identifying number. You cannot expect Apple or anyone else to find your device for you. You cannot recover your loss unless you insure your device for such loss. It is not covered by your warranty.
    If your iPhone, iPod, iPod Touch, or iPad is lost or stolen what do you do? There are things you should have done in advance - before you lost it or it was stolen - and some things to do after the fact. Here are some suggestions:
    This link, Re: Help! I misplaced / lost my iPhone 5 today morning in delta Chelsea hotel downtown an I am not able to track it. Please help!, has some good advice regarding your options when your iDevice is lost or stolen.
      1. Reporting a lost or stolen Apple product
      2. Find my lost iPod Touch
      3. AT&T. Sprint, and Verizon can block stolen phones/tablets
      4. What-To-Do-When-Iphone-Is-Stolen
      5. What to do if your iOS device is lost or stolen
      6. 6 Ways to Track and Recover Your Lost/Stolen iPhone
      7. Find My iPhone
      8. Report Stolen iPad | Stolen Lost Found Online
    It pays to be proactive by following the advice on using Find My Phone before you lose your device:
      1. Find My iPhone
      2. Setup your iDevice on iCloud
      3. OS X Lion/Mountain Lion- About Find My Mac
      4. How To Set Up Free Find Your iPhone (Even on Unsupported Devices)

  • HT201386 how can I find the Image number of a particular photo in the Photos app included with iPad Air?

    how can I find the Image number of a particular photo in the Photos app included with iPad Air?

    Hello yamacutta,
    Thanks for using Apple Support Communities.
    The Photos app will not show you the actual file name of the photo.  However when you go through the image import process on your computer, you should be able to see both the thumbnail of the photo, as well as the filename of the image.
    Import photos and videos from your iPhone, iPad, or iPod touch to your Mac or Windows PC - Apple Support
    Take care,
    Alex H.

  • Why does Itunes say it can't find the original file for a particular song?

    why does Itunes say it can't find the original file for a particular song? and then asks if I want to locate it? I can't access a bunch of old song files. any new cds are available to me in itunes. all others are not accessible. how do i merge the new cd's with the old ones so that all the songs are playable in Itunes. thanks.

    sheri 0713 wrote:
    Of course, I have backed up to CD and/or external drive.
    I'm wondering if you're attempting to maintain your library on your external HDD? If iTunes has been directed to use a location on your external hard drive as your iTunes Music Folder location (you can check this in iTunes > Preferences > Advanced tab) you MUST ensure that the hard drive is connected to the computer and mounted in the Finder prior to launching iTunes. If it isn't, it can cause this error to appear. This is probably one of the most common reasons this error begins to appear.
    It seemed my purchased songs were the first to DISAPPEAR and I had to rebuy.(Nice scam in the bug?)
    So... why not restore them from your backup? If, for some reason, this wasn't an option, you could have also recovered them from any iPod or iPhone they were currently synced to (http://support.apple.com/kb/HT1848), or, you can also email iTunes Store support and request a "regrant," which is a once-per-account exception they might be able to offer you and allow you to download missing purchases again.
    I am now convinced this a HUGE BUG in 7.7.1. and possibly the previous version or two.
    I'm not so sure... I've never run across this particular error (my library is stored on my internal hard drive, but copied to an external for backup purposes with an application other than iTunes or Finder. I don't think Apple will provide acknowledgment to issues experienced only by very small numbers of people... I'm one of those, perhaps foolish, individuals who allows my computer to download updates immediately, rather than waiting for fear of problems, and again, I've never had this error.
    CG

  • To find the User Exits for a particular Transaction.

    hi,
        I want to find the number of User Exits for a The Transaction MM01 or MM02,
        I serched in the forums but could not find satisfactory ans,
        I tried with:
                 T.Code-> System>Status->Prog Name>SE38>find Call Customer-Exit.
        But its not helping me,
        Please help me.
    Thanks and Regards
    Suraj S Nair.

    hi ,
    if you are new to user exist use --> follw the below methos to find the user exit for a particular transaction or t-code
    create one custom pgm in se38 and execute >selection screenenter t-code and execute it will return all the user exists for a specific transaction..
    Finding the user-exits of a SAP transaction code
    * Finding the user-exits of a SAP transaction code
    * Enter the transaction code in which you are looking for the user-exit
    * and it will list you the list of user-exits in the transaction code.
    * Also a drill down is possible which will help you to branch to SMOD.
    * Written by : SAP Basis, ABAP Programming and Other IMG Stuff
    *              http://www.sap-img.com
    report zuserexit no standard page heading.
    tables : tstc, tadir, modsapt, modact, trdir, tfdir, enlfdir.
             tables : 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 obligatory.
    select single * from tstc where tcode eq p_tcode.
    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 = 'SMOD'
                           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:/(95) sy-uline.
               format color col_heading intensified on.
               write:/1 sy-vline,
                      2 'Exit Name',
                     21 sy-vline ,
                     22 'Description',
                     95 sy-vline.
               write:/(95) sy-uline.
               loop at jtab.
                  select single * from modsapt
                         where sprsl = sy-langu and
                                name = jtab-obj_name.
                       format color col_normal intensified off.
                       write:/1 sy-vline,
                              2 jtab-obj_name hotspot on,
                             21 sy-vline ,
                             22 modsapt-modtext,
                             95 sy-vline.
               endloop.
               write:/(95) sy-uline.
               describe table jtab.
               skip.
               format color col_total intensified on.
               write:/ 'No of Exits:' , sy-tfill.
            else.
               format color col_negative intensified on.
               write:/(95) 'No User Exit exists'.
            endif.
          else.
              format color col_negative intensified on.
              write:/(95) 'Transaction Code Does Not Exist'.
          endif.
    at line-selection.
       get cursor field field1.
       check field1(4) eq 'JTAB'.
       set parameter id 'MON' field sy-lisel+1(10).
       call transaction 'SMOD' and skip first   screen.
    *---End of Program
    Regards,
    Prabhudas

  • How to find the customer exits for a particular transaction

    hi
    how to find the customer exits for a particular transaction

    Hi jyothsna vankadari ,
    ther is a convenient way to find all BADIS called. You may know that BADIS are the newer version of EXITs.
    I would suggest you to go for BADI.
    Follow the below steps to find out what all BADI's are called when you press any button in any transaction.
    1) Goto se24 (Display class cl_exithandler)
    2) Double click on the method GET_INSTANCE.
    3) Put a break point at Line no.25 (CASE sy-subrc).
    Now
    4) Execute SAP standard transaction
    5) Press the required button for which you need to write an exit logic, the execution will stop at the break point.
    6) Check the values of variable 'exit_name', it will give you the BADI name called at that time.
    7) This way you will find all the BADIs called on click of any button in any transaction.
    Regards,
    Clemens

  • How to get all the approver list for a particular transaction in iExpense

    Is there any API to get all the approver list for a particular transaction in iExpense workflow after submitting an expense report?

    Hi All,
    Could anyone please let me know API to get all AME approvers in one go.
    I am currently using below API to get approver list.
    ame_api.getallapprovers (applicationidin => 201 , -- PO
    transactionidin => l_document_id , -- req header id
    transactiontypein => 'PURCHASE_REQ'
    ,approversout => l_appr_list
    But if any of the approver is INACTIVE then API is going into exception and not showing all approvers. Requirement is like to show all approvers with their statuses (ACTIVE / INACTIVE).
    Reply ASAP.

  • How can I find the router number for airport extreme card?

    I am trying (unsuccessfully) to wirelessly connect my PlayStation 3 to my iMac Duo using the built in Airport Extreme Card.
    Can someone please tell me how to find the router number for the built-in Airport? I am using OSX 10.4.9. The wireless card type on my Mac info is "Airport Extreme (Ox14E4, Ox89)".
    Thanks in advance.

    Since the iMac is using OS X's Internet Sharing, the iMac is acting as a router. The router IP address created by the iMac is dependent on the IP address assigned to the iMac. The first 2 numbers are the same but the last 2 are .2.1.
    For instance:
    If your iMac is getting an IP address of 192.168.0.200 your Mac's router IP address will be 192.168.2.1
    Similarly, if your iMac is getting an IP address of 10.0.1.200 your Mac's router IP address will be 10.0.2.1
    So
    Open Network Utility.
    Click on "Info". Under "Please select a network interface for information" select "Network Interface (en0)" to see what IP address the iMac has been assigned.
    Click on "Info". Under "Please select a network interface for information" select "Network Interface (en1)" to see what IP address the iMac is using as the router address on the wireless interface.

  • HT2534 how can I find the none button for payment method on mac?

    I'm a student. I have some problem with payment method. I don't have credit card. I can't find the none button to choose and I don't know how to do to get this button . This is my first time creating apple ID.

    Unless you used the instructions on the HT2534 page that you posted from when creating the account then you won't get the 'none' option - if you don't use those instructions then credit card details will need to be entered before an account can be used in the stores.
    Steps to create a new account with 'none' as the payment option : https://discussions.apple.com/message/24321860#24321860
    If you want to use the same email address on a new account then you can change it on the one that you've already created by logging into it via the Store > View Account menu option on your Mac's iTunes or via http://appleid.apple.com

  • Where can i find the Datewise stock for a particular material

    Hello friends,
    In which table i can find the stock of a particular material on particular date?.MARD, MCHB these all tables gives the current stock of material.But i want to find the stock of material on particular date.In Report MB5B and MC.9 we can find the stock on particular date but is there any table from where these reports fetch the data?
    Thanking you guys in advance.

    Dear Jitendra,
    Check once again in this thread whether are you able to find out some help.
    But I'm sure MB5B is not getting the info from a single table,it's getting the information from info
    structures and few tables.
    table to see stock on particular date
    Regards
    Mangalraj.S

  • How can I find the serial number for my Photoshop?

    Hello All. this is my fisrt post here, so please excuse me if I have posted in the wrong area.
    I have bought Photoshop from a local dealer in my country (Hungary). I have lost the product key for this software and now I need to re-install it.
    I have contacted the local dealer from which I have bought this program but they have advised me that the best way to get back my cd key is to contact Adobe.
    I know that there are some methods through which the key can be recovered. Some of them are posted on this [malware site removed] website, but I didn't find any tutorial for Photoshop. I have also tried to use one of the applications which are provided on that website, too, but without any results.
    My operating system is Windows 7.
    Can you please help me with this issue?
    Thanks a lot.
    Edit: sorry. I forgot to mention. I am using Photoshop CS5.

    If you install something like belarc advisor [ unknown link removed ] which is completly free it will do an audit of your system including telling you the serial number of installed software (and yes it should include photoshop - well it does for me).
    I hope this helps.
    Cheers
    John

  • How can I get the exact pathname for a file on my computer?

    I need to enter a command in Terminal that contains the pathname of an application. I know what the path is but Terminal does not recognize it. How do I make sure the pathname is in the correct form?

    Enter the command up to the point of entering the file path and add a space, then drag the file into the terminal window. It will fill out the path.
    If you need to go further into the contents of the Application package, you can continue with /Contents...
    Another way is to start typing and then hit Tab to auto-complete. It will stop where it can't determine the next letter.
    So, type /App tab and it will fill in /Applications. Type a / and start with the name of the app, then tab and it should complete. Continue till you have the correct path.
    Spaces will be replaced with \<space>, so, App Store would end up as /Applications/App\ Store.app

  • How can I find the latest update for Firefox 5 without upgrading to Firefox 6.0?

    I had the latest version of Firefox 5 getting automatically upgraded to Firefox 6.0, which disabled my Java 6.022 and 6.023 plugin. Since updating my Java is not an option, because then I can't access my bank account, I uninstalled Firefox 6.0 and installed Firefox 5.0. I quickly cancelled and disabled the auto-update. Now I have no idea if this is the oldest or the latest version of Firefox 5, because the auto-update doesn't let me choose the latest version of Firefox 5 instead of Firefox 6.0. Is there a way to do this manually?

    That are Java Console extensions (Tools > Add-ons > Extensions) and not the Java plugin (Tools > Add-ons > Plugins).
    You can uninstall and remove Java Console extensions, you do not need them to run Java applets.
    See:
    * http://kb.mozillazine.org/Java#Multiple_Java_Console_extensions
    You can also disable the Java Quick Starter extension: Tools -> Add-ons -> Extensions
    * Control Panel -> Java -> Advanced tab -> Miscellaneous -> Java Quick Starter (disable)
    See:
    * http://www.java.com/en/download/help/quickstarter.xml - What is Java Quick Starter (JQS)? What is the benefit of running JQS? - 6.0

  • How can I find the previous position for my iPhone?

    It's more then 24 hours since I lost my iPhone, and it seems like it's turned off/don't have more battery left. Is there any possible way to find the previous position of it, when it's more then 24 hours ago?? Please help me, desperate to find my phone, and to know where it was last seen would help me alot.

    Welcome to the Apple Community.
    Unless your phone connects to a cellular or wifi network while still using your iCloud account, it won't show it's location in Find my phone.

Maybe you are looking for