<?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: Field Exit in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-exit/m-p/3661318#M881916</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;Step by step procedure for creating Field Exits&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are eight steps to creating a field exit:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 1: Determine Data Element&lt;/P&gt;&lt;P&gt;Step 2: Go To Field Exit Transaction&lt;/P&gt;&lt;P&gt;Step 3: Create Field Exit&lt;/P&gt;&lt;P&gt;Step 4: Create Function Module&lt;/P&gt;&lt;P&gt;Step 5: Code Function Module&lt;/P&gt;&lt;P&gt;Step 6: Activate Function Module&lt;/P&gt;&lt;P&gt;Step 7: Assign Program/Screen&lt;/P&gt;&lt;P&gt;Step 8: Activate Field Exit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 1: Determine Data Element&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Before you can begin adding the functionality for a field exit, you must know the corresponding data element.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- An easy way to determine the data element associated to a particular screen field is to:&lt;/P&gt;&lt;P&gt;Go the appropriate screen.&lt;/P&gt;&lt;P&gt;Position the cursor in the appropriate field.&lt;/P&gt;&lt;P&gt;Press &amp;#145;F1&amp;#146; for field-level help.&lt;/P&gt;&lt;P&gt;Click on the &amp;#145;Technical info&amp;#146; pushbutton (or press &amp;#145;F9&amp;#146;) on the help dialog box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On this Technical Information dialog box, the data element will be specified if the field is 'painted' from the ABAP/4 Dictionary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 2: Go To Field Exit Transaction&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- The transaction to create field exits is CMOD.&lt;/P&gt;&lt;P&gt;- You can use the menu path Tools -&amp;gt; ABAP/4 Workbench -&amp;gt; Utilities -&amp;gt; Enhancements -&amp;gt; Project management.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- From the initial screen of transaction CMOD, choose the Text enhancements -&amp;gt; Field exits menu path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- After choosing this menu path, you will be taken to the field exits screen. From here, you can create a field exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE : Even though you use transaction CMOD to maintain field exits, you do not need to create a project to activate field exits.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 3: Create Field Exit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- From the field exit screen of transaction CMOD, choose the Field exit -&amp;gt; Create menu path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- After choosing this menu path, a dialog box will prompt you for the appropriate data element .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Enter the data element name and click the &amp;#145;Continue&amp;#146; pushbutton.&lt;/P&gt;&lt;P&gt;- Now, you will be able to create the function module associated to the data element&amp;#146;s field exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 4: Create Function Module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- You will automatically be taken to the Function Library (SE37) after entering a data element name and clicking the &amp;#145;Continue&amp;#146; pushbutton.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- In the &amp;#145;Function module&amp;#146; field, a function module name will be defaulted by the system based on the data element specified. This name will have the following convention:&lt;/P&gt;&lt;P&gt;FIELD_EXIT_&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- You can add an identifier (an underscore followed by a single character ).&lt;/P&gt;&lt;P&gt;- The first function module for a data element&amp;#146;s field exit must be created without an identifier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- To create the function module, click on the &amp;#145;Create&amp;#146; pushbutton, choose menu path Function module -&amp;gt; Create, or press &amp;#145;F5&amp;#146;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- After choosing to create the function module, you will get the warning: "Function module name is reserved for SAP". This message is just a warning so a developer does not accidentally create a function module in the field exit name range. By pressing &amp;#145;Enter&amp;#146;, you will be able to go ahead and create the function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Before coding the function module, you will have to specify the function modules attributes -- function group, application, and short text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 5: Code Function Module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- From the function module&amp;#146;s attributes screen, click on the &amp;#145;Source code&amp;#146; pushbutton or choose the Goto -&amp;gt; Function module menu path to the code of the function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Here you will add your desired functionality for the field exit.&lt;/P&gt;&lt;P&gt;- Remember that field exit&amp;#146;s function module will have two parameters -- one importing parameter called "INPUT" and one exporting parameter called "OUTPUT". These parameters will be set up automatically by the system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- You must remember to assign a value to the OUTPUT field. Even if the value does not change, it must be moved from the INPUT field to the OUTPUT field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 6: Activate Function Module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- After coding the function module, you must remember to activate it.&lt;/P&gt;&lt;P&gt;- Use the Function module -&amp;gt; Activate menu path to activate the function module.&lt;/P&gt;&lt;P&gt;- At this point, you can return to the field exit transaction.&lt;/P&gt;&lt;P&gt;- You should be able to 'green arrow' back to this transaction.&lt;/P&gt;&lt;P&gt;- When you return to the field exit transaction, you will see an entry for the newly created field exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- At this point, the field exit is global. That is, it applies to all screens that use a particular data element. On any screen that uses the data element, the corresponding field exit function module will be triggered, once it is active.&lt;/P&gt;&lt;P&gt;- Also, the field exit will not be triggered yet because it is inactive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 7: Assign Program/Screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- This step is only needed if you want to make a field exit local.&lt;/P&gt;&lt;P&gt;- To make a field exit local, select the field exit and click on the &amp;#145;Assign prog./screen&amp;#146; pushbutton.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- In the dialog box , indicate the appropriate program name and screen number.&lt;/P&gt;&lt;P&gt;This information indicates that the field exit is local to the specified screen in the specified program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- In the dialog box, you determine which function module gets executed for the field exit by specifying the identifier in the &amp;#145;Fld. Exit&amp;#146; field.&lt;/P&gt;&lt;P&gt;- If this field is left blank, the function module triggered will be 'FIELD_EXIT_'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- If a single-character identifier is entered into the field, the function module triggered will be 'FIELD_EXIT__'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 8: Activate Field Exit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- The field exit must be active for it to be triggered by the system.&lt;/P&gt;&lt;P&gt;- Activate the field exit by choosing the Field exit -&amp;gt; Activate menu path.&lt;/P&gt;&lt;P&gt;- After assigning the field exit to a change request, its status will change to &amp;#145;Active&amp;#146; and it will be triggered automatically on the appropriate screen(s).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE : In order to activate the field exit the profile parameter abap/fieldexit = YES must be set on all application servers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;AK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Apr 2008 10:29:33 GMT</pubDate>
    <dc:creator>ak_upadhyay</dc:creator>
    <dc:date>2008-04-09T10:29:33Z</dc:date>
    <item>
      <title>Field Exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-exit/m-p/3661315#M881913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you explain me the step by step process for create field exit. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I create a Field_exit_matnr but am not able to know what to code in that..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually my requirement is that i want to change the description of MATNR to Product Number from material number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise me!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Amit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 10:23:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-exit/m-p/3661315#M881913</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-09T10:23:04Z</dc:date>
    </item>
    <item>
      <title>Re: Field Exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-exit/m-p/3661316#M881914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi jony,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      Please find below the step by step procedure for field exit :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are eight steps to creating a field exit:&lt;/P&gt;&lt;P&gt;Step 1: Determine Data Element&lt;/P&gt;&lt;P&gt;Step 2: Go To Field Exit Transaction&lt;/P&gt;&lt;P&gt;Step 3: Create Field Exit&lt;/P&gt;&lt;P&gt;Step 4: Create Function Module&lt;/P&gt;&lt;P&gt;Step 5: Code Function Module&lt;/P&gt;&lt;P&gt;Step 6: Activate Function Module&lt;/P&gt;&lt;P&gt;Step 7: Assign Program/Screen&lt;/P&gt;&lt;P&gt;Step 8: Activate Field Exit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 1: Determine Data Element&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before you can begin adding the functionality for a field exit, you must know the corresponding data element. &lt;/P&gt;&lt;P&gt;An easy way to determine the data element associated to a particular screen field is to: &lt;/P&gt;&lt;P&gt;Go the appropriate screen.&lt;/P&gt;&lt;P&gt;Position the cursor in the appropriate field.&lt;/P&gt;&lt;P&gt;Press &amp;#145;F1&amp;#146; for field-level help.&lt;/P&gt;&lt;P&gt;Click on the &amp;#145;Technical info&amp;#146; pushbutton (or press &amp;#145;F9&amp;#146;) on the help dialog box.&lt;/P&gt;&lt;P&gt;On this Technical Information dialog box, the data element will be specified if the field is 'painted' from the ABAP/4 Dictionary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 2: Go To Field Exit Transaction&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The transaction to create field exits is CMOD. &lt;/P&gt;&lt;P&gt;You can use the menu path Tools -&amp;gt; ABAP/4 Workbench -&amp;gt; Utilities -&amp;gt; Enhancements -&amp;gt; Project management. &lt;/P&gt;&lt;P&gt;From the initial screen of transaction CMOD, choose the Text enhancements -&amp;gt; Field exits menu path. &lt;/P&gt;&lt;P&gt;After choosing this menu path, you will be taken to the field exits screen. From here, you can create a field exit. &lt;/P&gt;&lt;P&gt;NOTE : Even though you use transaction CMOD to maintain field exits, you do not need to create a project to activate field exits.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 3: Create Field Exit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the field exit screen of transaction CMOD, choose the Field exit -&amp;gt; Create menu path. &lt;/P&gt;&lt;P&gt;After choosing this menu path, a dialog box will prompt you for the appropriate data element . &lt;/P&gt;&lt;P&gt;Enter the data element name and click the &amp;#145;Continue&amp;#146; pushbutton. &lt;/P&gt;&lt;P&gt;Now, you will be able to create the function module associated to the data element&amp;#146;s field exit. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 4: Create Function Module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will automatically be taken to the Function Library (SE37) after entering a data element name and clicking the &amp;#145;Continue&amp;#146; pushbutton. &lt;/P&gt;&lt;P&gt;In the &amp;#145;Function module&amp;#146; field, a function module name will be defaulted by the system based on the data element specified. This name will have the following convention: &lt;/P&gt;&lt;P&gt;FIELD_EXIT_&amp;lt;data element&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can add an identifier (an underscore followed by a single character ). &lt;/P&gt;&lt;P&gt;The first function module for a data element&amp;#146;s field exit must be created without an identifier. &lt;/P&gt;&lt;P&gt;To create the function module, click on the &amp;#145;Create&amp;#146; pushbutton, choose menu path Function module -&amp;gt; Create, or press &amp;#145;F5&amp;#146;. &lt;/P&gt;&lt;P&gt;After choosing to create the function module, you will get the warning: "Function module name is reserved for SAP". This message is just a warning so a developer does not accidentally create a function module in the field exit name range. By pressing &amp;#145;Enter&amp;#146;, you will be able to go ahead and create the function module. &lt;/P&gt;&lt;P&gt;Before coding the function module, you will have to specify the function modules attributes -- function group, application, and short text. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 5: Code Function Module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the function module&amp;#146;s attributes screen, click on the &amp;#145;Source code&amp;#146; pushbutton or choose the Goto -&amp;gt; Function module menu path to the code of the function module. &lt;/P&gt;&lt;P&gt;Here you will add your desired functionality for the field exit. &lt;/P&gt;&lt;P&gt;Remember that field exit&amp;#146;s function module will have two parameters -- one importing parameter called "INPUT" and one exporting parameter called "OUTPUT". These parameters will be set up automatically by the system. &lt;/P&gt;&lt;P&gt;You must remember to assign a value to the OUTPUT field. Even if the value does not change, it must be moved from the INPUT field to the OUTPUT field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 6: Activate Function Module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After coding the function module, you must remember to activate it. &lt;/P&gt;&lt;P&gt;Use the Function module -&amp;gt; Activate menu path to activate the function module. &lt;/P&gt;&lt;P&gt;At this point, you can return to the field exit transaction. &lt;/P&gt;&lt;P&gt;You should be able to 'green arrow' back to this transaction. &lt;/P&gt;&lt;P&gt;When you return to the field exit transaction, you will see an entry for the newly created field exit. &lt;/P&gt;&lt;P&gt;At this point, the field exit is global. That is, it applies to all screens that use a particular data element. On any screen that uses the data element, the corresponding field exit function module will be triggered, once it is active. &lt;/P&gt;&lt;P&gt;Also, the field exit will not be triggered yet because it is inactive. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 7: Assign Program/Screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This step is only needed if you want to make a field exit local. &lt;/P&gt;&lt;P&gt;To make a field exit local, select the field exit and click on the &amp;#145;Assign prog./screen&amp;#146; pushbutton. &lt;/P&gt;&lt;P&gt;In the dialog box , indicate the appropriate program name and screen number. &lt;/P&gt;&lt;P&gt;This information indicates that the field exit is local to the specified screen in the specified program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the dialog box, you determine which function module gets executed for the field exit by specifying the identifier in the &amp;#145;Fld. Exit&amp;#146; field. &lt;/P&gt;&lt;P&gt;If this field is left blank, the function module triggered will be 'FIELD_EXIT_&amp;lt;data element&amp;gt;'. &lt;/P&gt;&lt;P&gt;If a single-character identifier is entered into the field, the function module triggered will be 'FIELD_EXIT_&amp;lt;data element&amp;gt;_&amp;lt;identifier&amp;gt;'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 8: Activate Field Exit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field exit must be active for it to be triggered by the system. &lt;/P&gt;&lt;P&gt;Activate the field exit by choosing the Field exit -&amp;gt; Activate menu path. &lt;/P&gt;&lt;P&gt;After assigning the field exit to a change request, its status will change to &amp;#145;Active&amp;#146; and it will be triggered automatically on the appropriate screen(s). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE : In order to activate the field exit the profile parameter abap/fieldexit = YES must be set on all application servers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 10:25:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-exit/m-p/3661316#M881914</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-09T10:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: Field Exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-exit/m-p/3661317#M881915</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;Try This&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/c8/1975e643b111d1896f0000e8322d00/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/c8/1975e643b111d1896f0000e8322d00/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables : modsap&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tcode : cmod,smod&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if usefull&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 10:25:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-exit/m-p/3661317#M881915</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-09T10:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: Field Exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-exit/m-p/3661318#M881916</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;Step by step procedure for creating Field Exits&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are eight steps to creating a field exit:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 1: Determine Data Element&lt;/P&gt;&lt;P&gt;Step 2: Go To Field Exit Transaction&lt;/P&gt;&lt;P&gt;Step 3: Create Field Exit&lt;/P&gt;&lt;P&gt;Step 4: Create Function Module&lt;/P&gt;&lt;P&gt;Step 5: Code Function Module&lt;/P&gt;&lt;P&gt;Step 6: Activate Function Module&lt;/P&gt;&lt;P&gt;Step 7: Assign Program/Screen&lt;/P&gt;&lt;P&gt;Step 8: Activate Field Exit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 1: Determine Data Element&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Before you can begin adding the functionality for a field exit, you must know the corresponding data element.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- An easy way to determine the data element associated to a particular screen field is to:&lt;/P&gt;&lt;P&gt;Go the appropriate screen.&lt;/P&gt;&lt;P&gt;Position the cursor in the appropriate field.&lt;/P&gt;&lt;P&gt;Press &amp;#145;F1&amp;#146; for field-level help.&lt;/P&gt;&lt;P&gt;Click on the &amp;#145;Technical info&amp;#146; pushbutton (or press &amp;#145;F9&amp;#146;) on the help dialog box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On this Technical Information dialog box, the data element will be specified if the field is 'painted' from the ABAP/4 Dictionary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 2: Go To Field Exit Transaction&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- The transaction to create field exits is CMOD.&lt;/P&gt;&lt;P&gt;- You can use the menu path Tools -&amp;gt; ABAP/4 Workbench -&amp;gt; Utilities -&amp;gt; Enhancements -&amp;gt; Project management.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- From the initial screen of transaction CMOD, choose the Text enhancements -&amp;gt; Field exits menu path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- After choosing this menu path, you will be taken to the field exits screen. From here, you can create a field exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE : Even though you use transaction CMOD to maintain field exits, you do not need to create a project to activate field exits.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 3: Create Field Exit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- From the field exit screen of transaction CMOD, choose the Field exit -&amp;gt; Create menu path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- After choosing this menu path, a dialog box will prompt you for the appropriate data element .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Enter the data element name and click the &amp;#145;Continue&amp;#146; pushbutton.&lt;/P&gt;&lt;P&gt;- Now, you will be able to create the function module associated to the data element&amp;#146;s field exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 4: Create Function Module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- You will automatically be taken to the Function Library (SE37) after entering a data element name and clicking the &amp;#145;Continue&amp;#146; pushbutton.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- In the &amp;#145;Function module&amp;#146; field, a function module name will be defaulted by the system based on the data element specified. This name will have the following convention:&lt;/P&gt;&lt;P&gt;FIELD_EXIT_&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- You can add an identifier (an underscore followed by a single character ).&lt;/P&gt;&lt;P&gt;- The first function module for a data element&amp;#146;s field exit must be created without an identifier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- To create the function module, click on the &amp;#145;Create&amp;#146; pushbutton, choose menu path Function module -&amp;gt; Create, or press &amp;#145;F5&amp;#146;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- After choosing to create the function module, you will get the warning: "Function module name is reserved for SAP". This message is just a warning so a developer does not accidentally create a function module in the field exit name range. By pressing &amp;#145;Enter&amp;#146;, you will be able to go ahead and create the function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Before coding the function module, you will have to specify the function modules attributes -- function group, application, and short text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 5: Code Function Module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- From the function module&amp;#146;s attributes screen, click on the &amp;#145;Source code&amp;#146; pushbutton or choose the Goto -&amp;gt; Function module menu path to the code of the function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Here you will add your desired functionality for the field exit.&lt;/P&gt;&lt;P&gt;- Remember that field exit&amp;#146;s function module will have two parameters -- one importing parameter called "INPUT" and one exporting parameter called "OUTPUT". These parameters will be set up automatically by the system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- You must remember to assign a value to the OUTPUT field. Even if the value does not change, it must be moved from the INPUT field to the OUTPUT field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 6: Activate Function Module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- After coding the function module, you must remember to activate it.&lt;/P&gt;&lt;P&gt;- Use the Function module -&amp;gt; Activate menu path to activate the function module.&lt;/P&gt;&lt;P&gt;- At this point, you can return to the field exit transaction.&lt;/P&gt;&lt;P&gt;- You should be able to 'green arrow' back to this transaction.&lt;/P&gt;&lt;P&gt;- When you return to the field exit transaction, you will see an entry for the newly created field exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- At this point, the field exit is global. That is, it applies to all screens that use a particular data element. On any screen that uses the data element, the corresponding field exit function module will be triggered, once it is active.&lt;/P&gt;&lt;P&gt;- Also, the field exit will not be triggered yet because it is inactive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 7: Assign Program/Screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- This step is only needed if you want to make a field exit local.&lt;/P&gt;&lt;P&gt;- To make a field exit local, select the field exit and click on the &amp;#145;Assign prog./screen&amp;#146; pushbutton.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- In the dialog box , indicate the appropriate program name and screen number.&lt;/P&gt;&lt;P&gt;This information indicates that the field exit is local to the specified screen in the specified program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- In the dialog box, you determine which function module gets executed for the field exit by specifying the identifier in the &amp;#145;Fld. Exit&amp;#146; field.&lt;/P&gt;&lt;P&gt;- If this field is left blank, the function module triggered will be 'FIELD_EXIT_'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- If a single-character identifier is entered into the field, the function module triggered will be 'FIELD_EXIT__'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 8: Activate Field Exit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- The field exit must be active for it to be triggered by the system.&lt;/P&gt;&lt;P&gt;- Activate the field exit by choosing the Field exit -&amp;gt; Activate menu path.&lt;/P&gt;&lt;P&gt;- After assigning the field exit to a change request, its status will change to &amp;#145;Active&amp;#146; and it will be triggered automatically on the appropriate screen(s).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE : In order to activate the field exit the profile parameter abap/fieldexit = YES must be set on all application servers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;AK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 10:29:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-exit/m-p/3661318#M881916</guid>
      <dc:creator>ak_upadhyay</dc:creator>
      <dc:date>2008-04-09T10:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: Field Exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-exit/m-p/3661319#M881917</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;go through the below steps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step by step procedure for creating Field Exits&lt;/P&gt;&lt;P&gt;There are eight steps to creating a field exit:&lt;/P&gt;&lt;P&gt;Step 1: Determine Data Element&lt;/P&gt;&lt;P&gt;Step 2: Go To Field Exit Transaction&lt;/P&gt;&lt;P&gt;Step 3: Create Field Exit&lt;/P&gt;&lt;P&gt;Step 4: Create Function Module&lt;/P&gt;&lt;P&gt;Step 5: Code Function Module&lt;/P&gt;&lt;P&gt;Step 6: Activate Function Module&lt;/P&gt;&lt;P&gt;Step 7: Assign Program/Screen&lt;/P&gt;&lt;P&gt;Step 8: Activate Field Exit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 1: Determine Data Element&lt;/P&gt;&lt;P&gt;- Before you can begin adding the functionality for a field exit, you must know the corresponding data element.&lt;/P&gt;&lt;P&gt;- An easy way to determine the data element associated to a particular screen field is to:&lt;/P&gt;&lt;P&gt;Go the appropriate screen.&lt;/P&gt;&lt;P&gt;Position the cursor in the appropriate field.&lt;/P&gt;&lt;P&gt;Press &amp;#129;eF1&amp;#129;f for field-level help.&lt;/P&gt;&lt;P&gt;Click on the &amp;#129;eTechnical info&amp;#129;f pushbutton (or press &amp;#129;eF9&amp;#129;f) on the help dialog box.&lt;/P&gt;&lt;P&gt;On this Technical Information dialog box, the data element will be specified if the field is 'painted' from the ABAP/4 Dictionary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 2: Go To Field Exit Transaction&lt;/P&gt;&lt;P&gt;- The transaction to create field exits is CMOD.&lt;/P&gt;&lt;P&gt;- You can use the menu path Tools -&amp;gt; ABAP/4 Workbench -&amp;gt; Utilities -&amp;gt; Enhancements -&amp;gt; Project management.&lt;/P&gt;&lt;P&gt;- From the initial screen of transaction CMOD, choose the Text enhancements -&amp;gt; Field exits menu path.&lt;/P&gt;&lt;P&gt;- After choosing this menu path, you will be taken to the field exits screen. From here, you can create a field exit.&lt;/P&gt;&lt;P&gt;NOTE : Even though you use transaction CMOD to maintain field exits, you do not need to create a project to activate field exits.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 3: Create Field Exit&lt;/P&gt;&lt;P&gt;- From the field exit screen of transaction CMOD, choose the Field exit -&amp;gt; Create menu path.&lt;/P&gt;&lt;P&gt;- After choosing this menu path, a dialog box will prompt you for the appropriate data element .&lt;/P&gt;&lt;P&gt;- Enter the data element name and click the &amp;#129;eContinue&amp;#129;f pushbutton.&lt;/P&gt;&lt;P&gt;- Now, you will be able to create the function module associated to the data element&amp;#129;fs field exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 4: Create Function Module&lt;/P&gt;&lt;P&gt;- You will automatically be taken to the Function Library (SE37) after entering a data element name and clicking the &amp;#129;eContinue&amp;#129;f pushbutton.&lt;/P&gt;&lt;P&gt;- In the &amp;#129;eFunction module&amp;#129;f field, a function module name will be defaulted by the system based on the data element specified. This name will have the following convention:&lt;/P&gt;&lt;P&gt;FIELD_EXIT_&amp;lt;data element&amp;gt;&lt;/P&gt;&lt;P&gt;- You can add an identifier (an underscore followed by a single character ).&lt;/P&gt;&lt;P&gt;- The first function module for a data element&amp;#129;fs field exit must be created without an identifier.&lt;/P&gt;&lt;P&gt;- To create the function module, click on the &amp;#129;eCreate&amp;#129;f pushbutton, choose menu path Function module -&amp;gt; Create, or press &amp;#129;eF5&amp;#129;f. &lt;/P&gt;&lt;P&gt;- After choosing to create the function module, you will get the warning: "Function module name is reserved for SAP". This message is just a warning so a developer does not accidentally create a function module in the field exit name range. By pressing &amp;#129;eEnter&amp;#129;f, you will be able to go ahead and create the function module.&lt;/P&gt;&lt;P&gt;- Before coding the function module, you will have to specify the function modules attributes -- function group, application, and short text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 5: Code Function Module&lt;/P&gt;&lt;P&gt;- From the function module&amp;#129;fs attributes screen, click on the &amp;#129;eSource code&amp;#129;f pushbutton or choose the Goto -&amp;gt; Function module menu path to the code of the function module.&lt;/P&gt;&lt;P&gt;- Here you will add your desired functionality for the field exit.&lt;/P&gt;&lt;P&gt;- Remember that field exit&amp;#129;fs function module will have two parameters -- one importing parameter called "INPUT" and one exporting parameter called "OUTPUT". These parameters will be set up automatically by the system.&lt;/P&gt;&lt;P&gt;- You must remember to assign a value to the OUTPUT field. Even if the value does not change, it must be moved from the INPUT field to the OUTPUT field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 6: Activate Function Module&lt;/P&gt;&lt;P&gt;- After coding the function module, you must remember to activate it.&lt;/P&gt;&lt;P&gt;- Use the Function module -&amp;gt; Activate menu path to activate the function module.&lt;/P&gt;&lt;P&gt;- At this point, you can return to the field exit transaction.&lt;/P&gt;&lt;P&gt;- You should be able to 'green arrow' back to this transaction.&lt;/P&gt;&lt;P&gt;- When you return to the field exit transaction, you will see an entry for the newly created field exit.&lt;/P&gt;&lt;P&gt;- At this point, the field exit is global. That is, it applies to all screens that use a particular data element. On any screen that uses the data element, the corresponding field exit function module will be triggered, once it is active.&lt;/P&gt;&lt;P&gt;- Also, the field exit will not be triggered yet because it is inactive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 7: Assign Program/Screen&lt;/P&gt;&lt;P&gt;- This step is only needed if you want to make a field exit local.&lt;/P&gt;&lt;P&gt;- To make a field exit local, select the field exit and click on the &amp;#129;eAssign prog./screen&amp;#129;f pushbutton.&lt;/P&gt;&lt;P&gt;- In the dialog box , indicate the appropriate program name and screen number.&lt;/P&gt;&lt;P&gt;This information indicates that the field exit is local to the specified screen in the specified program.&lt;/P&gt;&lt;P&gt;- In the dialog box, you determine which function module gets executed for the field exit by specifying the identifier in the &amp;#129;eFld. Exit&amp;#129;f field.&lt;/P&gt;&lt;P&gt;- If this field is left blank, the function module triggered will be 'FIELD_EXIT_&amp;lt;data element&amp;gt;'.&lt;/P&gt;&lt;P&gt;- If a single-character identifier is entered into the field, the function module triggered will be 'FIELD_EXIT_&amp;lt;data element&amp;gt;_&amp;lt;identifier&amp;gt;'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 8: Activate Field Exit&lt;/P&gt;&lt;P&gt;- The field exit must be active for it to be triggered by the system.&lt;/P&gt;&lt;P&gt;- Activate the field exit by choosing the Field exit -&amp;gt; Activate menu path.&lt;/P&gt;&lt;P&gt;- After assigning the field exit to a change request, its status will change to &amp;#129;eActive&amp;#129;f and it will be triggered automatically on the appropriate screen(s).&lt;/P&gt;&lt;P&gt;NOTE : In order to activate the field exit the profile parameter abap/fieldexit = YES must be set on all application servers&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;Sreeni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 10:31:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-exit/m-p/3661319#M881917</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-09T10:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: Field Exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-exit/m-p/3661320#M881918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Points will be give to you all!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i want to know about code which i have to code in FM source code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you give me one Example of such code!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 10:37:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-exit/m-p/3661320#M881918</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-09T10:37:33Z</dc:date>
    </item>
  </channel>
</rss>

