<?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: After Getting Error on Screen Changing the same screen data in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/after-getting-error-on-screen-changing-the-same-screen-data/m-p/6623754#M1440809</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 do it using CHAIN...ENDCHAIN.&lt;/P&gt;&lt;P&gt;In the main screen flow logic,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PROCESS BEFORE OUTPUT.
 MODULE STATUS_1000.

PROCESS AFTER INPUT.
 CHAIN.
  FIELD : field1 MODULE check-field1,
              field2 MODULE check-field2,
              field3 MODULE check-field3.
 ENDCHAIN.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now write the code for these modules in F01 include.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;MODULE check-field1 INPUT.

  SELECT SINGLE field1
    FROM ztable
    INTO lv_field1
    WHERE field1 = ztable-field1.

  IF sy-subrc = 0.
    MESSAGE 'field1 already exists' TYPE 'E'.
  ENDIF.

ENDMODULE.                 " check-field1 INPUT&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Feb 2010 04:32:02 GMT</pubDate>
    <dc:creator>sridhar_meesala</dc:creator>
    <dc:date>2010-02-19T04:32:02Z</dc:date>
    <item>
      <title>After Getting Error on Screen Changing the same screen data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/after-getting-error-on-screen-changing-the-same-screen-data/m-p/6623752#M1440807</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 am populating error message  in module pool program . I want to edit the fields in the same screen currently it is nor allowing . &lt;/P&gt;&lt;P&gt;I use the CHAIN  and ENDCHAIN also .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my module pool screen i selecting some records if records contains different data the it is populating the error after that in the same screen i want to change the data .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regrads&lt;/P&gt;&lt;P&gt;Nandan.N&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2010 06:59:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/after-getting-error-on-screen-changing-the-same-screen-data/m-p/6623752#M1440807</guid>
      <dc:creator>SrihariNerella</dc:creator>
      <dc:date>2010-02-18T06:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: After Getting Error on Screen Changing the same screen data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/after-getting-error-on-screen-changing-the-same-screen-data/m-p/6623753#M1440808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you using chain. endchain. with the field you want to have the end user fill in:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;Chain.&lt;/P&gt;&lt;P&gt;  field: field1, field2, field3.&lt;/P&gt;&lt;P&gt;    module error_check.&lt;/P&gt;&lt;P&gt;endchain.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2010 14:23:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/after-getting-error-on-screen-changing-the-same-screen-data/m-p/6623753#M1440808</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-18T14:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: After Getting Error on Screen Changing the same screen data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/after-getting-error-on-screen-changing-the-same-screen-data/m-p/6623754#M1440809</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 do it using CHAIN...ENDCHAIN.&lt;/P&gt;&lt;P&gt;In the main screen flow logic,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PROCESS BEFORE OUTPUT.
 MODULE STATUS_1000.

PROCESS AFTER INPUT.
 CHAIN.
  FIELD : field1 MODULE check-field1,
              field2 MODULE check-field2,
              field3 MODULE check-field3.
 ENDCHAIN.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now write the code for these modules in F01 include.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;MODULE check-field1 INPUT.

  SELECT SINGLE field1
    FROM ztable
    INTO lv_field1
    WHERE field1 = ztable-field1.

  IF sy-subrc = 0.
    MESSAGE 'field1 already exists' TYPE 'E'.
  ENDIF.

ENDMODULE.                 " check-field1 INPUT&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2010 04:32:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/after-getting-error-on-screen-changing-the-same-screen-data/m-p/6623754#M1440809</guid>
      <dc:creator>sridhar_meesala</dc:creator>
      <dc:date>2010-02-19T04:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: After Getting Error on Screen Changing the same screen data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/after-getting-error-on-screen-changing-the-same-screen-data/m-p/6623755#M1440810</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 am getting the data into internal table. Then i am populating the data in  PBO event in Display mode . I am selecting some data on that screen. Then i given validation in the screen . After getting error message they do not want go back in the same screen they want to change .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the &lt;/P&gt;&lt;P&gt;Chain .&lt;/P&gt;&lt;P&gt;Filed w_final-mark.&lt;/P&gt;&lt;P&gt; Endchain .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it is not allowing to change the fields .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Nandan.N&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Feb 2010 11:46:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/after-getting-error-on-screen-changing-the-same-screen-data/m-p/6623755#M1440810</guid>
      <dc:creator>SrihariNerella</dc:creator>
      <dc:date>2010-02-20T11:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: After Getting Error on Screen Changing the same screen data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/after-getting-error-on-screen-changing-the-same-screen-data/m-p/6623756#M1440811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srihari,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case follow the following code,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT.&lt;/P&gt;&lt;P&gt;CHAIN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  FIELD: FIELD_01 MODULE CHECK_FIELD_01,&lt;/P&gt;&lt;P&gt;             FIELD_02 MODULE CHECK_FIELD_02,&lt;/P&gt;&lt;P&gt;             FIELD_03 MODULE CHECK_FIELD_03,&lt;/P&gt;&lt;P&gt;             FIELD_04 MODULE CHECK_FIELD_04.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDCHAIN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Write your validations for the screen&lt;/SPAN&gt; &lt;STRONG&gt;FIELD_01&lt;/STRONG&gt; &lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;in the &lt;/SPAN&gt; &lt;STRONG&gt;MODULE CHECK_FIELD_01&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;so when you enter data in this field it enters this Module and checks the validations, if value passes the validation then the cursor moves to the next field (i.e. Field_02) otherwise if it fails the validation &amp;amp; you have specified the message type as 'E' then it waits on the same field of the screen till a correct value is entered.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abhijit G. Borkar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2010 11:23:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/after-getting-error-on-screen-changing-the-same-screen-data/m-p/6623756#M1440811</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-22T11:23:19Z</dc:date>
    </item>
  </channel>
</rss>

