<?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: Regarding User Exits in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-user-exits/m-p/2084695#M432779</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want the steps for the example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Apr 2007 16:30:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-16T16:30:02Z</dc:date>
    <item>
      <title>Regarding User Exits</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-user-exits/m-p/2084693#M432777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can u explain the whole process in Detail to below example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to learn this example.&lt;/P&gt;&lt;P&gt;Coded user exits in SD module. USEREXIT_PRICING_PREPARE_TKOMK was coded to include new header fields and USEREXIT_PRICING_PREPARE_TKOMP was coded to include new item fields for pricing in billing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Reddy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 04:00:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-user-exits/m-p/2084693#M432777</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-16T04:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding User Exits</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-user-exits/m-p/2084694#M432778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Reddy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can check the available userexits for this transaction code.&lt;/P&gt;&lt;P&gt;After u findout the userexit u can write the codeing fir this transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is User Exits and Customer Exits? &lt;/P&gt;&lt;P&gt;Difference between user exits &amp;amp; customer exits: &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 &lt;/P&gt;&lt;P&gt;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 &lt;/P&gt;&lt;P&gt;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 &lt;/P&gt;&lt;P&gt;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 &lt;/P&gt;&lt;P&gt;own functionality to SAP's standard business applications without &lt;/P&gt;&lt;P&gt;having to modify the original applications. SAP creates customer &lt;/P&gt;&lt;P&gt;exits for specific programs, screens, and menus within standard R/3 &lt;/P&gt;&lt;P&gt;applications. These exits do not contain any functionality. Instead, &lt;/P&gt;&lt;P&gt;the customer exits act as hooks. You can hang your own add-on &lt;/P&gt;&lt;P&gt;functionality onto these hooks. *-- Mani &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following document is about exits in SAP :- &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The R/3 enhancement concept allows you to add your own functionality &lt;/P&gt;&lt;P&gt;to SAP's standard business applications without having to modify the &lt;/P&gt;&lt;P&gt;original applications. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP creates user exits for specific programs, screens, and menus &lt;/P&gt;&lt;P&gt;within standard R/3 applications. These exits do not contain any &lt;/P&gt;&lt;P&gt;functionality. Instead, the customer exits act as hooks. You can &lt;/P&gt;&lt;P&gt;hang your own add-on functionality onto these hooks. &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 &lt;/P&gt;&lt;P&gt;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 &lt;/P&gt;&lt;P&gt;applications. You can use these menu items to call up your own &lt;/P&gt;&lt;P&gt;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 &lt;/P&gt;&lt;P&gt;Painter. These special entries have function codes that begin &lt;/P&gt;&lt;P&gt;with "+" (a plus sign). You specify the menu item's text when &lt;/P&gt;&lt;P&gt;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 &lt;/P&gt;&lt;P&gt;screen exits by placing special subscreen areas on a standard R/3 &lt;/P&gt;&lt;P&gt;screen and calling a customer subscreen from the standard screen's &lt;/P&gt;&lt;P&gt;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 &lt;/P&gt;&lt;P&gt;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 &lt;/P&gt;&lt;P&gt;function module exit to define the actions that should take place &lt;/P&gt;&lt;P&gt;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 &lt;/P&gt;&lt;P&gt;programs and screen exit fields. SAP application developers create &lt;/P&gt;&lt;P&gt;function module exits by writing calls to customer functions into &lt;/P&gt;&lt;P&gt;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 `001'. &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 &lt;/P&gt;&lt;P&gt;data element in the Dictionary. You can use this logic to carry out &lt;/P&gt;&lt;P&gt;checks, conversions, or business-related processing for any screen &lt;/P&gt;&lt;P&gt;field. Example: The data element BBBNR identifies a company's &lt;/P&gt;&lt;P&gt;international location number. You might want to set up your R/3 &lt;/P&gt;&lt;P&gt;System so that all international location numbers are larger than &lt;/P&gt;&lt;P&gt;100. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field exit concept lets you create a special function module &lt;/P&gt;&lt;P&gt;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. &lt;/P&gt;&lt;P&gt;You then assign the module to any programs and screens in which &lt;/P&gt;&lt;P&gt;users can add new international location numbers. When you activate &lt;/P&gt;&lt;P&gt;your field exit, the system automatically triggers your special &lt;/P&gt;&lt;P&gt;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;P&gt;*********************************************************************&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;LI level="9" type="ul"&gt;&lt;/LI&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 &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;needs. **** &lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="4" type="ul"&gt;&lt;P&gt;But in this case, this was wrote as a sample code for reference &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;sake. **** &lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="4" type="ul"&gt;&lt;P&gt;And you can test &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;it. &lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="4" type="ul"&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;*********************************************************************&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;LI level="9" 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;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;Rewords some points,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;P.Nag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 04:13:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-user-exits/m-p/2084694#M432778</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-16T04:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding User Exits</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-user-exits/m-p/2084695#M432779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want the steps for the example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 16:30:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-user-exits/m-p/2084695#M432779</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-16T16:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding User Exits</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-user-exits/m-p/2084696#M432780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Reddy,&lt;/P&gt;&lt;P&gt;Plz go through this info.&lt;/P&gt;&lt;P&gt;It is given in the step by step.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Creating Custom Screen in XD01&lt;/P&gt;&lt;P&gt;Go to Transaction SPRO à Logistics &amp;#150; General à Business Partner à Customers à Control à Adoption of Customer&amp;#146;s own Master Data fields à Prepare Modification à Free enhancement of Customer Master Record.  &lt;/P&gt;&lt;P&gt;Following screen appears:               &lt;/P&gt;&lt;P&gt;Go to CHANGE mode and Click &amp;#145;New Entries&amp;#146; button. Then add a Screen Group (SK here)and meaningful description. Save the entry and then SELECT that entry and Click on &amp;#145;Label Tab Pages&amp;#146;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add a Label Tab Page i.e. enter a Screen Number, Function Code and Meaningful Description. &lt;/P&gt;&lt;P&gt;Save the entry and come back to the SPRO screen. Click  Business Add-in: Processing Master Data Enhancements  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create one Implementation by giving implementation name (must start with Z. ZSURESHKUMAR here). Give meaningful description and press enter. The following screen appears.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to Interface and Click on &amp;#145;CHECK_ADD_ON_ACTIVE&amp;#146; method. Add the following code and save.  &lt;/P&gt;&lt;P&gt;method IF_EX_CUSTOMER_ADD_DATA~CHECK_ADD_ON_ACTIVE . &lt;/P&gt;&lt;P&gt;data: l_flg_active type BOOLE-BOOLE. &lt;/P&gt;&lt;P&gt;if i_screen_group = 'SK'.  &lt;/P&gt;&lt;P&gt;      e_add_on_active = 'X'.  &lt;/P&gt;&lt;P&gt;  endif. &lt;/P&gt;&lt;P&gt;endmethod.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Activate that and come back to SPRO initial screen. Click  Business Add-in: Customer Subscreens  &lt;/P&gt;&lt;P&gt;The following screen will appear. Create one implementation (ZSURESHKUMAR1 here).   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Press enter. The following screen will come. Enter a meaningful Description and Screen Group (which we created earlier) as shown below.  &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Then go to Interface   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a Function Pool SAPLZSURESHKUMAR. (See the code of the program for other details). Create a Screen &amp;#145;1111&amp;#146; with field old Customer Number &amp;#150; screen group PSK (SE51) &lt;/P&gt;&lt;P&gt;Click on GET_TAXI_SCREEN method and add the following code.  &lt;/P&gt;&lt;P&gt;method IF_EX_CUSTOMER_ADD_DATA_CS~GET_TAXI_SCREEN . &lt;/P&gt;&lt;P&gt; case i_taxi_fcode. &lt;/P&gt;&lt;P&gt;    when 'SK_TAB'. &lt;/P&gt;&lt;P&gt;      e_screen  = '1111'.  "Eart + Objekt &lt;/P&gt;&lt;P&gt;      e_program = 'SAPLZSURESHKUMAR'. &lt;/P&gt;&lt;P&gt;      e_headerscreen_layout = ' '. &lt;/P&gt;&lt;P&gt;  endcase. &lt;/P&gt;&lt;P&gt;endmethod.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Activate and leave the transaction.  &lt;/P&gt;&lt;P&gt;Go to KNA1 (Customer Master) table and add a custom field as shown below. Activate the table.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now go to XD01 transaction.  &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;The screen we created will appear as shown in the above screen-shot. Click the button. The following screen will appear.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enter a customer number and save the transaction. Now go to KNA1 table and check the value of the Old Customer Number field&amp;#146;s value. The value you entered in this screen will appear on there.  &lt;/P&gt;&lt;P&gt;Until now, we wrote code for creating the Custom field. Now we need to disable that field when we are opening the transaction in DISPLAY mode.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to include &amp;#150; LZSURESHKUMARTOP and enter the following code and activate the program.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now execute the Transaction in display mode and check the output. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rewords Points,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;P.Nag&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2007 04:49:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-user-exits/m-p/2084696#M432780</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-17T04:49:18Z</dc:date>
    </item>
  </channel>
</rss>

