Pls give some info about userexit

hi everyone,
i never did work on userexit before. Could you give some info about how to create userexit and some knowledge related to that. Any suggestion is appreciated.
Best Regards,
Julian

User exits (Function module exits) are exits developed by SAP.
The exit is implementerd as a call to a functionmodule.
The code for the function module is writeen by the developer.
You are not writing the code directly in the function module, but in the include that is implemented in the function module.
The naming standard of function modules for functionmodule exits is:
EXIT_<program name><3 digit suffix>
The call to a functionmodule exit is implemented as:
CALL CUSTOMER.-FUNCTION <3 digit suffix>
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
CUSTOMER EXITS-> t-code CMOD.
As of Release 4.6A SAP provides a new enhancement technique, the Business Add-Ins.
Among others, this enhancement technique has the advantage of
being based on a multi-level system landscape (SAP, country versions, IS solutions, partner,
customer, and so on)
instead of a two-level landscape (SAP, customer) as with the customer exits.
You can create definitions and implementations of business add-ins at any level of the system landscape.
You can use below code to find out user exits associated with particular transaction.
*& Report  ZUSEREXIT                                                   *
*& 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.                                                  *
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.
I hope it gives some basic idea.
Best Regards,
Vibha
*Please mark all the helpful answers

Similar Messages

  • Need some info about current market on SAP HANA

    Hello all,
    Iam ajay. I have 2 years experience on java and i learned SAP ABAP and want to learn SAP HANA. I I have some doubts regarding current market on SAP HANA and how people are using HANA now. I have searched a lot in google and contacted many people but i didn't get the good answer. I hope this post provide me the required info. Thanks in advance.
    Can somebody please give some info. about the following.
    What exactly does the following mean and what is the future of these areas?
    BWI with HANA
    BODS with HANA
    HANA modelling and implementation.
    HANA Migrations.
    SAP UI5 with HANA.
    please spare some of your valuable time and help me on this.
    Thanks,
    Ajay.

    Hi
    I agree its a common HD webcam with a resolution of 1Mpix.
    You can record the video in Mpeg format and the pictures would be taken in format: 160x120, 176x144, 320x240, 352x288, 640x480, 1280x720, 1280x800

  • Some info about database updation automatically based on date..

    HI..Data base experts  Can u give some suggestions...
    some info about the system table date and system form...

    Hi
    Nagaraj
    Small Task...
    in hr table i shown in the image..
    active employee is there..
    in administration staring date is there...
    if any body will give date and then check box is true =y will be stored in the db..
    to day date  05 01 12
    if i give date  10 01 13 in staring date  if i press add button
    in check box column will be saved =Y and date will be saved in  10 01 13 not today date bcz i given 100113
    ok
    so.
    days are running                        db valueat comobo box           db value at date(i given)
    today date  =  05 01 13                          Y                              10 01 13 
    tomarrow  =    06 01 13                          Y                             
    day after to = 07 01 13                          Y
                         08 01 13                          Y
                         09 01 13                          Y
                        10 01 13                            N                              10 01 13 
    in sap particular table date is storing...
    so ..if the date what i had given(100113) will be matches to the system date
    if           check box value entered(i had)    Yes
    this will become 'N'
    automatically
    not manually...................          
    Is it possible..........

  • Please give me info about my monthly payment!! online offer last monday for $49.99

    Hello! I have had a very frustrating experience with Comcast customer service and billing department and my service hasn't started yet!! I am afraid I will have to cancel or opt out of your services.On Monday I contracted an online offer. Here's the screen shot of what I contracted. I tried to click on the blue letters "pricing & other info" but nothing will pop up never, so I was not able to check the "little print" that usually hides extra fees or anything. Go to your website and tell me if anyone can retrieve that info, from Chrome in my Galaxy Light phone, I couldn't.  On Tuesday I receive the confirmation of my order, but the details of my bill say something different from what I contracted!!  Here's a screen shot of the order confirmation.    Now, as I took screenshots of the steps it took me while I was contracting the service, here's the info of what I selected.   I remember I choose self installation and the cheapest shipping and handling, but I thought it wa going to be free too, as the one that was $29.00 something was the expedited shipping. Today, I needed to set up my username and password and choose the papaerless bill so at 11 am I called the number 1 855 230 4264  they said they could not help me and sent my call to other number, they helped me with the username and password and sent my call tbilling department so they could give me info about the carges on my confirmation email. The lady that picked up was super rude, first she said that I contracted the service at a comcast office, which I didn't, then she said some nonesense and ended up cutting my call and sending it to somebody else. I ask for her supervisor or manager and she told me he would be able to talk to me. Put me on hold and I had to wait more thatn 15 minutes for somebody to pick up my call again. The man that picked up, asked how was my day and since I said that I was not as good as I would wanted to, he put me on hold again and picked up 5 minutes later. By then I was very super angry >:-(  but I needed to finish this matter of knowing how much do I have to pay every month, so I tried to be patient, maybe a little sarcastic at a time. He started to give explanations that were not right, cause I answered with the info that I had. Then finally he said he had the offer I purchased and that probably it was shipping and handling what i was paying for, but he couldn't say if this was going to be my monthly statement or not.  He sent me to somebody else that was supposed to tell me this, but the man that picked up told me my monthly statement was going to be $54.** plus tax!! Even worse!! He didn't knew about the online offer or whatsoever. Please people!!!  All I want to know is if this $60.** was a one time charge or my monthly bill.   The state tax is around 10% in TN so what I expected to pay is $55.00 tops Who am I supposed to ask if neither your customer service or billing departments have the information???????  A super angry >:-( customer from Antioch, Tennessee

    http://support.apple.com/kb/HE57

  • Which log file will give the info about what is missing in sales document

    Hello SAP gurus
    I am trying to send a quote from our application to get saved in SAP using .Net Connector. I get the following error messages
    S  V4   233  SALES_HEADER_IN has been processed successfully
    S   V4  233  SALES_ITEM_IN has been processed successfully
    W  V1  555  The sales document is not yet complete: Edit data
    I am looking for any kind of incompletion log that will give more info about what is missing etc.,
    Where can I find such a log. Your feedback will be greatly appreciated.
    Tks
    Ram

    Hi,
    Just check this path.
    Go to sales order->Edit->Incompletion log.
    This  tells your docuement status. If at all your document is incomplete,you can just see what all you are missing.
    Thanks
    KV

  • Pls. give some suggestion on Subsequent Credit and debit note?

    Dear Gurus,
    Pls. give some suggestion on Subsequent Credit and debit note?
    Regrds
    Shikha

    Hi Sikha
    We generaly use subsequent debit / credit to adjust invoice value without affecting Qty
    Pls check notes supplied by SAP
    A subsequent debit/credit arises if a transaction has already been settled, and a further invoice or credit memo is received afterwards.
    A subsequent debit/credit changes the total invoice value of a purchase order item; the total invoice quantity remains unchanged. Therefore, only a value-based update of the purchasing transaction takes place. There is no quantity-based update.
    You must enter an invoice as a subsequent debit if a purchase order item has already been invoiced and further costs are incurred. (Example: A vendor has inadvertently invoiced you at too low a price and then sends a second invoice for the difference.)
    You must enter a credit memo as a subsequent credit if a purchase order item was invoiced at too high a price and now you have received a credit memo. (Example: A vendor has inadvertently invoiced you at too high a price and then sends a credit memo for the difference.)
    If you enter a subsequent debit/credit, the system suggests the entire invoiced quantity, but no value. The maximum quantity that you can subsequently debit or credit is the quantity that has already been invoiced.
    You can only enter a subsequent debit/credit for a purchase order item if an invoice has already been posted for that item.
    A subsequent debit/credit cannot refer to a particular invoice.
    Subsequent debits and credits are listed separately in the PO history
    Typical example is like
    suppose vendor has overcharged u for perticular PO and afterward he want to correct it
    In such scenario u can post subsequent debit to correct PO without affecting Qty. field
    <b>Reward if usefull</b>
    Vishal..

  • Hello !  pls give some ti[ps how to use bapi's for data uploading?

    hello !
      pls give some ti[ps how to use bapi's for data uploading?
    regards,
    Arjun

    Hi,
    See the below report extract:
    where it_data is having uploaded data.
    LOOP AT<b> it_data</b> INTO wa_data.
        line_count = sy-tabix.
        "Date Validation
        CONCATENATE wa_data-uplft_date4(4) wa_data-uplft_date2(2) wa_data-uplft_date+0(2)
        INTO wa_data-uplft_date.
        "READ TABLE it_ekko INTO wa_ekko WITH KEY lifnr = wa_data-vendor.
        LOOP AT it_ekko_temp INTO wa_ekko_temp WHERE lifnr = wa_data-vendor.
          IF wa_ekko_temp-kdatb <= wa_data-uplft_date AND wa_ekko_temp-kdate >= wa_data-uplft_date.
            MOVE-CORRESPONDING wa_ekko_temp TO wa_ekko.
            APPEND wa_ekko TO it_ekko.
          ENDIF.
        ENDLOOP.
        "IF sy-subrc = 0 AND wa_ekko-kdatb <= wa_data-uplft_date AND wa_ekko-kdate >= wa_data-uplft_date.
        LOOP AT it_ekko INTO wa_ekko.
          wa_data_header-pstng_date = wa_data-uplft_date.
          wa_data_header-doc_date = sy-datum.
          wa_data_header-bill_of_lading = wa_data-bill_of_lad.
          wa_data_header-ref_doc_no = wa_data-del_no.
          CONCATENATE wa_data-header_text1 '-'
                      wa_data-header_text2 '-'
                      wa_data-header_text3 '-'
                      wa_data-header_text4
                      into wa_data_header-HEADER_TXT.
          IF wa_data-indicator = 'Y'.
            wa_data_item-material = '000000000000200568'.
          ELSE.
            wa_data_item-material = '000000000000200566'.
          ENDIF.
          LOOP AT it_ekpo INTO wa_ekpo WHERE ebeln = wa_ekko-ebeln AND matnr = wa_data_item-material.
            "Collect Item Level Data
            wa_data_item-plant = '1000'.
            wa_data_item-stge_loc = '1001'.
            wa_data_item-move_type = '101'.
            wa_data_item-vendor = wa_data-vendor.
            wa_data-qnty = wa_data-qnty / 1000.
            wa_data_item-entry_qnt = wa_data-qnty.
            wa_data_item-po_pr_qnt = wa_data-qnty.
            wa_data_item-entry_uom = 'KL'.
            wa_data_item-entry_uom_iso = 'KL'.
            wa_data_item-orderpr_un = 'KL'.
            wa_data_item-orderpr_un_iso = 'KL'.
            wa_data_item-no_more_gr = 'X'.
            wa_data_item-po_number = wa_ekpo-ebeln.
            wa_data_item-po_item = wa_ekpo-ebelp.
            wa_data_item-unload_pt = wa_data-unload_pt.
            wa_data_item-mvt_ind = 'B'.
            APPEND wa_data_item TO it_data_item.
            CLEAR wa_data_item.
          ENDLOOP.
          CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
            EXPORTING
              goodsmvt_header = wa_data_header
              goodsmvt_code   = goodsmvt_code
              testrun         = 'X'
            TABLES
              goodsmvt_item   = it_data_item
              return          = return.
          READ TABLE return INTO wa_return WITH KEY type = 'S'.
          IF sy-subrc <> 0.
            DESCRIBE TABLE return LINES sy-tfill.
            IF sy-tfill = 0.
              CALL FUNCTION <b>'BAPI_GOODSMVT_CREATE'</b>   
            EXPORTING
                  goodsmvt_header = wa_data_header
                  goodsmvt_code   = goodsmvt_code
                  testrun         = ' '
                TABLES
                  goodsmvt_item   = it_data_item
                  return          = return.
              CALL FUNCTION <b>'BAPI_TRANSACTION_COMMIT'</b>
               EXPORTING
                 WAIT          = 'X'
              IMPORTING
                RETURN        =
            ENDIF.
          ENDIF.
          LOOP AT return INTO wa_return.
            WRITE: 'Messsage TYPE  ', wa_return-type,
                  /,'ID  ', wa_return-id,
                  /, 'Number  ', wa_return-number,
                  /, 'Message  ', wa_return-message,
                  /, 'Long Text  ', wa_return-message_v1,
                                    wa_return-message_v2,
                                    wa_return-message_v3,
                                    wa_return-message_v4,
                 /, 'Failed at line', line_count.
          ENDLOOP.
          CLEAR: wa_ekko, wa_ekpo, wa_data, it_data_item[], wa_data_header.
        ENDLOOP.
    Reward if useful!

  • I would like to get certified for the SAP Crystal Reports. So, I would like to get some info about the currently available Certification Exams for Crystal Reports (2011/2013). Also, would greatly appreciate  if you have any suggestions for thi

    Hi,
            I would like to get certified for the SAP Crystal Reports. So, I would like to get some info about the currently available Certification Exams for Crystal Reports (2011/2013). Also, would greatly appreciate  if you have any suggestions for this Certification Exam preparation materials from another 3rd party or from SAP directly .  I would like to prepare or get trained well before taking the exam as I see it costs around $500.
    Thanks in advance for your help in this regard!
    Sincerely,
    J

    Please search here.. Training and Certification Shop for your desired certification or training. Don't forget to set your location.
    Please use some summarized title for your query.

  • Pls give some shell scripting for sql/plsql

    pls give some shell scripting for sql/plsql

    794244 wrote:
    pls give some shell scripting for sql/plsqlNeither SQL or PL/SQL are shell script languages. Both are server side languages that executes inside an Oracle database server process.
    This is an important concept to understand when using SQL*Plus for example to "script" interaction with an Oracle database.

  • Sharing some info about Export dumps

    Just to share some info about exports happenig in our system
    I have a 20GB Database but the dump size is 10GB it keeps growing..the data too grows but the dump has also getting increased significantly...
    Has anyone seen encountered soemthing like this...
    Strange but to live with it
    Oracle 8i on Win2k

    Is this your Production Database? Did you schedule this export? During peak/off peak business hours? Production
    Yes
    Off Peak hours
    Apart from this export, what database backup procedure you have in place? Full Backups/Incremental all in place
    You said, you take export regularly as part of procedure. Is this a strange behavior today or did you observe this previously as well??I have been observing since i joined this company.It was 14GB and Dump was around 7 ..now the DB is 20GB and dump is around 10GB
    I was just thinkking for a TB database how much the export would be...:)
    Adding on i had a 100Gb db generating 8Gb dump...Looked strange..)BUt that 100GB did not have so amny objects like what i have now...
    Thanks

  • I Need some info about interfacing the PC or laptop to Spectrum analyzer using Labview

    we need to control  the spectrum analyzer using an interface   that will    be   developed  using  Labview  .
    Spectrum analyzer will be connected to tha PC using RS 232C and the waveform observed will be seen in the PC interface of spectrum analyzer.
    Pls send some info regarding dis.

    Using a spectrum analyzer with LabVIEW is a pretty common application, my first program 15 years ago did this. What we need to know to help you though is what model spectrum analyzer are you planning on using? Most of the ones I'm familiar with use the GPIB interface rather than RS232, but that isn't a major issue, the spectrum analyzers command set is the important one. There are a lot of LabVIEW drivers available for a larger number of analyzers, here on the National Instruments' site. Although most use the GPIB interface (or ethernet), they can be used as a starting point to develop an RS232 driver if one isn't available, assuming that there is a driver for the model that you have, or a closely related one (manufacturers frequently use similar command sets within a model type).
    So, what type analyzer are you using, and what types of things are you planning on doing with it?
    Putnam
    Certified LabVIEW Developer
    Senior Test Engineer
    Currently using LV 6.1-LabVIEW 2012, RT8.5
    LabVIEW Champion

  • Give some idea about sql tracer

    hi ,
    guru.
    please give some idea about exactly what is the use of sql tracer.
    thank u.
    subha

    Hi,
    Worth to click below links,
    http://help.sap.com/saphelp_erp2005/helpdata/en/d1/801f89454211d189710000e8322d00/content.htm
    Re: Runtime Analysis vs SQL Trace
    http://www.sapbrain.com/TOOLS/SQLTRACE/SQL_TRACE.html
    Urgent : How to do the SQL trace analysis
    http://www.sapdevelopment.co.uk/perform/perform_sqltrace.htm
    Regards,
    Suresh

  • Need some info about Equium A60

    Hi,
    I am looking to upgrade RAM on my laptop which is a Equium A60 (PSA67E-001004NO). I need to know what speed my motherboard supports... I posted a question some time back and got the impression that my laptop can take 533mhz but I enquired other places and got the idea that my laptop supports 333mhz. I need to know the correct value my motherboard supports. Whether its 333mhz or up over..
    One thing more I need to know is there any way one can check for the configuration that laptop has, because there is nothing about this Equium on the net or Toshiba site...
    I remember to see a page on which all hardware and preinstalled software details of Equium A60 PSA67E-001004NO were on the net but I fail to remember where I saw it..
    Can someone help in any way?

    Hi
    Your notebook has 256MB internal memory and just one slot is available for memory expansion. I have found info that your unit can handle with 1280MB max.
    The compatible memory modules are:
    PC2700 256MB (PA3311U-1M25)
    PC2700 512MB (PA3312U-1M51)
    PC2700 1024MB (PA3313U-1M1G)
    If you want check part numbers on Google and you will find out all info about those modules. I have no time now to check it for you.
    Bye

  • Some info about my iphone

    i would like to get some info of the iphone with serial number below: 7U******A4S and sim lock status. Thanks you!
    <Edited By Host>

    What does it say when you look at Settings=>General=>About=>Carrier?

  • Is there any standard report which give all info about purchase order.

    hi
    is there any standard report which give all information  about purchase order.
    i need following information from Purchase Order.
    Vendor No,  vendorname, PO No, basic     Excise      insurance     Frieght.
    Thanks.

    Hi,
    Following are reports for PO list.
    ME2C           Purchase Orders by Material Group  
    ME2J           Purchase Orders for Project        
    ME2K           Purch. Orders by Account Assignment
    ME2L           Purchase Orders by Vendor          
    ME2M           Purchase Orders by Material        
    ME2N           Purchase Orders by PO Number
    Message was edited by:
            Vigneswaran S

Maybe you are looking for

  • Oracle 11g -  WLJMS Vs AQJMS

    Hi All, In Oracle 11g SOA SUITE we have the option of using either Weblogic JMS (File or Database persistence) and AQ JMS (Database Persistence). In one of our scenario we have Queue in between the two process (ESB and BPEL) for message persistence.

  • Create in Mass, new customers

    Hi friends. I need to create news Customers  for new company code,It's possible to create in mass data "Company code Data" through of other company code? Tks, Roberto

  • Automounting smb share without network daemon

    Hello everyone, I have an issue. I'm using networkmanager to manage wireless connections. While installing networkmanger, the wiki told you must remove network daemon from rc.conf, and use networkmanager instead: that's exactly what I did, and networ

  • Best way to replace squirrel mail with roundcube?

    Hi,      I have managed to succsessfully configure and use Roundcube, on a test ubuntu server that I have, to access our OS X mail server (10.6). What I would like to do is seemlessly (as far as the users are concerened) get the 'Mail' link that appe

  • Problems logging to Face Time

    I'm having problems logging into Face Time and i message.  I've reset my password but whenever I write it and click "next" I keep coming back to the place where I type the password.