Can anyone let me know the step by step procedure for creating userexits?

Hi all,
can anyone let me know the step by step procedure for creating user exits? for any transaction code like mm01 or vd01. If you have any docs send it across to my email id : [email protected]
thanxs in advance
hari

Hi,
*& Report  ZEXITFINDER
*report  zexitfinder.
*& Enter the transaction code that you want to search through in order
*& to find which Standard SAP User Exits exists.
*& Tables
tables : tstc, "SAP Transaction Codes
tadir, "Directory of Repository Objects
modsapt, "SAP Enhancements - Short Texts
modact, "Modifications
trdir, "System table TRDIR
tfdir, "Function Module
enlfdir, "Additional Attributes for Function Modules
tstct. "Transaction Code Texts
*& Variables
data : jtab like tadir occurs 0 with header line.
data : field1(30).
data : v_devclass like tadir-devclass.
*& Selection Screen Parameters
selection-screen begin of block a01 with frame title text-001.
selection-screen skip.
parameters : p_tcode like tstc-tcode obligatory.
selection-screen skip.
selection-screen end of block a01.
*& Start of main program
start-of-selection.
Validate Transaction Code
select single * from tstc
where tcode eq p_tcode.
Find Repository Objects for transaction code
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 = enlfdir-area.
move : tadir-devclass to v_devclass.
endif.
endif.
Find SAP Modifactions
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.
Take the user to SMOD for the Exit that was selected.
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.
look in txn CMOD or SMOD, check enhancement 0VRF0001. It uses function module EXIT_SAPL0VRF_001. It is used to manipulate route determination for SD.
Here is the code
    DATA: ls_xvbpa LIKE xvbpa,
          lf_aland LIKE tvst-aland,
          lf_azone LIKE tvst-azone,
          lf_lland LIKE trolz-lland,
          lf_lzone LIKE trolz-lzone,
          ls_vbadr LIKE vbadr,
          ls_xvbap LIKE xvbap,
          ls_tvst LIKE tvst,
          lv_route LIKE trolz-route.
    LOOP AT xvbap INTO ls_xvbap.
      IF NOT ls_xvbap-vstel IS INITIAL.
        SELECT SINGLE * FROM tvst
          INTO ls_tvst
         WHERE vstel EQ ls_xvbap-vstel.
        IF sy-subrc = 0.
          lf_aland = ls_tvst-aland.
          lf_azone = ls_tvst-azone.
        ENDIF.
      ENDIF.
      READ TABLE xvbpa INTO ls_xvbpa WITH KEY vbeln = ls_xvbap-vbeln
                                              posnr = ls_xvbap-posnr
                                              parvw = 'Q1'.
      IF sy-subrc = 0.
        CALL FUNCTION 'SD_ADDRESS_GET'
          EXPORTING
            fif_address_number      = ls_xvbpa-adrnr
          IMPORTING
            fes_address             = ls_vbadr
          EXCEPTIONS
            address_not_found       = 1
            address_type_not_exists = 2
            no_person_number        = 3
            OTHERS                  = 4.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ELSE.
          lf_lland = ls_vbadr-land1.
          lf_lzone = ls_vbadr-lzone.
        ENDIF.
      ENDIF.
      CALL FUNCTION 'SD_ROUTE_DETERMINATION'
        EXPORTING
          i_aland             = lf_aland
          i_azone             = lf_azone
          i_lland             = lf_lland
          i_lzone             = lf_lzone
        IMPORTING
          e_route             = lv_route
        EXCEPTIONS
          no_route_found      = 1
          departure_error     = 2
          destination_error   = 3
          invalid_generic_key = 4
          customer_exit_error = 5
          OTHERS              = 6.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ELSE.
        ls_xvbap-route = lv_route.
        MODIFY xvbap FROM ls_xvbap TRANSPORTING route.
      ENDIF.
    ENDLOOP.
For information on Exits, check these links
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sapgenie.com/abap/code/abap26.htm
http://www.sap-img.com/abap/what-is-user-exits.htm
http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
http://www.easymarketplace.de/userexit.php
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sappoint.com/abap/userexit.pdfUser-Exit
http://www.planetsap.com/userexit_main_page.htm
User-Exits
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sap-img.com/ab038.htm
http://www.planetsap.com/userexit_main_page.htm
http://www.sap-basis-abap.com/sapab013.htm
http://sap.ittoolbox.com/documents/popular-q-and-a/user-exits-for-the-transaction-code-migo-3283
<b>Reward points</b>
Regards

Similar Messages

  • Can anyone let me know abt the new selection

    hi all,
    While we create reports using query designer. when u click on the structure, there are 2 options that turns up new selection and new formula.
    Can anyone let me know the significance of new selection with an example. Why it is used And what is it importance.
    thanxs in advance
    regds
    hari

    Selection is for Restricted Key Figure while Formula is for Calculated Key figure. Both Selection and formula is for locally declared and execute for that query where it is defined at, but CKF and RKF are global in nature, you use them globally in all queries which uses the underlying infoprovider.
    thanks.
    Wond

  • Hi all can anyone let me know about navigational attributes?

    hi all,
    Can anyone let me know the importance of navigational attributes with examples.
    if docs pls email at [email protected]
    regds
    haritha

    HI haritha,
    Navigational attribute is used for drilling down in the report. We don't need to maintain Navigational attribute in the cube as a characteristic (that is the advantage) to drill down
    0MATERIAL has a Display attribute called MATGROUP and a Navigational attribute called MATTYPE.
    If you want your report to show MATGROUP, you need to have 0MATERIAL in the query too. A Display attribute always 'tags' along with the 'parent' characteristic.
    However you can include MATTYPE in your report without using 0MATERIAL. For reporting purposes a navigational attribute behaves just like another characteristic. This means that you can also have variables for navigational attributes.
    One drawback is that since they are stored outside your Info Cube (in master data tables), the OLAP has to perform an extra step to pull in this data and this leads to some performance impact, although in most cases this is negligible.
    When you double click on a cell in a report which contains a characteristic value, the report is filtered for this value and the entire characteristic column is removed from the results area. If you double click on material 1001, the material column goes away from the results and in the filter cells above the report, you can see value 1001 against Material.
    If you double click on a key figure value, nothing
    happens.
    If you double click on a Char column heading, the char is removed from the drill down.
    If you double click on a key figure column heading, all key figures go away, and the values that are left are for the key figure you double clicked. Again you can verify this by looking at the filter cells against the key figure structure.
    Re: Navigate Attribute
    assign points if helps,
    regards,
    yunus

  • Can anyone let me know how can i get the ouput from BW in .txt format.

    Can anyone let me know how can i get the ouput from BW in .txt format. See we can get output as Excel(i.e BEX) and manually convert it into txt format. I need a direct or automated way to do the same.no human intervention.
    mail me at [email protected] or post answer in sdn.

    Please do not multiple post across forums..
    how can i save the data in BEX reports in .txt format automatically
    This helps in keeping track of answers and avoids the issue of repeated answers across forums...
    Please close one of the threads as answered and provide the link that you want to follow
    Arun

  • I am trying to buy my album. I have an English ID but am operating in Switzerland in the German part. When I go to buy book the instructions are in French and price in  CHF. Can anyone let me know if I can change the language to English and order in £

    I am trying to buy my album. I have an English ID but am operating in Switzerland in the German part. When I go to buy book the instructions are in French and price in  CHF. Can anyone let me know if I can change the language to English and order in £ and use english Id from switzerland.
    All other systems set to English and i tunes

    see instructions here - since they are in Frencha and german I have no idea if they will solve your ptoblem
    LN

  • URGENT can anyone let me know how to include sort buttons in table maintian

    hi
    can anyone let me know how to include sort buttons in table maintianence
    as generally table maintianec done have sort buttons i need to include the sort buttons kindly let me know on that asap
    or can we use module pool in between table maintianece screen
    if yes how touse and how to cod for that
    regards
    Arora

    You can change the coding of Table Maintenance.
    >> Goto SM30, give table name and goto Display/Maintain mode and copy all the GUI status from standard program into your function group. Add sort button in the GUI Status of Maintain & Display mode.
    >> Goto to tablemaintenance screen generated using SE51.
    >> Select change mode.
    >> After PROCESS BEFORE OUTPUT, create one module to assign your function group program name to " X_HEADER-GUI_PROG = "
    >> In PROCESS AFTER INPUT, add another module at the end to perform the action.
    -Alpesh.Saparia

  • Can anyone let me know how to do MCSI configuration?

    Hi all,
    Can anyone let  me know how to configure MCSI reports ? is there any links in sap nor docs about it ?
    Thanks
    Pooja

    Steps in LIS:
    1. Crete Field Catalogue (Key Figures & Statistics)
    2. Create Info Structures using Field Catalogues
    3. Assign Update Groups to Info Structures & Set up Update Rules for Key Figures & Characteristics.
    4. Activate the Update for Info Structures
    5. Perform statically set-up to upload and Post data in LIS.
    T-Codes:
    1. OMOA / OMOB / OMOC - Create / Change / Display - Application
    2. MC18 / MC19 / MC20 - Create / Change / Display - Field Catalogue
    3. MC / MC22 / MC23 - Create / Change / Display - Info Structures
    4. MC24 / MC25 / MC26 - Maintain update rules
    5. OMO1 - Activate Update.
    Hope this helps...
    Thanks,
    Jignesh Mehta

  • I have Adobe CS4 Photoshop for Windows (PN 65015634 - from 2008) -- Can anyone let me know if this is compatible with Windows 7??  Thanks!!

    I have Adobe CS4 Photoshop for Windows (PN 65015634 - from 2008) -- Can anyone let me know if this is compatible with Windows 7??
    Many and sincere thanks!!

    You need to have your computer looked at for upgrading and evaluate your third party hardware, software and files.
    To fix your issue is too complicated and lengthy to go into all of it here, it will require the services of person very familiar and experienced with Mac's to first recover your data and then restore OS X back to a functional state which may or may not require new hardware/software installed.
    You can hire the services of a local Mac computer support technician experienced in these matters.
    Have them look at your Wifi security/speed, RAM amount, extra storage and computer backup proceedures in the process.
    Good Luck.

  • Battery , time , signal strength bar is not getting displayed in home screen , these will be displayed only when i click on any app. Can u let me know the setting change ?

    Battery , time , signal strength bar is not getting displayed in home screen , these will be displayed only when i click on any app. Can u let me know the setting change ?

    Did you check the Zoom setting?
    Have you tried a reset (reboot)? Hold HOME and SLEEP until an Apple logo appears.
    If it isn't Zoom and a reboot doesn't help try Settings/General/Reset - Reset all settings

  • Can anyone let me know how to install hadoop in mac OS X

    Can anyone let me know how to install hadoop in mac OS X

    Read http://shayanmasood.com/blog/how-to-setup-hadoop-on-mac-os-x-10-9-mavericks/

  • Can anyone let me know how to integrate crystal reports with bi 7?

    HI all,
    Can anyone pls let me know the steps involved in integrating crystal reports with bi 7?
    thanks
    Pooja

    1.install BO client tools
    2. install crystal reports
    3.install sap integration kit
    once you install in above sequence you will be able to pull data from BW system.

  • Can anyone let me know differences.

    Can anyone kindly let me know the differences of free characterstics, default values.
    whether free characterstics is used for drill-down as after executing the query or what.

    Hi,
    Free Characteristic:
    Those characteristics that are transferred to the free characteristics area are called Free Chars. They are not displayed in the initial view of the results when you execute the query in the BEx Analyzer or on the Web. You can then integrate these characteristics into the results through navigation steps
    Default Values:
    Default Values is all about filtering. By selecting default values, you can create a query that is based on extensive data, but for which only a specific part of the data is displayed when the query is executed; this data that is displayed is the data in which you are most interested. You can then change the filter and analyze the remaining data as well. For example, all the customers in a query are to be analyzed, but in the initial state of the query, you only want to see specific customers.
    The difference between Filters values and Default values is that Default values are reusable whereas filters are not.
    Whatever we have selected in the free characterist area will be available for us in the Default values.
    Hope this helps.
    Regards,
    Priya

  • Could someone please let me know the best external hard drive for a Mac Pro 17 in. ? Thank you .

    Hi,
    I am new to the community and need advice as soon as possible . I have been using the iMac hard drive , but need a external hard drive to put on the Mac Pro and dont know what kind to get . Could someone please let me know the best for the Mac Pro ? I was told to get the 500 MB external back up , but when searching for it on the internet I saw different ones that had other things with the 500 MB . Some had 300 or 200 something else along with them and I dont know which to purchase .
    I will appreciate more than you know if you could help me with this , as the Pro is needing backed up now.
    Thank you ,

    I appreciate all the great advice here , but all this is overwhelming to me , as you all are so intelligent with these things and this causes me to feel more dumb about a Mac than I was already .
    I paid for a One on One to learn these things , but I have a Immune Disorder and wasn't able to attend one class , so its not that I didn't try , I am just not able to travel . I don't like asking others for help , but at this point I don't have a choice.
    I called Apple store and was told to get a External Back-up for the Macbook Pro to back up the info. on the device in the event it crashed . And another reason was "they " said to get this was I have a 2 TB backup on the iMac desktop and that using it to back up things on the Macbook would take up all the space of the backup on the desktop . I hope I am saying these things right for others to understand me as I said I don't know much about these things , at all really . I am wondering if I should have ever bought these products as it seems they are much harder to learn than I thought . I do admire all the brains you all have here and wish I knew just a little of what you all know.
    Someone ask the kind of Macbook Pro I have , it was bought in August of 2011 , but sat all those times , was only updated when needed to be , as I was trying to learn on the desktop Mac and with this illness I live in bed more than up , so I couldn't learn on both devices . I should also say at this time I paid for an extra 3 yrs. to have the opportunity to call in for advice , but was only given 15 min. of talk time , and I can't complain as the Techs were very supportive , but the problem was and is I can't be out of bed long enough to learn things I need to with only getting to call Techs , maybe every 3 or so months and sometimes I didn't call for 5 or so months , now that has expired and I don't have a choice but to ask for help .
    I know some might wonder why I went to the trouble to have these devices with being sick , but I would like to live some with what time I have left in life . I am not searching for pity here , just wanting to clarify what has happened and why I am having to bother others . With this out of the way now I can get onto the other things here.
    I am afraid I might have messed up the backup on the Macbook Pro was trying to make a back up and clicked on something saying do not use this , meaning the device from the desktop again . I had connected the backup device from the desktop , trying to make a backup of things on the Macbook Pro and also cant get the Time Machine turned back on , once I turned it off .
    I am sorry I have taken so much time to try and explain this to you all , but I am not computer savvy as you are and have had a hard time explaining all this .
    I noticed also someone said this isn't the right forum for this , and would like for someone to point me to the right one if you don't mind.
    I appreciate all the good advice here and all the trouble you all went to for me .
    Thank you , thank you all .

  • Can anyone let me know step by step procedure for creating userexits in bw?

    hi all,,
    Can anyone help me out on how to create user exit in bw? with an example in real time scenario. And if possible let me know sap exit too?
    regds
    hari

    hi Hari,
    there are user exits for extraction, reporting, ...
    check the links in
    https://wiki.sdn.sap.com/wiki/display/BI/ABAPinBW
    Customer Enhancements and Userexits in BW
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/59069d90-0201-0010-fd81-d5e11994d8b5
    extraction exit steps can be found
    'How to ... Extend Master Data to incl. Social Security Number ' ?
    https://websmp201.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_OBJECT=011000358700004516062001E
    for reporting example
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f1a7e790-0201-0010-0a8d-f08a4662562d
    hope this helps.

  • Can anyone let me know how does the system calculate forecast strategy?

    Hi all,
    I am new in Demand planning,,  I can see a couple of Forecast strategy used in  the production. I would like to know how does the system does the calculation for the forecasting strategies like
    36     Median method
    13     Moving average
    94     Linear regression
    etc.
    Can anyone pls guide me how does the system do the calculation and how to validate those calculations!!
    Thanks
    Pooja

    Hi Pooja,
    The below link will contain the detailed list of all forecast strategies alongwith how
    it will be calculated alongwith the formulas
    http://help.sap.com/saphelp_scm70/helpdata/EN/ac/216b6e337b11d398290000e8a49608/frameset.htm
    Please confirm whether this helps you to resolve your query
    Regards
    R. Senthil Mareeswaran.

Maybe you are looking for

  • How to make use of asynchronous service in CAF development

    Hello SDNs, How can we make use of asynchronous service in CAF development; Actually i am new to CAF development; my business requirement suites for the service provided by SAP. But the service provided is asynchronous; is it not possible to use the

  • SQL Developer 3 crashes when opening a local 172mB SQL file

    The crash occurs when trying to open a 172mB SQL file from my local C:\ drive on Windows 7 Ultimate 32-bit, running on a typical quad-core AMD Phenom CPU with the usual 3.3gb of RAM. Crash dump as follows: java.io.IOException: exception loading C:\..

  • Maps Stop working after install new FW 20

    I finish installed the new FW 20 all went smooth after I finish few things s top working: Maps not working it start show the map and crash (back to the main screen). I total remove it and installed it again; I reload the latest maps as well but still

  • Help needed with BootCamp and WinXP

    I've installed Bootcamp on my new MacBookPro and after the first reboot during windows XP installation the machine doesn't boot. I have to hold down "option" to choose to boot from Mac OS, but booting from the windows partition generates an error mes

  • JVC101E (PAL) AND FINAL CUT

    Hi, I have been searching the boards and looking for an answer on this,; what Final Cut software WORKS with this (pal)camera. thanks john