<?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/3020111#M713941</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 have a requirement to put validation to the fields of transaction F-28. My requirement is :&lt;/P&gt;&lt;P&gt;I have to put validation like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 2 fields Reason code field and Xref2 field.&lt;/P&gt;&lt;P&gt;I have to check reason code field, if it is not empty then xref2 field should not be blank. I dont have parameter id's also for these fields. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So how to do validation using field exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Haritha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Nov 2007 15:24:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-13T15:24:56Z</dc:date>
    <item>
      <title>Field Exits</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-exits/m-p/3020111#M713941</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 have a requirement to put validation to the fields of transaction F-28. My requirement is :&lt;/P&gt;&lt;P&gt;I have to put validation like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 2 fields Reason code field and Xref2 field.&lt;/P&gt;&lt;P&gt;I have to check reason code field, if it is not empty then xref2 field should not be blank. I dont have parameter id's also for these fields. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So how to do validation using field exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Haritha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2007 15:24:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-exits/m-p/3020111#M713941</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-13T15:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: Field Exits</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-exits/m-p/3020112#M713942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Haritha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can do this with validation (transaction GGB0). Let me know if you need more help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ec&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2007 15:28:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-exits/m-p/3020112#M713942</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2007-11-13T15:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: Field Exits</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-exits/m-p/3020113#M713943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to create field exits for both.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field exit for the reason code would be like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;if input is not initial.
  l_reason = input.
  export L_reason to memory id 'ZF28'.
endif.
output = input.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the field exit of the XREF2, check the value of the L_REASON from the memory.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IMPORT L_REASON TO MEMORY ID 'ZF28'.
IF NOT L_REASON IS INITIAL.
* ... CHECK THE VALUE OF THE XREF2
ENDIF.
FREE MEMORY ID 'ZF28'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both L_REASON should have a same data definition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't tried this one.. but you can try it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2007 15:30:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-exits/m-p/3020113#M713943</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2007-11-13T15:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: Field Exits</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-exits/m-p/3020114#M713944</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;You can use FM DYNP_VALUES_READ to read value of Reason code and Xref2 field values. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to pass program name , screen number and field name to the above FM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2007 15:31:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-exits/m-p/3020114#M713944</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-13T15:31:38Z</dc:date>
    </item>
  </channel>
</rss>

