<?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: user exits in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exits/m-p/2461820#M552397</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;User exit - A user exit is a three character code that instructs the system to access a program during system processing. &lt;/P&gt;&lt;P&gt;SXX: S is for standard exits that are delivered by SAP. XX represents the 2-digit exit number. &lt;/P&gt;&lt;P&gt;UXX: U is for user exits that are defined by the user. XX represents the 2-digit exit number &lt;/P&gt;&lt;P&gt;Customer exit - 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;The program for transaction VA01 Create salesorder is SAPMV45A &lt;/P&gt;&lt;P&gt;If you search for CALL CUSTOMER-FUNCTION i program &lt;/P&gt;&lt;P&gt;SAPMV45A you will find ( Among other user exits): &lt;/P&gt;&lt;P&gt;CALL CUSTOMER-FUNCTION '003' &lt;/P&gt;&lt;P&gt;exporting &lt;/P&gt;&lt;P&gt;xvbak = vbak &lt;/P&gt;&lt;P&gt;xvbuk = vbuk &lt;/P&gt;&lt;P&gt;xkomk = tkomk &lt;/P&gt;&lt;P&gt;importing &lt;/P&gt;&lt;P&gt;lvf_subrc = lvf_subrc &lt;/P&gt;&lt;P&gt;tables &lt;/P&gt;&lt;P&gt;xvbfa = xvbfa &lt;/P&gt;&lt;P&gt;xvbap = xvbap &lt;/P&gt;&lt;P&gt;xvbup = xvbup. &lt;/P&gt;&lt;P&gt;The exit calls function module EXIT_SAPMV45A_003 &lt;/P&gt;&lt;P&gt;Development&lt;/P&gt;&lt;P&gt;Creating a Project to include the enhancement&lt;/P&gt;&lt;P&gt;1. Go to transaction CMOD and create a project. &lt;/P&gt;&lt;P&gt;2. Enter a description for the project. Then, click on the pushbutton &amp;#145;Enhancement Assignments&amp;#146; in the Application Toolbar. &lt;/P&gt;&lt;P&gt;3. Enter the name of the enhancement and Save. &lt;/P&gt;&lt;P&gt;4. Go to &amp;#145;Components&amp;#146;. &lt;/P&gt;&lt;P&gt;Creating Custom Include for ANLU&lt;/P&gt;&lt;P&gt;The screen shown below will appear, showing all the enhancement components under the assignment AIST0002. Double-click on the name of the Include Structure to create it. &lt;/P&gt;&lt;P&gt;Create the include structure with three new fields, as required. Then, save and activate it. &lt;/P&gt;&lt;P&gt;Develop the subscreen and the program&lt;/P&gt;&lt;P&gt;Go to transaction SE80. For the function group XAIS, create a new subscreen 9000. &lt;/P&gt;&lt;P&gt;Create it as subscreen. &lt;/P&gt;&lt;P&gt;Then, go to the Layout of the screen and create three new fields from Database table ANLU. &lt;/P&gt;&lt;P&gt;Drag the fields in the screen body and place them. &lt;/P&gt;&lt;P&gt;Then, save and activate the screen and come back to screen flow editor. &lt;/P&gt;&lt;P&gt;Create the PAI module to add validation for field &amp;#147;Location 2&amp;#148;, as required . &lt;/P&gt;&lt;P&gt;Activate the whole function group and come out. &lt;/P&gt;&lt;P&gt;Write code in the Function Exits to synchronize the programs&lt;/P&gt;&lt;P&gt;Now, code has to be written in the function modules EXIT_SAPLAIST_002 and EXIT_SAPLAIST_003 so that data flows to and fro between the main SAP program and custom subscreen program. For that, go back to transaction CMOD and change the function exits. &lt;/P&gt;&lt;P&gt;Write code in the function module EXIT_SAPLAIST_002 called once at the beginning of the transaction: &lt;/P&gt;&lt;P&gt;Write code in EXIT_SAPLAIST_003 to pass the data from the subscreen to SAP main program. &lt;/P&gt;&lt;P&gt;Then, activate everything &amp;#150; the whole project and come out. &lt;/P&gt;&lt;P&gt;Complete the configuration to link the subscreen&lt;/P&gt;&lt;P&gt;The development portion is complete. Now, linking of the subscreen has to be done with the subscreen area of the main program. In most of the cases, this linking can be done in the enhancement itself. But, here, requirement is a bit different. It is done by configuration using SPRO. &lt;/P&gt;&lt;P&gt;Assets are created under Asset class. And for each asset class, there is a layout assigned to it. For a layout, there are multiple tab pages assigned to it. And, for each tab page, there are multiple screen groups/field groups assigned. &lt;/P&gt;&lt;P&gt;Here, the requirement is to create these three custom fields in the tab page &amp;#145;General&amp;#146; of asset master screen ( AS01/AS02/AS03/AS91). &lt;/P&gt;&lt;P&gt;Determine the Layout&lt;/P&gt;&lt;P&gt;To achieve this, first of all, we need to find out which layout is assigned to asset class 1000.For that, go to transaction AOLK( information has to be obtained from functional consultant).Select the Asset Class &amp;#145;1000&amp;#146; and click on folder &amp;#145;General Assignment of Layout&amp;#146;. &lt;/P&gt;&lt;P&gt;Here, for Asset class 1000, for all the user groups, tab layout SAP is assigned. Since layout &amp;#145;SAP&amp;#146; cannot be changed, it has to be copied and manipulated to include our screen group. Later, the new layout has to be assigned over here. &lt;/P&gt;&lt;P&gt;Create new tab layout&lt;/P&gt;&lt;P&gt;Go to transaction AOLA. Copy the tab layout &amp;#145;SAP&amp;#146; to create another layout, say, YSUB. &lt;/P&gt;&lt;P&gt;System will copy all the settings and will inform you about that. &lt;/P&gt;&lt;P&gt;Select your newly created layout and double-click on the folder &amp;#145;Tab page titles&amp;#146;. &lt;/P&gt;&lt;P&gt;You want to put your custom fields in the tab page &amp;#147;General&amp;#148;. So, select this tab page entry and double-click on the folder "Position of Groups". &lt;/P&gt;&lt;P&gt;Here, all the field groups currently residing in the tab-page &amp;#147;General&amp;#148; are shown. Add an entry for your newly created fields. &lt;/P&gt;&lt;P&gt;Select the group box from the list. An entry will come with &amp;#147;U&amp;#148; padded with the custom subscreen prepared by you. &lt;/P&gt;&lt;P&gt;Then, save and come out. &lt;/P&gt;&lt;P&gt;Assign the new Layout to Asset Class&lt;/P&gt;&lt;P&gt;Now, go to tcode AOLK and assign tab layout YSUB for asset class 1000. &lt;/P&gt;&lt;P&gt;Save and come out. &lt;/P&gt;&lt;P&gt;Test the Exit&lt;/P&gt;&lt;P&gt;Everything is over. Now, go to transaction code AS01/02/03 or AS91 to deal with an asset of asset class 1000. You will see your new fields added to the screen. Add values to them&amp;#133;save. Then, enter into the tcodes again to see whether the values entered by you are being displayed or not. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Jun 2007 08:43:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-21T08:43:34Z</dc:date>
    <item>
      <title>user exits</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exits/m-p/2461817#M552394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what s d diff b/n userexit and customer exit?&lt;/P&gt;&lt;P&gt;pls send me user exits exampls or really implemented ones for my r&amp;amp;d&lt;/P&gt;&lt;P&gt;my mail:ushareddyabap@gmail.com&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;ushareddy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2007 18:12:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exits/m-p/2461817#M552394</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-20T18:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: user exits</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exits/m-p/2461818#M552395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com//saphelp_470/helpdata/EN/c8/1975cc43b111d1896f0000e8322d00/frameset.htm" target="test_blank"&gt;http://help.sap.com//saphelp_470/helpdata/EN/c8/1975cc43b111d1896f0000e8322d00/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Peram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2007 08:18:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exits/m-p/2461818#M552395</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-21T08:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: user exits</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exits/m-p/2461819#M552396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;check with the material...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;USEREXIT&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  Userxits allow us to add our own functionality to SAP standard program&lt;/P&gt;&lt;P&gt;without  modifying it . These are implemented in the form of subroutines and hence are also known as FORM EXITs. The userexits are generally collected in includes and attached to the standard program by the SAP.&lt;/P&gt;&lt;P&gt;    All Userexits start with the word USEREXIT_...&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;FORM USEREXIT_..&lt;/P&gt;&lt;P&gt;z..&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;The problem lies in finding the correct userexit and how to find it if one exists for the purpose. Once the correct userexit is found the necessary&lt;/P&gt;&lt;P&gt;customer code is inserted in the customer include starting with the z..&lt;/P&gt;&lt;P&gt;in the form routine.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;e.g. USEREXIT_SAVE_DOCUMENT_PREPARE&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Certain application like SD still provide this form of enhancement using userexit but this practice is no longer being followed for newer extensions&lt;/P&gt;&lt;P&gt;instead they are using EXITs which come bundeled in enhancement packages . Neverthiless existing USEREXITS will be supported by SAP an all the newer versions of SAP.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;HOW TO FIND USEREXITS&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  Userexits can be found in number of ways:&lt;/P&gt;&lt;P&gt;1) To find userexits in SD module , goto object navigator(SE80) and select&lt;/P&gt;&lt;P&gt;    development class from the list and enter VMOD in it. All of the userexits in SD are contained in the development class VMOD. Press &lt;/P&gt;&lt;P&gt;enter and you will find all the includes which contain userexits in SD for&lt;/P&gt;&lt;P&gt;different functions like PRICING, ORDER PROCESSING etc. Select the userexit according to the requirement and read the comment inserted in it&lt;/P&gt;&lt;P&gt;and start coding .&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Some examples of userexits in SD(SALES &amp;amp; DISTRIBUTION ) are:&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;1)ADDING OF NEW FIELDS IN PRICING   &lt;/P&gt;&lt;P&gt; In Pricing in SD the fields on the basis of which pricing is done are derived from the FIELD CATALOG which is a structure KOMG .This structure is used to transfer transaction data to the pricing procedure in SD and is also known as communication structure.This structure KOMG consists of two tables KOMK for Header related fields and KOMP for item related fields. &lt;/P&gt;&lt;P&gt;   The fields which are not in either of the two tables KOMK and KOMP&lt;/P&gt;&lt;P&gt;cannot be used in pricing .Sometimes a need arises when the pricing&lt;/P&gt;&lt;P&gt;is to be based on some other criteria which is not present in the form of fields in either of the two tables.&lt;/P&gt;&lt;P&gt;  This problem can be solved by using USEREXITS which are provided for pricing in SD.&lt;/P&gt;&lt;P&gt;  Pricing takes place both when the SALES ORDER ( Transaction VA01) is created as well as when INVOICING ( Transaction VF01) is done.Hence SAP provides 2 userexits ,one for sales order processing which is&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;USEREXIT_PRICING_PREPARE_TKOMP  or&lt;/P&gt;&lt;P&gt;USEREXIT_PRICING_PREPARE_TKOMK&lt;/P&gt;&lt;P&gt;Depending upon which table (KOMK or KOMP) the new fields were inserted we use either of the above two userexits.These userexits are found in include MV45AFZZ of the standard SAP sales order creation program SAPMV45A.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;In the case of userexit which will be called when invoicing is done ,these&lt;/P&gt;&lt;P&gt;are provided in the include RY60AFZZ which is in the standard SAP&lt;/P&gt;&lt;P&gt;program SAPMV45A. The name of the userexits are same. i.e&lt;/P&gt;&lt;P&gt;USEREXIT_PRICING_PREPARE_TKOMP  or&lt;/P&gt;&lt;P&gt;USEREXIT_PRICING_PREPARE_TKOMK&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;These userexits are used for passing the data from the communication structure to the pricing procedure, for this we have to fill the newely&lt;/P&gt;&lt;P&gt;created field in the communication structure KOMG for this we fill the code in the above userexit using the MOVE statement after the data that&lt;/P&gt;&lt;P&gt;has to be passed is taken from the database table by using the SELECT statement. The actual structure which is visible in these userexits and which is to be filled for that particular field is TKOMP or TKOMK.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Before the coding for these userexits is done ,it is necessary to create a new field in either of the two tables KOMK or KOMP .For this purpose&lt;/P&gt;&lt;P&gt;includes are provided in each of them .&lt;/P&gt;&lt;P&gt; To create the field in header data(KOMK) the include provided is KOMKAZ&lt;/P&gt;&lt;P&gt; and to create the field in item data(KOMP) the include provided is KOMPAZ.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;One possible example for the need of creating new fields can be e.g. Frieght to be based upon transportation zone ,for this no field is available in field catalog and hence it can be created in KOMK and then above userexits can be used to fill the transportation data to it.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;2)The other method of finding userexit is to find the word USEREXIT in the&lt;/P&gt;&lt;P&gt;associated program of the transaction for which we want to determine userexit using SE38. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3)The other method of finding userexits is to find the include in case of SD/MM applications where the userexits are located ,this can be found in the SAP reference IMG generally in the subfolder under SYSTEM MODIFICATION.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Some other examples of userexits in SD are:&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;USEREXIT_NUMBER_RANGE&lt;/P&gt;&lt;P&gt;This userexit is used to assign a different internal document number to the&lt;/P&gt;&lt;P&gt;sales order(VA01) when it is created depending on some criteria like a different SALES ORGANIZAION(VKORG) .&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;USEREXIT_SAVE_DOCUMENT_PREPARE&lt;/P&gt;&lt;P&gt; This userexit is used to insert the ABAP code which will be called when&lt;/P&gt;&lt;P&gt;the document (sales order VA01) is just about to be saved.This userexit is used generally for custom checks on different fields , to display some information before the order will be saved or for making changes to certain fields before the sales order will be saved.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exits &amp;amp; Enhancements&lt;/P&gt;&lt;P&gt; There are mainly six types of EXITs in sap which have been collected in the form of enhancement packages and attached to standard code in SAP.&lt;/P&gt;&lt;P&gt;These are different from USEREXIT in the way that they are implemented &lt;/P&gt;&lt;P&gt;in the form of FUNCTIONs while in USEREXITS we use form routines for their implementation. These are also sometimes known as function exits .&lt;/P&gt;&lt;P&gt;   These start from the word EXIT_ followed by the program name and then followed by a three digit number.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;e.g.  EXIT_SAPMV45A_002&lt;/P&gt;&lt;P&gt;  This exit is found in SD in enhancement V45A0002.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;TYPES OF EXITS&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;1)MENU EXITS&lt;/P&gt;&lt;P&gt;2)FUNCTION EXITS&lt;/P&gt;&lt;P&gt;3)TABLE EXITS&lt;/P&gt;&lt;P&gt;4)SCREEN EXITS&lt;/P&gt;&lt;P&gt;5)KEYWORD EXITS&lt;/P&gt;&lt;P&gt;6)FIELD EXITS&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;We use SAP transactions CMOD and SMOD to manage exits. Before implementing an exit , it is required to create the project by using CMOD&lt;/P&gt;&lt;P&gt;selecting the enhancement e.g. V45A0002 and selecting the component&lt;/P&gt;&lt;P&gt;(one which fulfills our need) i.e the exit which will be implemented in SMOD and after coding has been done the project has to be activated.&lt;/P&gt;&lt;P&gt;  An exit can be coded only once.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;FUNCTION EXITS&lt;/P&gt;&lt;P&gt;  These are used to add functionality through ABAP code . These start from the word EXIT_programname_NNN ending in a 3 digit number. No access code is required to implement any tupe of exit including function exits.&lt;/P&gt;&lt;P&gt;   The function exits are called from the standard SAP program in the form&lt;/P&gt;&lt;P&gt;of ABAP statement &lt;/P&gt;&lt;P&gt;CALL CUSTOMER-FUNCTION 'NNN' &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;This is in contrast to USEREXITs where PERFORM statement is used to call&lt;/P&gt;&lt;P&gt;the required userexit.&lt;/P&gt;&lt;P&gt; To implement the FUNCTION EXITs first of all the project is created and a suitable enhancement package is selected and from its compnents the function exit to be implemented is selected and on double clicking it the exit code will appear in ABAP EDITOR(se38) where a Z include will be found and the customer code should be entered in this include.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;ADDING A DEFAULT SOLD-TO-PARTY in Sales Order Creation&lt;/P&gt;&lt;P&gt;    To show a default sold-to-party in this field when the user creates a sales order (VA01) we can use a function exit .This function exit is located&lt;/P&gt;&lt;P&gt;in enhancement no V45A0002 . Before we can choose the exit we have to &lt;/P&gt;&lt;P&gt;create a project in CMOD after that enter V45A0002 in the enhancement field and click on the components . In the components you will see the&lt;/P&gt;&lt;P&gt;exit EXIT_SAPMV45A_002 . This exit is used for our purpose.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  Double clicking on this exit will takes us to function builder (SE37) . This&lt;/P&gt;&lt;P&gt;function exit has one exporting parameters and two importing parameters, we are interested in exporting parameter which is  E_KUNNR&lt;/P&gt;&lt;P&gt;of type KNA1-KUNNR i.e if we move the desired customer name to this&lt;/P&gt;&lt;P&gt;structure(E_KUNNR) it will be shown in the field as the default value when we create the sales order.&lt;/P&gt;&lt;P&gt; This function also contains a customer include ZXVVA04 . This include&lt;/P&gt;&lt;P&gt;will be used to write our custom code .&lt;/P&gt;&lt;P&gt;  Double clicking on this include and it will prompt us that this include does not exists do you want to create this object ,select yes and the include will be created .In this include we can write our own code that will fill the field E_KUNNR.&lt;/P&gt;&lt;P&gt; e.g. E_KUNNR = 301.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Activate the include and Activate the project. Now when ever the SALES ORDER will be created , sold-to-party field will come up with a predefined&lt;/P&gt;&lt;P&gt;customer . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD EXITS&lt;/P&gt;&lt;P&gt;  The field exits are managed,created,activated through program RSMODPRF. The field exit is associated with a data element existing in ABAP dictionary and hence to the screen field using that data element.&lt;/P&gt;&lt;P&gt;  The format of field exit is :&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; FIELD_EXIT_dataelement_A-Z or 0-9&lt;/P&gt;&lt;P&gt;   If a particular screen and program name is not specified than the field exit will effect all the screens containing that data element.&lt;/P&gt;&lt;P&gt;   The function module associated with field exit shows two parameters&lt;/P&gt;&lt;P&gt;INPUT and OUTPUT.  Input parameter contains the data passed to the field exit when the field exit was invoked by the R/3 , We can write our own code to change the output parameter depending upon our requirements.&lt;/P&gt;&lt;P&gt;    Before the field exit can have any effect the system profile parameter&lt;/P&gt;&lt;P&gt;ABAP/FIELDEXIT in all the application servers should be set to YES&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;ABAP/FIELDEXIT = YES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Find the available exits with the following program:::&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Report  ZFINDUSEREXIT&lt;/P&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report  zfinduserexit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables : tstc, tadir, modsapt, modact, trdir, tfdir, enlfdir.&lt;/P&gt;&lt;P&gt;tables : tstct.&lt;/P&gt;&lt;P&gt;data : jtab like tadir occurs 0 with header line.&lt;/P&gt;&lt;P&gt;data : field1(30).&lt;/P&gt;&lt;P&gt;data : v_devclass like tadir-devclass.&lt;/P&gt;&lt;P&gt;parameters : p_tcode like tstc-tcode obligatory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single * from tstc where tcode eq p_tcode.&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;select single * from tadir where pgmid = 'R3TR'&lt;/P&gt;&lt;P&gt;and object = 'PROG'&lt;/P&gt;&lt;P&gt;and obj_name = tstc-pgmna.&lt;/P&gt;&lt;P&gt;move : tadir-devclass to v_devclass.&lt;/P&gt;&lt;P&gt;if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;select single * from trdir where name = tstc-pgmna.&lt;/P&gt;&lt;P&gt;if trdir-subc eq 'F'.&lt;/P&gt;&lt;P&gt;select single * from tfdir where pname = tstc-pgmna.&lt;/P&gt;&lt;P&gt;select single * from enlfdir where funcname =&lt;/P&gt;&lt;P&gt;tfdir-funcname.&lt;/P&gt;&lt;P&gt;select single * from tadir where pgmid = 'R3TR'&lt;/P&gt;&lt;P&gt;and object = 'FUGR'&lt;/P&gt;&lt;P&gt;and obj_name eq enlfdir-area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move : tadir-devclass to v_devclass.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;select * from tadir into table jtab&lt;/P&gt;&lt;P&gt;where pgmid = 'R3TR'&lt;/P&gt;&lt;P&gt;and object = 'SMOD'&lt;/P&gt;&lt;P&gt;and devclass = v_devclass.&lt;/P&gt;&lt;P&gt;select single * from tstct where sprsl eq sy-langu and&lt;/P&gt;&lt;P&gt;tcode eq p_tcode.&lt;/P&gt;&lt;P&gt;format color col_positive intensified off.&lt;/P&gt;&lt;P&gt;write:/(19) 'Transaction Code - ',&lt;/P&gt;&lt;P&gt;20(20) p_tcode,&lt;/P&gt;&lt;P&gt;45(50) tstct-ttext.&lt;/P&gt;&lt;P&gt;skip.&lt;/P&gt;&lt;P&gt;if not jtab[] is initial.&lt;/P&gt;&lt;P&gt;write:/(95) sy-uline.&lt;/P&gt;&lt;P&gt;format color col_heading intensified on.&lt;/P&gt;&lt;P&gt;write:/1 sy-vline,&lt;/P&gt;&lt;P&gt;2 'Exit Name',&lt;/P&gt;&lt;P&gt;21 sy-vline ,&lt;/P&gt;&lt;P&gt;22 'Description',&lt;/P&gt;&lt;P&gt;95 sy-vline.&lt;/P&gt;&lt;P&gt;write:/(95) sy-uline.&lt;/P&gt;&lt;P&gt;loop at jtab.&lt;/P&gt;&lt;P&gt;select single * from modsapt&lt;/P&gt;&lt;P&gt;where sprsl = sy-langu and&lt;/P&gt;&lt;P&gt;name = jtab-obj_name.&lt;/P&gt;&lt;P&gt;format color col_normal intensified off.&lt;/P&gt;&lt;P&gt;write:/1 sy-vline,&lt;/P&gt;&lt;P&gt;2 jtab-obj_name hotspot on,&lt;/P&gt;&lt;P&gt;21 sy-vline ,&lt;/P&gt;&lt;P&gt;22 modsapt-modtext,&lt;/P&gt;&lt;P&gt;95 sy-vline.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;write:/(95) sy-uline.&lt;/P&gt;&lt;P&gt;describe table jtab.&lt;/P&gt;&lt;P&gt;skip.&lt;/P&gt;&lt;P&gt;format color col_total intensified on.&lt;/P&gt;&lt;P&gt;write:/ 'No of Exits:' , sy-tfill.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;format color col_negative intensified on.&lt;/P&gt;&lt;P&gt;write:/(95) 'No User Exit exists'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;format color col_negative intensified on.&lt;/P&gt;&lt;P&gt;write:/(95) 'Transaction Code Does Not Exist'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at line-selection.&lt;/P&gt;&lt;P&gt;get cursor field field1.&lt;/P&gt;&lt;P&gt;check field1(4) eq 'JTAB'.&lt;/P&gt;&lt;P&gt;set parameter id 'MON' field sy-lisel+1(10).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there are no available user exits you could go for badi's.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To search for a badi, go to se 24 display class cl_exithandler. double click on method get_instance, get a break point on case statement. execute and start the required transaction in new session. look for variable exit_name. It would show the available badi's.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Please do reward if useful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dinesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2007 08:38:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exits/m-p/2461819#M552396</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-21T08:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: user exits</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exits/m-p/2461820#M552397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;User exit - A user exit is a three character code that instructs the system to access a program during system processing. &lt;/P&gt;&lt;P&gt;SXX: S is for standard exits that are delivered by SAP. XX represents the 2-digit exit number. &lt;/P&gt;&lt;P&gt;UXX: U is for user exits that are defined by the user. XX represents the 2-digit exit number &lt;/P&gt;&lt;P&gt;Customer exit - 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;The program for transaction VA01 Create salesorder is SAPMV45A &lt;/P&gt;&lt;P&gt;If you search for CALL CUSTOMER-FUNCTION i program &lt;/P&gt;&lt;P&gt;SAPMV45A you will find ( Among other user exits): &lt;/P&gt;&lt;P&gt;CALL CUSTOMER-FUNCTION '003' &lt;/P&gt;&lt;P&gt;exporting &lt;/P&gt;&lt;P&gt;xvbak = vbak &lt;/P&gt;&lt;P&gt;xvbuk = vbuk &lt;/P&gt;&lt;P&gt;xkomk = tkomk &lt;/P&gt;&lt;P&gt;importing &lt;/P&gt;&lt;P&gt;lvf_subrc = lvf_subrc &lt;/P&gt;&lt;P&gt;tables &lt;/P&gt;&lt;P&gt;xvbfa = xvbfa &lt;/P&gt;&lt;P&gt;xvbap = xvbap &lt;/P&gt;&lt;P&gt;xvbup = xvbup. &lt;/P&gt;&lt;P&gt;The exit calls function module EXIT_SAPMV45A_003 &lt;/P&gt;&lt;P&gt;Development&lt;/P&gt;&lt;P&gt;Creating a Project to include the enhancement&lt;/P&gt;&lt;P&gt;1. Go to transaction CMOD and create a project. &lt;/P&gt;&lt;P&gt;2. Enter a description for the project. Then, click on the pushbutton &amp;#145;Enhancement Assignments&amp;#146; in the Application Toolbar. &lt;/P&gt;&lt;P&gt;3. Enter the name of the enhancement and Save. &lt;/P&gt;&lt;P&gt;4. Go to &amp;#145;Components&amp;#146;. &lt;/P&gt;&lt;P&gt;Creating Custom Include for ANLU&lt;/P&gt;&lt;P&gt;The screen shown below will appear, showing all the enhancement components under the assignment AIST0002. Double-click on the name of the Include Structure to create it. &lt;/P&gt;&lt;P&gt;Create the include structure with three new fields, as required. Then, save and activate it. &lt;/P&gt;&lt;P&gt;Develop the subscreen and the program&lt;/P&gt;&lt;P&gt;Go to transaction SE80. For the function group XAIS, create a new subscreen 9000. &lt;/P&gt;&lt;P&gt;Create it as subscreen. &lt;/P&gt;&lt;P&gt;Then, go to the Layout of the screen and create three new fields from Database table ANLU. &lt;/P&gt;&lt;P&gt;Drag the fields in the screen body and place them. &lt;/P&gt;&lt;P&gt;Then, save and activate the screen and come back to screen flow editor. &lt;/P&gt;&lt;P&gt;Create the PAI module to add validation for field &amp;#147;Location 2&amp;#148;, as required . &lt;/P&gt;&lt;P&gt;Activate the whole function group and come out. &lt;/P&gt;&lt;P&gt;Write code in the Function Exits to synchronize the programs&lt;/P&gt;&lt;P&gt;Now, code has to be written in the function modules EXIT_SAPLAIST_002 and EXIT_SAPLAIST_003 so that data flows to and fro between the main SAP program and custom subscreen program. For that, go back to transaction CMOD and change the function exits. &lt;/P&gt;&lt;P&gt;Write code in the function module EXIT_SAPLAIST_002 called once at the beginning of the transaction: &lt;/P&gt;&lt;P&gt;Write code in EXIT_SAPLAIST_003 to pass the data from the subscreen to SAP main program. &lt;/P&gt;&lt;P&gt;Then, activate everything &amp;#150; the whole project and come out. &lt;/P&gt;&lt;P&gt;Complete the configuration to link the subscreen&lt;/P&gt;&lt;P&gt;The development portion is complete. Now, linking of the subscreen has to be done with the subscreen area of the main program. In most of the cases, this linking can be done in the enhancement itself. But, here, requirement is a bit different. It is done by configuration using SPRO. &lt;/P&gt;&lt;P&gt;Assets are created under Asset class. And for each asset class, there is a layout assigned to it. For a layout, there are multiple tab pages assigned to it. And, for each tab page, there are multiple screen groups/field groups assigned. &lt;/P&gt;&lt;P&gt;Here, the requirement is to create these three custom fields in the tab page &amp;#145;General&amp;#146; of asset master screen ( AS01/AS02/AS03/AS91). &lt;/P&gt;&lt;P&gt;Determine the Layout&lt;/P&gt;&lt;P&gt;To achieve this, first of all, we need to find out which layout is assigned to asset class 1000.For that, go to transaction AOLK( information has to be obtained from functional consultant).Select the Asset Class &amp;#145;1000&amp;#146; and click on folder &amp;#145;General Assignment of Layout&amp;#146;. &lt;/P&gt;&lt;P&gt;Here, for Asset class 1000, for all the user groups, tab layout SAP is assigned. Since layout &amp;#145;SAP&amp;#146; cannot be changed, it has to be copied and manipulated to include our screen group. Later, the new layout has to be assigned over here. &lt;/P&gt;&lt;P&gt;Create new tab layout&lt;/P&gt;&lt;P&gt;Go to transaction AOLA. Copy the tab layout &amp;#145;SAP&amp;#146; to create another layout, say, YSUB. &lt;/P&gt;&lt;P&gt;System will copy all the settings and will inform you about that. &lt;/P&gt;&lt;P&gt;Select your newly created layout and double-click on the folder &amp;#145;Tab page titles&amp;#146;. &lt;/P&gt;&lt;P&gt;You want to put your custom fields in the tab page &amp;#147;General&amp;#148;. So, select this tab page entry and double-click on the folder "Position of Groups". &lt;/P&gt;&lt;P&gt;Here, all the field groups currently residing in the tab-page &amp;#147;General&amp;#148; are shown. Add an entry for your newly created fields. &lt;/P&gt;&lt;P&gt;Select the group box from the list. An entry will come with &amp;#147;U&amp;#148; padded with the custom subscreen prepared by you. &lt;/P&gt;&lt;P&gt;Then, save and come out. &lt;/P&gt;&lt;P&gt;Assign the new Layout to Asset Class&lt;/P&gt;&lt;P&gt;Now, go to tcode AOLK and assign tab layout YSUB for asset class 1000. &lt;/P&gt;&lt;P&gt;Save and come out. &lt;/P&gt;&lt;P&gt;Test the Exit&lt;/P&gt;&lt;P&gt;Everything is over. Now, go to transaction code AS01/02/03 or AS91 to deal with an asset of asset class 1000. You will see your new fields added to the screen. Add values to them&amp;#133;save. Then, enter into the tcodes again to see whether the values entered by you are being displayed or not. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2007 08:43:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exits/m-p/2461820#M552397</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-21T08:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: user exits</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exits/m-p/2461821#M552398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Usha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the clear differentiation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;User exit - A user exit is a three character code that instructs the system to access a program during system processing. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SXX: S is for standard exits that are delivered by SAP. XX represents the 2-digit exit number. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UXX: U is for user exits that are defined by the user. XX represents the 2-digit exit number &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Customer exit - 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;User Exits : -&lt;/P&gt;&lt;P&gt;__________&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. User exits are routines which SAP allows you to add in additional &lt;/P&gt;&lt;P&gt;customized programs process without affecting the standard SAP programs. SAP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;user exits are usually declared as a form routine :-&lt;/P&gt;&lt;P&gt;form userexit_xxxxx&lt;/P&gt;&lt;P&gt;........................&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;2. No need to create project in CMOD/SMOD.&lt;/P&gt;&lt;P&gt;3. Won't be automatically transported during version upgrade.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Customer Exits :-&lt;/P&gt;&lt;P&gt;_________________&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Could be either Function Exits or Menu Exits. SAP will provide certain &lt;/P&gt;&lt;P&gt;FMs which will be called during the execution of SAP transactions.&lt;/P&gt;&lt;P&gt;2.Generally require the developer to create a project in CMOD/SMOD.&lt;/P&gt;&lt;P&gt;3. Will be automatically transported during version upgrade.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Types of Exits &lt;/P&gt;&lt;P&gt;There are several different types of user exits. Each of these exits acts as hooks where you can attach or "hang" your own add-ons. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Menu Exits &lt;/P&gt;&lt;P&gt;Menu exits add items to the pulldown menus in standard SAP applications. You can use these menu items to call up your own screens or to trigger entire add-on applications. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP creates menu exits by defining special menu items in the Menu Painter. These special entries have function codes that begin with "+" (a plus sign). You specify the menu item&amp;#146;s text when activating the item in an add-on project. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Screen Exits &lt;/P&gt;&lt;P&gt;Screen exits add fields to screens in R/3 applications. SAP creates screen exits by placing special subscreen areas on a standard R/3 screen and calling a customer subscreen from the standard screen&amp;#146;s flow logic. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function Module Exits &lt;/P&gt;&lt;P&gt;Function module exits add functions to R/3 applications. Function module exits play a role in both menu and screen exits. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you add a new menu item to a standard pull down menu, you use a function module exit to define the actions that should take place once your menu is activated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function module exits also control the data flow between standard programs and screen exit fields. SAP application developers create function module exits by writing calls to customer functions into the source code of standard R/3 programs. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These calls have the following syntax: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL CUSTOMER-FUNCTION &amp;#145;001&amp;#146;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field Exits &lt;/P&gt;&lt;P&gt;Field exits allow you to create your own programming logic for any data element in the Dictionary. You can use this logic to carry out checks, conversions, or business-related processing for any screen field. Example: The data element BBBNR identifies a company&amp;#146;s international location number. You might want to set up your R/3 System so that all international location numbers are larger than 100. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field exit concept lets you create a special function module that contains this logic. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You assign the special function module to the data element BBBNR. You then assign the module to any programs and screens in which users can add new international location numbers. When you activate your field exit, the system automatically triggers your special routine whenever a user enters a company location number. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In 4.6c, you can use "RSMODPRF" program to create field exits. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An example of a user exits :- &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE user_exit_0001 INPUT &lt;/P&gt;&lt;P&gt;CASE okcode. &lt;/P&gt;&lt;P&gt;WHEN 'BACK OR EXIT'. &lt;/P&gt;&lt;P&gt;CASE sy-dynnr. &lt;/P&gt;&lt;P&gt;WHEN '100'. &lt;/P&gt;&lt;P&gt;SET SCREEN 0. &lt;/P&gt;&lt;P&gt;LEAVE SCREEN. &lt;/P&gt;&lt;P&gt;WHEN '200'. &lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="78" type="ul"&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;LI level="4" type="ul"&gt;&lt;P&gt;Note that you can write any code that satisfy your needs. **** &lt;/P&gt;&lt;/LI&gt;&lt;LI level="4" type="ul"&gt;&lt;P&gt;But in this case, this was wrote as a sample code for reference sake. **** &lt;/P&gt;&lt;/LI&gt;&lt;LI level="4" type="ul"&gt;&lt;P&gt;And you can test it. **** &lt;/P&gt;&lt;/LI&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="78" type="ul"&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;SET SCREEN 100. &lt;/P&gt;&lt;P&gt;LEAVE SCREEN. &lt;/P&gt;&lt;P&gt;ENDCASE. &lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't forget to reward if useful...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2007 08:44:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exits/m-p/2461821#M552398</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-21T08:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: user exits</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exits/m-p/2461822#M552399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to everyone&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2007 09:44:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exits/m-p/2461822#M552399</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-21T09:44:41Z</dc:date>
    </item>
  </channel>
</rss>

