<?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 function module exit and field exit in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-function-module-exit-and-field-exit/m-p/2725986#M632655</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;Hope the below information is helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Function Module Exits&amp;lt;/b&amp;gt; &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;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;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;These calls have the following syntax: &lt;/P&gt;&lt;P&gt;CALL CUSTOMER-FUNCTION &amp;#145;001&amp;#146;. &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Field Exits&amp;lt;/b&amp;gt; &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;The field exit concept lets you create a special function module that contains this logic. &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;In 4.6c, you can use "RSMODPRF" program to create field exits. &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;Lijo Joseph&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Aug 2007 14:26:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-30T14:26:34Z</dc:date>
    <item>
      <title>difference between function module exit and field exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-function-module-exit-and-field-exit/m-p/2725985#M632654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can u pls let me the difference between function module and field exit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2007 14:13:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-function-module-exit-and-field-exit/m-p/2725985#M632654</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-30T14:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: difference between function module exit and field exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-function-module-exit-and-field-exit/m-p/2725986#M632655</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;Hope the below information is helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Function Module Exits&amp;lt;/b&amp;gt; &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;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;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;These calls have the following syntax: &lt;/P&gt;&lt;P&gt;CALL CUSTOMER-FUNCTION &amp;#145;001&amp;#146;. &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Field Exits&amp;lt;/b&amp;gt; &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;The field exit concept lets you create a special function module that contains this logic. &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;In 4.6c, you can use "RSMODPRF" program to create field exits. &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;Lijo Joseph&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2007 14:26:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-function-module-exit-and-field-exit/m-p/2725986#M632655</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-30T14:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: difference between function module exit and field exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-function-module-exit-and-field-exit/m-p/2725987#M632656</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;Hope this will be help u&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Function module exit &amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Introduction&lt;/P&gt;&lt;P&gt;User exits (Function module exits) are exits developed by SAP. The exit is implementerd as a call to a functionmodule. The code for the function module is writeen by the developer. You are not writing the code directly in the function module, but in the include that is implemented in the function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The naming standard of function modules for functionmodule exits is:&lt;/P&gt;&lt;P&gt;EXIT_&amp;lt;3 digit suffix&amp;gt;&lt;/P&gt;&lt;P&gt;The call to a functionmodule exit is implemented as:&lt;/P&gt;&lt;P&gt;CALL CUSTOMER.-FUNCTION &lt;span class="lia-unicode-emoji" title=":red_heart:"&gt;❤️&lt;/span&gt; digit suffix&amp;gt;&lt;/P&gt;&lt;P&gt;Example:&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 &amp;#145;003&amp;#146;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;exporting xvbak = vbak xvbuk = vbuk xkomk = tkomk importing lvf_subrc = lvf_subrc tables xvbfa = xvbfa xvbap = xvbap xvbup = xvbup.&lt;/P&gt;&lt;P&gt;The exit calls function module EXIT_SAPMV45A_003 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Field Exits&amp;lt;/b&amp;gt; for Data Elements&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Description&lt;/P&gt;&lt;P&gt;Maintenance transaction for creating and activating field exits&lt;/P&gt;&lt;P&gt;As part of the extension concept, SAP allows you to install a field exit for each screen field. Similar to the conversion exit, the system branches at the field exit at DCI (DATA COMMUNICATIONS INPUT) to a function module, if the field is an input field and a function code was triggered. The function module must adhere to the following naming convention:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prefix: FIELD_EXIT_&lt;/P&gt;&lt;P&gt;Infix: &amp;lt;Data element name&amp;gt;&lt;/P&gt;&lt;P&gt;Suffix: _0 to _9 (optional), _A to _Z&lt;/P&gt;&lt;P&gt;The interface is automatically generated during the creation of the function module, and has 2 parameters:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Import parameter: INPUT&lt;/P&gt;&lt;P&gt;Export parameter: OUTPUT&lt;/P&gt;&lt;P&gt;After a function code has been triggered the contents of the field are made available to the FB via the "INPUT" import parameter. You can edit this and, when changed, make it available to the ABAP/4 processor in "OUTPUT". The input field contents are usually passed on: you can simply write OUTPUT = INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If, e.g., you have activated the field exit for the data element 'PROGRAM', then the fields of all the screens, which refer to the data element 'PROGRAM', branch to the function module FIELD_EXIT_PROGRAM. This includes the field 'Program' of the initial screen SAPMS38M0100 in transaction SE38, for example.&lt;/P&gt;&lt;P&gt;If you do not want the function module to be accessed from all screens, assign particular screens to the data element PROGRAM. By allocating an exit number, it is also possible to branch to other function modules with the corresponding suffix _0 ... _Z.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: You have assigned screen SAPMS38M0100 and exit number 5 to data element 'PROGRAM'. The corresponding field on SAPMS38M0100 branches to FIELD_EXIT_PROGRAMM_5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As soon as you activate an exit, the corresponding screens are invalidated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: Field exits are only taken into account during screen generation if the parameter abap/fieldexit = 'YES' is set in the system profile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Requirement&lt;/P&gt;&lt;P&gt;Set the profile parameter abap/fieldexit = 'YES' before system start.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Limitations&lt;/P&gt;&lt;P&gt;The following ABAP statements are not allowed in the function modules of field exits:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BREAK-POINT,&lt;/P&gt;&lt;P&gt;CALL SCREEN, CALL DIALOG, CALL TRANSACTION, SUBMIT,&lt;/P&gt;&lt;P&gt;COMMIT WORK, ROLLBACK WORK,&lt;/P&gt;&lt;P&gt;COMMUNICATION RECEIVE,&lt;/P&gt;&lt;P&gt;EXIT FROM STEP-LOOP,&lt;/P&gt;&lt;P&gt;MESSAGE I, MESSAGE W.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field exits cannot be edited with the debugger.&lt;/P&gt;&lt;P&gt;You should not use any external Performs in field exits. The ABAP processor shares the table work areas of externally called programs with those of the first caller. This could lead to errors at field exits that can hardly be analyzed, as field exits are sometimes slipped into the flow of the program at unforeseen events.&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;&lt;/P&gt;&lt;P&gt;KUMAR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2007 14:54:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-function-module-exit-and-field-exit/m-p/2725987#M632656</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-30T14:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: difference between function module exit and field exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-function-module-exit-and-field-exit/m-p/2725988#M632657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;b&amp;gt;Function Module Exits &amp;lt;/b&amp;gt;&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;&amp;lt;b&amp;gt;Field Exits&amp;lt;/b&amp;gt;&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;P&gt;******************************************************************************&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;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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t;&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2007 14:56:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-function-module-exit-and-field-exit/m-p/2725988#M632657</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-30T14:56:04Z</dc:date>
    </item>
  </channel>
</rss>

