<?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 Debugging in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-exit-debugging/m-p/1534071#M243766</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The requirement i am working on is for transaction MM01 if the field BISMT is blank then they can enter a value when its called from the workflow inbox. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wrote the code in the field exit:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF SY-TCODE = 'MM01'.&lt;/P&gt;&lt;P&gt;    IF NOT INPUT IS INITIAL.&lt;/P&gt;&lt;P&gt;      OUTPUT = INPUT.&lt;/P&gt;&lt;P&gt;      AUTHORITY-CHECK OBJECT 'ZMDOLDMAT' ID 'BISMT' FIELD INPUT&lt;/P&gt;&lt;P&gt;                                         ID 'ACTVT' FIELD INPUT.&lt;/P&gt;&lt;P&gt;      IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;      ELSE.&lt;/P&gt;&lt;P&gt;        MESSAGE E009(ZMD) WITH&lt;/P&gt;&lt;P&gt;                'You dont have authorization to change' INPUT.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ELSEIF SY-TCODE = 'MM02'.&lt;/P&gt;&lt;P&gt;    OUTPUT = INPUT.&lt;/P&gt;&lt;P&gt;    AUTHORITY-CHECK OBJECT 'ZMDOLDMAT' ID 'BISMT' FIELD INPUT&lt;/P&gt;&lt;P&gt;                                       ID 'ACTVT' FIELD INPUT.&lt;/P&gt;&lt;P&gt;    IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      MESSAGE E009(ZMD) WITH&lt;/P&gt;&lt;P&gt;              'You dont have authorization to change' INPUT.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem with the above code is that for the case of MM01 it will not work as you are trying to enter a value in BISMT field and the exit is triggered in PAI event.. where in the field exit there is already a value in INPUT field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please help me in finding a way how to resolve this issue ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You,&lt;/P&gt;&lt;P&gt;Suresh..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Aug 2006 00:21:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-10T00:21:08Z</dc:date>
    <item>
      <title>Field Exit Debugging</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-exit-debugging/m-p/1534069#M243764</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;&lt;/P&gt;&lt;P&gt;Is it possible to debug a field exit ?? If so please let me know how ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You,&lt;/P&gt;&lt;P&gt;Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2006 00:00:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-exit-debugging/m-p/1534069#M243764</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-10T00:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: Field Exit Debugging</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-exit-debugging/m-p/1534070#M243765</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;NO its not possible to debugg a field exit.&lt;/P&gt;&lt;P&gt;Give ERROR message and see if the field exit is trigged&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://searchsap.techtarget.com/expert/KnowledgebaseAnswer/0,289625,sid21_gci1147842,00.html" target="test_blank"&gt;http://searchsap.techtarget.com/expert/KnowledgebaseAnswer/0,289625,sid21_gci1147842,00.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;VJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2006 00:03:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-exit-debugging/m-p/1534070#M243765</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-10T00:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: Field Exit Debugging</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-exit-debugging/m-p/1534071#M243766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The requirement i am working on is for transaction MM01 if the field BISMT is blank then they can enter a value when its called from the workflow inbox. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wrote the code in the field exit:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF SY-TCODE = 'MM01'.&lt;/P&gt;&lt;P&gt;    IF NOT INPUT IS INITIAL.&lt;/P&gt;&lt;P&gt;      OUTPUT = INPUT.&lt;/P&gt;&lt;P&gt;      AUTHORITY-CHECK OBJECT 'ZMDOLDMAT' ID 'BISMT' FIELD INPUT&lt;/P&gt;&lt;P&gt;                                         ID 'ACTVT' FIELD INPUT.&lt;/P&gt;&lt;P&gt;      IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;      ELSE.&lt;/P&gt;&lt;P&gt;        MESSAGE E009(ZMD) WITH&lt;/P&gt;&lt;P&gt;                'You dont have authorization to change' INPUT.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ELSEIF SY-TCODE = 'MM02'.&lt;/P&gt;&lt;P&gt;    OUTPUT = INPUT.&lt;/P&gt;&lt;P&gt;    AUTHORITY-CHECK OBJECT 'ZMDOLDMAT' ID 'BISMT' FIELD INPUT&lt;/P&gt;&lt;P&gt;                                       ID 'ACTVT' FIELD INPUT.&lt;/P&gt;&lt;P&gt;    IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      MESSAGE E009(ZMD) WITH&lt;/P&gt;&lt;P&gt;              'You dont have authorization to change' INPUT.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem with the above code is that for the case of MM01 it will not work as you are trying to enter a value in BISMT field and the exit is triggered in PAI event.. where in the field exit there is already a value in INPUT field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please help me in finding a way how to resolve this issue ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You,&lt;/P&gt;&lt;P&gt;Suresh..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2006 00:21:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-exit-debugging/m-p/1534071#M243766</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-10T00:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: Field Exit Debugging</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-exit-debugging/m-p/1534072#M243767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is it a mandatory field? If in MM01 if there is no entry do u want to throw error?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2006 00:29:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-exit-debugging/m-p/1534072#M243767</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-10T00:29:39Z</dc:date>
    </item>
  </channel>
</rss>

