<?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: chain-endchain in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/chain-endchain/m-p/3934192#M941692</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a read of [Conditional Module Calls|http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbabbd35c111d1829f0000e829fbfe/content.htm] and you will see that this is the expected behaviour... but why are these inside the table control loop?  Why not, instead, just have:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CHAIN.
  FIELD: 
    field1,
    field2.
    MODULE validate_1000.
ENDCHAIN.
LOOP AT gt_maint_plan.
  MODULE get_data_frm_tc.
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;... And if field1 &amp;amp; field2 are mandatory, can't you just flag them as obligatory in their field attributes...?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 May 2008 12:41:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-27T12:41:40Z</dc:date>
    <item>
      <title>chain-endchain</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/chain-endchain/m-p/3934191#M941691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;i have written the following code in PAI event&lt;/P&gt;&lt;P&gt;LOOP AT gt_maint_plan.&lt;/P&gt;&lt;P&gt;CHAIN.&lt;/P&gt;&lt;P&gt;FIELD: field1,&lt;/P&gt;&lt;P&gt;field2.&lt;/P&gt;&lt;P&gt;MODULE validate_1000 ON CHAIN-REQUEST.&lt;/P&gt;&lt;P&gt;MODULE get_data_frm_tc.&lt;/P&gt;&lt;P&gt;ENDCHAIN.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In which field1 and field2 are mandatory fields.&lt;/P&gt;&lt;P&gt;the validations i wrote in MODULE validate_1000 ON CHAIN-REQUEST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now my issue is ..if iam not entering field1 and field2 ,,&lt;/P&gt;&lt;P&gt;iam not getting the error message.&lt;/P&gt;&lt;P&gt;the control is not going to the VAlidation module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;shilpa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2008 11:58:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/chain-endchain/m-p/3934191#M941691</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-27T11:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: chain-endchain</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/chain-endchain/m-p/3934192#M941692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a read of [Conditional Module Calls|http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbabbd35c111d1829f0000e829fbfe/content.htm] and you will see that this is the expected behaviour... but why are these inside the table control loop?  Why not, instead, just have:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CHAIN.
  FIELD: 
    field1,
    field2.
    MODULE validate_1000.
ENDCHAIN.
LOOP AT gt_maint_plan.
  MODULE get_data_frm_tc.
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;... And if field1 &amp;amp; field2 are mandatory, can't you just flag them as obligatory in their field attributes...?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2008 12:41:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/chain-endchain/m-p/3934192#M941692</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-27T12:41:40Z</dc:date>
    </item>
    <item>
      <title>Re: chain-endchain</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/chain-endchain/m-p/3934193#M941693</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;&lt;/P&gt;&lt;P&gt;CHAIN.&lt;/P&gt;&lt;P&gt;FIELD: field1,&lt;/P&gt;&lt;P&gt;field2.&lt;/P&gt;&lt;P&gt;MODULE validate_1000.&lt;/P&gt;&lt;P&gt;ENDCHAIN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here, y u keeping loop and endloop&lt;/P&gt;&lt;P&gt;What is your exact requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This code mainly for : If you display any error message, the reamaining fields will be disabled. to avoid this, we need to keep them in chain..endchain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to make them mandatory, wen you create the screen, when click on the field, one popup wil come. there in Program tab one option will be there : Input ...select this as REQUIRED.&lt;/P&gt;&lt;P&gt;so, default error message wil come.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Sandeep REddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2008 14:31:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/chain-endchain/m-p/3934193#M941693</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-27T14:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: chain-endchain</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/chain-endchain/m-p/3934194#M941694</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 try like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;********************************&lt;/P&gt;&lt;P&gt;CHAIN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  field FIELD1 module chk1.&lt;/P&gt;&lt;P&gt;  field FIELD2 module chk2.&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;LOOP AT gt_maint_plan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE get_data_frm_tc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write your validations and error messages in the modules CHK1 and CHK2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpful.&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;Syed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2008 06:43:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/chain-endchain/m-p/3934194#M941694</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-28T06:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: chain-endchain</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/chain-endchain/m-p/3934195#M941695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;I did the same thing but the error message is not coming.&lt;/P&gt;&lt;P&gt;In the screen the fields r showing as mandatory fields,&lt;/P&gt;&lt;P&gt;but when i click enter, iam not getting the error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;kirthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2008 10:24:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/chain-endchain/m-p/3934195#M941695</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-28T10:24:04Z</dc:date>
    </item>
  </channel>
</rss>

