<?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: difference between customer exit &amp; user exit in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-customer-exit-user-exit/m-p/1374284#M183744</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Manas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no difference between Customer and User exit.&lt;/P&gt;&lt;P&gt;Here is a program that I found on the forums that can find you the user exits in a transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*&amp;amp;---------------------------------------------------------------------*

*&amp;amp;  Enter the transaction code that you want to search through in order

*&amp;amp;  to find which Standard SAP User Exits exists.

*&amp;amp;

*&amp;amp;---------------------------------------------------------------------*

*&amp;amp;---------------------------------------------------------------------*

*&amp;amp; Tables

*&amp;amp;---------------------------------------------------------------------*



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



*&amp;amp;---------------------------------------------------------------------*

*&amp;amp; Variables

*&amp;amp;---------------------------------------------------------------------*



DATA : JTAB LIKE TADIR OCCURS 0 WITH HEADER LINE.

DATA : FIELD1(30).

DATA : V_DEVCLASS LIKE TADIR-DEVCLASS.



*&amp;amp;---------------------------------------------------------------------*

*&amp;amp; Selection Screen Parameters

*&amp;amp;---------------------------------------------------------------------*

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.



*&amp;amp;---------------------------------------------------------------------*

*&amp;amp; Start of main program

*&amp;amp;---------------------------------------------------------------------*



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.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : Please mark the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 May 2006 10:34:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-05-02T10:34:14Z</dc:date>
    <item>
      <title>difference between customer exit &amp; user exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-customer-exit-user-exit/m-p/1374283#M183743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Geeks!&lt;/P&gt;&lt;P&gt;hope things are moving good on your side. so guyz m having one doubt. normally people often use the terms "Customer Exit" and "User Exit" interchangeably. so what i want to know is are these two things same. what i know is customer exit can be maintained through trnx "SMOD" &amp;amp; "CMOD". if u will look at any program, and search the phrase " call customer function", then u will get the customer exit. but what is the way to find available user exit for any particular application. and most important of all i would like to know difference between "Customer Exit" and "User Exit". any answers or any links for my query will be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;waiting 4 u replies&lt;/P&gt;&lt;P&gt;manas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 May 2006 10:31:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-customer-exit-user-exit/m-p/1374283#M183743</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-02T10:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: difference between customer exit &amp; user exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-customer-exit-user-exit/m-p/1374284#M183744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Manas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no difference between Customer and User exit.&lt;/P&gt;&lt;P&gt;Here is a program that I found on the forums that can find you the user exits in a transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*&amp;amp;---------------------------------------------------------------------*

*&amp;amp;  Enter the transaction code that you want to search through in order

*&amp;amp;  to find which Standard SAP User Exits exists.

*&amp;amp;

*&amp;amp;---------------------------------------------------------------------*

*&amp;amp;---------------------------------------------------------------------*

*&amp;amp; Tables

*&amp;amp;---------------------------------------------------------------------*



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



*&amp;amp;---------------------------------------------------------------------*

*&amp;amp; Variables

*&amp;amp;---------------------------------------------------------------------*



DATA : JTAB LIKE TADIR OCCURS 0 WITH HEADER LINE.

DATA : FIELD1(30).

DATA : V_DEVCLASS LIKE TADIR-DEVCLASS.



*&amp;amp;---------------------------------------------------------------------*

*&amp;amp; Selection Screen Parameters

*&amp;amp;---------------------------------------------------------------------*

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.



*&amp;amp;---------------------------------------------------------------------*

*&amp;amp; Start of main program

*&amp;amp;---------------------------------------------------------------------*



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.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : Please mark the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 May 2006 10:34:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-customer-exit-user-exit/m-p/1374284#M183744</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-02T10:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: difference between customer exit &amp; user exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-customer-exit-user-exit/m-p/1374285#M183745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi manas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Good question !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Previously there were only user-exits.&lt;/P&gt;&lt;P&gt;3. Then came the concept of customer-exits.&lt;/P&gt;&lt;P&gt;4.&lt;/P&gt;&lt;P&gt;user exits were nothing but&lt;/P&gt;&lt;P&gt;subroutines&lt;/P&gt;&lt;P&gt;FORM/PERFORM&lt;/P&gt;&lt;P&gt;called from standard programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. The FORM defintion was placed inside&lt;/P&gt;&lt;P&gt;an empty include file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6. So It was called EVERYTIME.&lt;/P&gt;&lt;P&gt;   and we need to MODIFY/REPAIR the&lt;/P&gt;&lt;P&gt;  standard include .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;7. Then it came with concept of customer-exit&lt;/P&gt;&lt;P&gt;8. It consists of calling a FUNCTION MODULE,&lt;/P&gt;&lt;P&gt;   which is called only if &lt;/P&gt;&lt;P&gt;   the user-exit is ACTIVATED (other wise not called)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  In this case, the code in put inside&lt;/P&gt;&lt;P&gt;  a pre-defined Z include.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="----------------------------" /&gt;&lt;P&gt;&amp;lt;b&amp;gt;9. Functionality of both is same, howerver&lt;/P&gt;&lt;P&gt;   we can note the following important differences&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; a) Customer exit is called only if activated.&lt;/P&gt;&lt;P&gt;   (hence, it does not waste resources)&lt;/P&gt;&lt;P&gt; b) in customer exit, REPAIR does not happen&lt;/P&gt;&lt;P&gt;   to the standard include.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 May 2006 10:47:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-customer-exit-user-exit/m-p/1374285#M183745</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-02T10:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: difference between customer exit &amp; user exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-customer-exit-user-exit/m-p/1374286#M183746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"The R/3 enhancement concept allows you to add your own functionality to SAP&amp;#146;s standard business applications without having to modify the original applications. SAP creates customer exits for specific programs, screens, and menus within standard R/3 applications. These exits do not contain any functionality. Instead, the customer exits act as hooks. You can hang your own add-on functionality onto these hooks."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Customer exits are implemented in Z-includes and are ENHANCEMENTS to the system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;User-exits were firstly intended to be developed for the SD module. You make your coding in includes in SAP namespace (e.g MV*). That's why, user exits are MODIFICATIONS to the system. In includes for user exits there are empty subroutines ( generally with the name convention "userexit_...") and you code using global variables of the main program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, generally developers use these terms without this distinction. So, someone may mean a "customer exit" when (s)he says "user exit" or vice-versa.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 May 2006 10:54:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-customer-exit-user-exit/m-p/1374286#M183746</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-02T10:54:03Z</dc:date>
    </item>
  </channel>
</rss>

