<?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 Field exits in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-exits/m-p/1721151#M314766</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have created a field exit for data element(MATKL) and inside the field exit function module i have done a validation and raised an error message. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i m exectuing the transactions such as MM01/02 or any other transaction, the error message is triggering and the field exit is working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i have a requirement that this validation should neglect/not consider one particular transaction(eg: OMSF or ME21 assume) and allow me to enter any value for MATKL field in that particular tranascation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to add my validation inside the field exit function module by checking sy-tcode...&lt;/P&gt;&lt;P&gt;i.e &lt;/P&gt;&lt;P&gt;***********************************************************&lt;/P&gt;&lt;P&gt;check not sy-tcode='ME21'&lt;/P&gt;&lt;P&gt;........&amp;lt;My field exit validation&amp;gt;........&lt;/P&gt;&lt;P&gt;end function.&lt;/P&gt;&lt;P&gt;*******************************************************&lt;/P&gt;&lt;P&gt;but in this case the sy-tcode value is alwasys SE37 as i m validating inside the FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me to exclude a particular transaction(s) while validating the field exit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 18 Nov 2006 10:46:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-18T10:46:40Z</dc:date>
    <item>
      <title>Field exits</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-exits/m-p/1721151#M314766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have created a field exit for data element(MATKL) and inside the field exit function module i have done a validation and raised an error message. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i m exectuing the transactions such as MM01/02 or any other transaction, the error message is triggering and the field exit is working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i have a requirement that this validation should neglect/not consider one particular transaction(eg: OMSF or ME21 assume) and allow me to enter any value for MATKL field in that particular tranascation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to add my validation inside the field exit function module by checking sy-tcode...&lt;/P&gt;&lt;P&gt;i.e &lt;/P&gt;&lt;P&gt;***********************************************************&lt;/P&gt;&lt;P&gt;check not sy-tcode='ME21'&lt;/P&gt;&lt;P&gt;........&amp;lt;My field exit validation&amp;gt;........&lt;/P&gt;&lt;P&gt;end function.&lt;/P&gt;&lt;P&gt;*******************************************************&lt;/P&gt;&lt;P&gt;but in this case the sy-tcode value is alwasys SE37 as i m validating inside the FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me to exclude a particular transaction(s) while validating the field exit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Nov 2006 10:46:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-exits/m-p/1721151#M314766</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-18T10:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: Field exits</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-exits/m-p/1721152#M314767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shiva,&lt;/P&gt;&lt;P&gt;What i think can be done is in transaction ME21. Try to find some user exit which is called very early in me21 ( may be in pbo ..befor user enters any data on screen). &lt;/P&gt;&lt;P&gt;Now in this user exit make use of SET PARAMETER to assign some value like transaction code to some variable. this will be stored in SAP memory...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in ur field exit validation .. mke use of GET PARAMETER to retirve value of the variable u assigned some value in ME21 userexit.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For transaction ME21 it will contain some value and for all other transaction it will be initial.. thus you can distinguish between different transaction and mae necessary validtion...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps ..let me know if need more inputs on this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enjoy SAP.&lt;/P&gt;&lt;P&gt;Pankaj Singh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Nov 2006 11:07:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-exits/m-p/1721152#M314767</guid>
      <dc:creator>messier31</dc:creator>
      <dc:date>2006-11-18T11:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: Field exits</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-exits/m-p/1721153#M314768</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;I see no problem in checking sy-tcode within a fieldexit.It always works.When executing txn ME21 it should always show the value of sy-tcode as ME21.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you assigned the pgm &amp;amp; dynpro correctly ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you send your source code ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the better option is to code this within an userexit/ BAdI.There are numerous userexits/BAdIs in MM01/MM02.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pravat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2006 05:01:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-exits/m-p/1721153#M314768</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-20T05:01:44Z</dc:date>
    </item>
  </channel>
</rss>

