<?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 statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/chain-statement/m-p/2714896#M629591</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pradeep.&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Chain and End Chain is the set of field of PAI Event in Module pool.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;It can be used in Flow Logic in Module pool.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;It is used to  After Error message came to enable particular fields in screen&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;***********&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PAI:&lt;/P&gt;&lt;P&gt;*****&lt;/P&gt;&lt;P&gt; CHAIN.&lt;/P&gt;&lt;P&gt;    FIELD: ZMARA-MATRN.&lt;/P&gt;&lt;P&gt; ENDCHAIN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u use any error message in PAI, these coding will use to you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Aug 2007 05:10:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-20T05:10:17Z</dc:date>
    <item>
      <title>chain statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/chain-statement/m-p/2714891#M629586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what do chain - endchain  statement do?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2007 04:45:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/chain-statement/m-p/2714891#M629586</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-20T04:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: chain statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/chain-statement/m-p/2714892#M629587</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;The CHAIN and ENDCHAIN statement controls a set of fields in PAI event of screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To ensure that one or more PAI modules are only called when several screen fields meet a particular condition, you must combine the calls in the flow logic to form a processing chain. You define processing chains as follows:&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;ENDCHAIN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All flow logic statements between CHAIN and ENDCHAIN belong to a processing chain. The fields in the various FIELD statements are combined, and can be used in shared conditions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHAIN.&lt;/P&gt;&lt;P&gt;FIELD: &amp;lt;f1&amp;gt;, &amp;lt;f 2&amp;gt;,... &lt;/P&gt;&lt;P&gt;MODULE &amp;lt;mod1&amp;gt; ON CHAIN-INPUT|CHAIN-REQUEST.&lt;/P&gt;&lt;P&gt;FIELD: &amp;lt;g1&amp;gt;, &amp;lt;g 2&amp;gt;,... &lt;/P&gt;&lt;P&gt;MODULE &amp;lt;mod2&amp;gt; ON CHAIN-INPUT|CHAIN-REQUEST.&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;All flow logic statements between CHAIN and ENDCHAIN belong to a processing chain. The fields in the various FIELD statements are combined, and can be used in shared conditions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHAIN.&lt;/P&gt;&lt;P&gt;FIELD: &amp;lt;f1&amp;gt;, &amp;lt;f 2&amp;gt;,... &lt;/P&gt;&lt;P&gt;MODULE &amp;lt;mod1&amp;gt; ON CHAIN-INPUT|CHAIN-REQUEST.&lt;/P&gt;&lt;P&gt;FIELD: &amp;lt;g1&amp;gt;, &amp;lt;g 2&amp;gt;,... &lt;/P&gt;&lt;P&gt;MODULE &amp;lt;mod2&amp;gt; ON CHAIN-INPUT|CHAIN-REQUEST.&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;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3335517"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When this command is used, all of the fields on the screen that belong to the processing chain (all of the fields listed in the field statements) are made ready for input again. Other fields are not ready for input. Whenever the MODULE statement appears within a processing chain, even if there is only one FIELD attached to it, all of the fields in the chain (not only the affected field) are made ready for input again, allowing the user to enter new values. If the fields in the processing chain are only checked once, the PAI processing continues directly after the FIELD statement, and the preceding modules are not called again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHAIN.&lt;/P&gt;&lt;P&gt;FIELD: &amp;lt;f1&amp;gt;, &amp;lt;f 2&amp;gt;,... &lt;/P&gt;&lt;P&gt;MODULE &amp;lt;mod1&amp;gt; ON CHAIN-INPUT|CHAIN-REQUEST.&lt;/P&gt;&lt;P&gt;FIELD: &amp;lt;g1&amp;gt;, &amp;lt;g 2&amp;gt;,... &lt;/P&gt;&lt;P&gt;MODULE &amp;lt;mod2&amp;gt; ON CHAIN-INPUT|CHAIN-REQUEST.&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;Check this out&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbabbd35c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbabbd35c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/d1/801ca2454211d189710000e8322d00/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/d1/801ca2454211d189710000e8322d00/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Sample Code&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS BEFORE OUTPUT.&lt;/P&gt;&lt;P&gt;  MODULE INIT_SCREEN_100.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT.&lt;/P&gt;&lt;P&gt;  MODULE CANCEL AT EXIT-COMMAND.&lt;/P&gt;&lt;P&gt;  CHAIN.&lt;/P&gt;&lt;P&gt;    FIELD: INPUT1, INPUT2.&lt;/P&gt;&lt;P&gt;    MODULE MODULE_1 ON CHAIN-INPUT.&lt;/P&gt;&lt;P&gt;    FIELD  INPUT3 MODULE MODULE_* ON *-INPUT.&lt;/P&gt;&lt;P&gt;    MODULE MODULE_2 ON CHAIN-REQUEST.&lt;/P&gt;&lt;P&gt;  ENDCHAIN.&lt;/P&gt;&lt;P&gt;  FIELD INPUT1 MODULE C1 AT CURSOR-SELECTION.&lt;/P&gt;&lt;P&gt;  CHAIN.&lt;/P&gt;&lt;P&gt;    FIELD: INPUT2, INPUT3.&lt;/P&gt;&lt;P&gt;    MODULE C2 AT CURSOR-SELECTION.&lt;/P&gt;&lt;P&gt;  ENDCHAIN.&lt;/P&gt;&lt;P&gt;  MODULE CURSOR AT CURSOR-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Padmam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2007 04:50:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/chain-statement/m-p/2714892#M629587</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-20T04:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: chain statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/chain-statement/m-p/2714893#M629588</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;FIELD and MODULE are used to monitor a field on the screen and then on INPUT or ON REQUEST you would like to execute a module where in you want to validate the value and if there is an error you will raise an error message using MESSAGE statement and mesage type 'E'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So when you raise an error message from this module only this field will be made editable, I mean open for edit, rest all will be non-editable this is to make sure that you correct yor error for these field before you make entries in other fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similarly if you want to monitor a group of fields on the screen and then on error want only this group of screen fields to be editable so that error is resolved. Then you need to use CHAIN and ENDCHAIN to group these fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHAIN.&lt;/P&gt;&lt;P&gt;FIELD FLD1.&lt;/P&gt;&lt;P&gt;FIELD FLD2.&lt;/P&gt;&lt;P&gt;FIELD FLD3.&lt;/P&gt;&lt;P&gt;MODULE validate_input ON CHAIN-INPUT.&lt;/P&gt;&lt;P&gt;ENDCHAIN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aRs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2007 04:50:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/chain-statement/m-p/2714893#M629588</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-08-20T04:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: chain statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/chain-statement/m-p/2714894#M629589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Chain and EndChain blocks group input fields and modules for validation. Different user commands are checked in a case/endcase block of a PAI. &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;Field: planfli-cityfrom, planfli-cityto, actfli-fldate, planfli-carrid. &lt;/P&gt;&lt;P&gt;Module action_request. &lt;/P&gt;&lt;P&gt;EndChain. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sometimes you want to check several fields as a group. To do this, include the fields in a FIELD statement, and enclose everything in a CHAIN-ENDCHAIN block. Example **** Screen flow logic: **** CHAIN. FIELD: SPFLI-CARRID, SPFLI-CONNID. MODULE CHECK_FLIGHT. ENDCHAIN. When an error is found inside a chain, the screen is re-displayed, and all fields found anywhere in the chain are input-enabled. All non-chain fields remain disabled. How can you test flow logic? Check function checks the syntax,data-consisteny and screen layout of the screen. To test the syntax, from the menu path choose screen--&lt;DEL&gt;&amp;gt;check&lt;/DEL&gt;--&lt;DEL&gt;-&amp;gt; syntax. To test the data consistency, from the menu path choose screen&lt;/DEL&gt;&lt;DEL&gt;&amp;gt;check&lt;/DEL&gt;--&lt;DEL&gt;&amp;gt; consistency. To check the layout,from ythe menu path choose screen&lt;/DEL&gt;&lt;DEL&gt;-&amp;gt;check&lt;/DEL&gt;---&amp;gt;layout.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2007 04:51:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/chain-statement/m-p/2714894#M629589</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-20T04:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: chain statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/chain-statement/m-p/2714895#M629590</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;chain ......... endchain statement provides the user to use a no. of validations. in module pool programming we can have validations at flow logic level using FIELD ST. using field st we can have only one validation to perform at a time.&lt;/P&gt;&lt;P&gt;if there is any requirement for us to do a no.of validation then in such no.of . validations can be given as a group using CHAIN..........ENDCHAIN st.&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;if helpful reward some points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;Suresh Aluri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2007 05:01:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/chain-statement/m-p/2714895#M629590</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-20T05:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: chain statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/chain-statement/m-p/2714896#M629591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pradeep.&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Chain and End Chain is the set of field of PAI Event in Module pool.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;It can be used in Flow Logic in Module pool.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;It is used to  After Error message came to enable particular fields in screen&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;***********&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PAI:&lt;/P&gt;&lt;P&gt;*****&lt;/P&gt;&lt;P&gt; CHAIN.&lt;/P&gt;&lt;P&gt;    FIELD: ZMARA-MATRN.&lt;/P&gt;&lt;P&gt; ENDCHAIN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u use any error message in PAI, these coding will use to you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2007 05:10:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/chain-statement/m-p/2714896#M629591</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-20T05:10:17Z</dc:date>
    </item>
  </channel>
</rss>

