<?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 userexits in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/userexits/m-p/3572750#M860029</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai sir&lt;/P&gt;&lt;P&gt;     i want to do user exits.i know concept but i dont have any objects on that...if u have send me. or plz.give any .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Mar 2008 08:49:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-21T08:49:16Z</dc:date>
    <item>
      <title>userexits</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/userexits/m-p/3572750#M860029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai sir&lt;/P&gt;&lt;P&gt;     i want to do user exits.i know concept but i dont have any objects on that...if u have send me. or plz.give any .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2008 08:49:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/userexits/m-p/3572750#M860029</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-21T08:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: userexits</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/userexits/m-p/3572751#M860030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="4756630"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt; &lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="4811402"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="4807147"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="4833246"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2008 09:04:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/userexits/m-p/3572751#M860030</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-21T09:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: userexits</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/userexits/m-p/3572752#M860031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Userexit is a methodology using which we can add our custom code in the SAP Standard transaction without disturbing the SAP Standard code. SAP will provide enhancement for one transaction. We can have more then one enhancement. Enhancement is a container with a set of userexits. SAP will provide only definition of the exit. Which does not contain any standard code. In the relevant transaction program SAP will call their exit as a standard. The Userexit needs to be implemented inorder to provide a custom logic to serve business requirement.&lt;/P&gt;&lt;P&gt;   SMOD: It is used to find the enhancement related to different applications.&lt;/P&gt;&lt;P&gt;   CMOD: It is used to implement the userexit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are 4 types of exits available:&lt;/P&gt;&lt;P&gt;1)	Function-module Exits,&lt;/P&gt;&lt;P&gt;2)	Menu exits,&lt;/P&gt;&lt;P&gt;3)	Screen exits and&lt;/P&gt;&lt;P&gt;4)	Field exits.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Functionmodule exits:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    These exits are used to provide additional functionality to SAP standard transaction. By default SAP is not provided this functionality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Example my requirement is, when user create or change customer and the customer belongs to US Country the Industry sector (brsch) field is not empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step1: Find the enhancement. For that one goes to SMOD.&lt;/P&gt;&lt;P&gt;Click on F4 on Enhancement. We Search for enhancement. In this case we can           found the enhancement by giving the Description: &lt;STRONG&gt;mast&lt;/STRONG&gt;. We got the enhancement as&lt;/P&gt;&lt;P&gt;SAPMF02D: User exits: Customer master data.&lt;/P&gt;&lt;P&gt;(Or)&lt;/P&gt;&lt;P&gt; We find the enhancement at transaction level,&lt;/P&gt;&lt;P&gt;     Go to XD01 transaction click on System/Status/double click on Program name&lt;/P&gt;&lt;P&gt;     In this program we search for &amp;#147;CALL customer-function&amp;#146;. We get the all related exits the starts with EXIT_enhancementname_Threedigitnumber. Sometimes it Will not an enhancement name.&lt;/P&gt;&lt;P&gt;Step2: Go to CMOD create the custom project.&lt;/P&gt;&lt;P&gt;           Click on Enhancement assignments button&lt;/P&gt;&lt;P&gt;                 Give the Enhancement name: SAPMF02D&lt;/P&gt;&lt;P&gt;Step 3: Click on Components button. Under that we found the one function module:&lt;/P&gt;&lt;P&gt;EXIT_ SAPMF02D_001. Double Click on that function module. In the Source code tab of this function module SAP provide the one Zinclude. SAP doesn&amp;#146;t know our requirement. In this Zinclude we provide our own custom logic to make of the parameters provided in import, export and tables section.&lt;/P&gt;&lt;P&gt;We write the following code:&lt;/P&gt;&lt;P&gt;   		&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF i_kna1-land1 = 'US' AND			&lt;/P&gt;&lt;P&gt;i_kna1-brsch = ' &amp;#145;.&lt;/P&gt;&lt;P&gt;MESSAGE e001 (f2) WITH &amp;#145; Industry sector should not be blank for US Customers&amp;#146;.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step4: SAVE, CHECH and ACTIVATE the Cutsom project.&lt;/P&gt;&lt;P&gt;Step5: Now go to XD01 Transaction We perform our requirement. After we don&amp;#146;t        want that requirement go to CMOD and deactivated the custom project.    &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;If it is helpful rewards points&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pratap.M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2008 09:21:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/userexits/m-p/3572752#M860031</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-21T09:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: userexits</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/userexits/m-p/3572753#M860032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Venu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="4756630"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="4811402"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="4807147"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="4833246"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sap.niraj.tripod.com/id21.html&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.sap.com/www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm" target="test_blank"&gt;www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.sap.com/www.sap-img.com/abap/what-is-user-exits.htm" target="test_blank"&gt;www.sap-img.com/abap/what-is-user-exits.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.sap.com/www.geekinterview.com/question_details/16079" target="test_blank"&gt;www.geekinterview.com/question_details/16079&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.sap.com/www.easymarketplace.de/userexit.php" target="test_blank"&gt;www.easymarketplace.de/userexit.php&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abhinay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2008 09:24:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/userexits/m-p/3572753#M860032</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-21T09:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: userexits</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/userexits/m-p/3572754#M860033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai   &lt;STRONG&gt;Veenu&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP provides standard transactions to enter data into database. But a client may want to maintain some additional information in SAP other than what is provided.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To make provisions for this, additional screens have to be provided and additional fields must be added into appropriate database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To pave way for this, SAP has provided the option for screen exits. Usually, SAP provides the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. An append structure in the database table with the new fields.&lt;/P&gt;&lt;P&gt;2. A subscreen area into the standard screen &amp;#150; where the programmer can attach his subscreen of his own program with the new fields.&lt;/P&gt;&lt;P&gt;3. A function group under which the new subscreen has to be created with the new fields.&lt;/P&gt;&lt;P&gt;4. Function exits to synchronize the PBO and PAI of the standard SAP program with the PBO and PAI of the subscreen &amp;#150; so that data can flow back and forth between the standard SAP program and the program written by the developer for the subscreen. These function modules also exist in the same function group under which the subscreen will have to be developed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally, a linkage has to be done between the subscreen area of standard SAP screen with the custom subscreen constructed by the developer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Typically, SAP provides an enhancement in which the developer can create an append structure, use the function exits to synchronize the PBO and PAI of the standard SAP program and the custom subscreen program, and make the necessary linking( as mentioned above in step 4. But, again, this is not a hard and fast rule. Linking in some case, is also done by configurations.) SAP also usually provides the name of the function group under which the subscreen has to be developed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Necessary guidance about implementing a screen exit development is usually available in the Documentation section of the enhancement ( can be availed by transaction SMOD).&lt;/P&gt;&lt;P&gt;Pre-Requisites&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The developer to work on screen exit should have essential knowledge on the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;DDIC concepts, including the knowledge of append structure.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Concept of SAP Enhancements and implementing them using Projects.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Concept of function exits.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Knowledge on Module Pool &amp;#150; including subscreens, Tabstrip controls etc.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steps&lt;/P&gt;&lt;P&gt;Guidelines&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, a developer can follow the guidelines mentioned below to implement a screen exit to a standard SAP transaction, as and when required:&lt;/P&gt;&lt;P&gt;Find out the Required Enhancements&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Go to SMOD. Press F4 in the Enhancement field. In the next popup window, click pushbutton &amp;#145;SAP Applications&amp;#146;. A list will appear that contains information on all the enhancements, categorized under functional areas. Developer must search for the enhancements relevant to his functional area of interest &amp;#150; for e.g., Purchasing, Asset Accounting, etc.&lt;/P&gt;&lt;P&gt;2. Note down the enhancements. Then, come to the initial screen of SMOD and view the documentation of each enhancement to find out which one is required for your development.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Utilize the Enhancement in a Project&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After you have found one, do as directed in the documentation. Generally, the steps are as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Create a project using CMOD including your enhancement.&lt;/P&gt;&lt;P&gt;2. Create the append structure with new fields.&lt;/P&gt;&lt;P&gt;3. Go to the desired function group and create a subscreen with the new fields. Write PBO and PAI for the subscreen, if required.&lt;/P&gt;&lt;P&gt;4. Use the function exits in the enhancement to link the PBO and PAI of the subscreen with that of the main SAP program supporting the SAP transaction.&lt;/P&gt;&lt;P&gt;5. Maintain necessary linkage between the subscreen area of standard SAP program with the custom subscreen developed along with the custom program name. This can be done in the project (developed by CMOD including the enhancement) or outside as a part of configuration.&lt;/P&gt;&lt;P&gt;6. Activate the project.&lt;/P&gt;&lt;P&gt;7. Test to ensure that required functionality are met.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Case Study 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add three new custom fields for Asset master and maintain information for them&lt;/P&gt;&lt;P&gt;Requirement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Three fields in the legacy system have to be maintained in Asset master. These fields are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Original Asset number &amp;#150; 20 characters&lt;/P&gt;&lt;P&gt;2. Location 2 &amp;#150; 15 Characters.&lt;/P&gt;&lt;P&gt;3. Model no &amp;#150; 20 characters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Location 2 should start with &amp;#145;L&amp;#146;.&lt;/P&gt;&lt;P&gt;Pre-Analysis&lt;/P&gt;&lt;P&gt;Finding out the Enhancement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As described above, the enhancement is determined. It was found, that enhancement AIST0002 will serve the purpose. It contains the following components (can be viewed by transaction SMOD):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exit Type Description EXIT_SAPL1022_001 Function Exit Check of User-Defined Fields when Using Create and Change BAPI EXIT_SAPLAIST_002 Function Exit Transfer Data for User Subscreens in PBO. EXIT_SAPLAIST_003 Function Exit Transfer of User-Defined Fields to SAP Master Data Transactions CI_ANLU Customizing Include Include structure to add new fields&lt;/P&gt;&lt;P&gt;Studying the Function Exits&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function module level documentation for the function exits are then viewed from transaction SE37. The documentation clearly laid out for the purpose for their use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXIT_SAPLAIST_002&lt;/P&gt;&lt;P&gt;Function module Level Documentation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This function module is called by asset master data maintenance at the start of the dialog. (When changing, it is called after reading of the data from the database; when creating it is called after the transfer of the default values from the asset class and reference asset.) The purpose of the function module is to enable this function group to recognize the master data. For interpreting or controlling master data fields that are important for user fields, it is possible to transfer to global variables at this point, so that they can be recognized when the user subscreens are processed.&lt;/P&gt;&lt;P&gt;Import Parameters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Understanding&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This function module is called at the PBO to pass the information retrieved from the database to pass them to the custom subscreen and its underlying program. Import parameter : I_ANLU will be populated with the values for user-defined fields which will be passed to the subscreen program. So, there must be some sort of variable assignment from I_ANLU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXIT_SAPLAIST_003&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function module Documentation: This function module is called by SAP asset master data maintenance after the screens are processed, but before saving. The purpose of the function module is to transfer fields entered on user sub-screens of SAP asset data maintenance to the database for updating. The export parameter for this function module is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Understanding&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This function module will be used to transfer the user entered data in the subscreen fields to the main SAP program, which will then be saved into the database.&lt;/P&gt;&lt;P&gt;Studying the Documentation of the Enhancement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The enhancement documentation (as is viewed from the initial screen of SMOD] also supports the idea. Moreover, it informs that we need to develop a subscreen under function group XAIS. This is the function group under which the two function exit modules also exist. So, if the custom subscreen refers to the global data of the function group XAIS, then those values will also be available to these function exits as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Going to SE80 and viewing the function group XAIS helps us to inform that there are three DDIC tables declared for it:&lt;/P&gt;&lt;P&gt;Deciding the Final course of Action&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After making all the investigations, the final course of action was determined.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SrlNo Step Justification&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. A project has to be created using transaction CMOD where the enhancement AIST0002 will be included.&lt;/P&gt;&lt;P&gt;2. Customizing include CI_ANLU has to be created with the custom fields demanded When CI_ANLU will be developed, the custom fields will get appended to the database table ANLU. Also, these fields will be used to create screen fields in the new subscreen.&lt;/P&gt;&lt;P&gt;3. A custom subscreen, say, 9000 will be developed under function group XAIS. The screen group for the screen will be &amp;#145;CUST&amp;#146; (or any name). The three custom fields added to table ANLU (by creating CI_ANLU) will be used to create new fields in the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the PAI of the subscreen, validation for Location to start with &amp;#145;L&amp;#146; will be added. The subscreen with three new fields has to be developed so that it can be attached to a subscreen area of the asset master screens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. In the custom include of the function exit module &amp;#145;EXIT_SAPLAIST_002&amp;#146;, the following code will be written:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ANLU = I_ANLU. I_ANLU is the import parameter of this FM. The value is assigned to the global variable ANLU, referring which the three new subscreen fields are developed. So, data retrieved from database table ANLU will be passed to this FM as I_ANLU by the standard SAP main program. The value will be taken and passed to the global variable of the function group XAIS, so that the three custom fields (referring to ANLU of XAIS) get populated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. In the custom include of the function exit module &amp;#145;EXIT_SAPLAIST_003&amp;#146;, the following code will be written:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E_ANLU = ANLU. The changed values in the subscreen fields exist in global variable ANLU for the function group XAIS. This function exit module will pass the data back to the SAP main program as E_ANLU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Proper linkage/configuration has to be done so that the new subscreens get linked to the appropriate subscreen area of the Asset master screen. This has to be done &amp;#150; otherwise, the new custom subscreen will not be displayed in the Asset master screens.&lt;/P&gt;&lt;P&gt;&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;&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;&lt;/P&gt;&lt;P&gt;Creating Custom Include for ANLU&lt;/P&gt;&lt;P&gt;&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;&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;&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;&lt;/P&gt;&lt;P&gt;Create it as subscreen.&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;Drag the fields in the screen body and place them.&lt;/P&gt;&lt;P&gt;&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;&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;&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;&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;&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;&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;&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;&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;&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;&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;&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;&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;&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;&lt;/P&gt;&lt;P&gt;System will copy all the settings and will inform you about that.&lt;/P&gt;&lt;P&gt;&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;&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;&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;&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;&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;&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;&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;&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;If Found Help Full.&lt;/P&gt;&lt;P&gt;Reward.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Eshwar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Mar 2008 06:48:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/userexits/m-p/3572754#M860033</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-22T06:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: userexits</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/userexits/m-p/3572755#M860034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;User Exits:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;           The original purpose of user exits was to allow the user to avoid  modification adjustment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;#61656;	A user exit is considered a modification, since technically objects in the SAP namespace are being modified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SAP developer creates a special include in a module pool. These includes contain one or more subroutines routines that satisfy the naming convention  userexit_&amp;lt;name&amp;gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;#61656;	The calls for these subroutines have already been implemented in the R/3 program. &lt;/P&gt;&lt;P&gt;&amp;amp;#61656;	Usually global variables are used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After delivering them, SAP never alters includes created in this manner; if new user exits must be delivered in a new release, they are placed in a new include program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;                  User exits are actually empty subroutines that SAP developers provide for you. You can fill them with your own source code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;#61656;	The purpose behind this type of system is to keep all changes well away from program source code and store them in include programs instead. &lt;/P&gt;&lt;P&gt;&amp;amp;#61656;	To this end, SAP developers create various includes that fulfill the naming conventions for programs and function groups. &lt;/P&gt;&lt;P&gt;&amp;amp;#61656;	The last two letters in the name of the include refer to the include that the customer should use: "Z" is usually found here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: Program SAPM45A&lt;/P&gt;&lt;P&gt;                   Include M45AFZB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This naming convention guarantees that SAP developers will not touch this include in the future. For this reason, includes of this nature are not adjusted during modification upgrade.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;#61656;	The subroutine call is already implemented in the program. The interface is already defined.&lt;/P&gt;&lt;P&gt;&amp;amp;#61656;	Normally, subroutines of this type only work with global data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If any new user exits are delivered by SAP with a new release, then they are bundled into new includes that adhere to the same naming convention.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steps to find an User Exit:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Identify the main program you want to locate a user exit/debug.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) For example, go to SE80 and do a search by program or dev class (SAPMV45A sales order or Dev Class VMOD, most SD user exits are in this dev class). In SE80 if you go by program, most user exit programs end in a 'Z' on a rare occasion 'X' or 'Y'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) If you are looking at including MV45AFZZ, you can see where there are different forms. These forms will get called at times within the program. If you are looking to fill the storage location on the sales order, you will probably want to take a look at the perform that fills in a field in vbap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4) If this is what you are trying to accomplish, you will need to do the select against the config Table TVKOL based on the shipping point/plant and possibly storage condition based on your picking strategies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5) To get into debug, you can enter a hard break-point in the enhancement itself, set a soft break-point with the stop sign, or the long way, before you execute your transaction or while you are in your transaction, you can place a /h in the ok code area (this is the area of your gui where you can type in a tcode). Once you have the /h, hit enter and that will take you into debug, from there, you can do many different things to find exactly what you are looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if it is useful to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Thishya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Mar 2008 10:08:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/userexits/m-p/3572755#M860034</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-24T10:08:48Z</dc:date>
    </item>
  </channel>
</rss>

