<?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: Table control condition  ??Hi in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-condition-hi/m-p/6067151#M1354907</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;In PAI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at itab.&lt;/P&gt;&lt;P&gt;field itab-v_date module check_date.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in program.&lt;/P&gt;&lt;P&gt;module check_date.&lt;/P&gt;&lt;P&gt;if tc-current_line = 1.&lt;/P&gt;&lt;P&gt;if itab-v_date is initial.&lt;/P&gt;&lt;P&gt;v_date = itab-v_date.&lt;/P&gt;&lt;P&gt;message 'Please enter a Valid Date'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;elseif itab-v_date &amp;lt;&amp;gt; v_date.&lt;/P&gt;&lt;P&gt;message 'Please enter the same date as you entered in the First row' type 'E'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endmodule.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in top include declare a variable to &lt;STRONG&gt;V_date&lt;/STRONG&gt; to capture the first entered Date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will serve your purpose&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Aug 2009 03:24:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-08-27T03:24:07Z</dc:date>
    <item>
      <title>Table control condition  ??Hi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-condition-hi/m-p/6067149#M1354905</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;I have a TableControl Having 4 columns and the Last Column is date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is The Date field should not be blank ( if i left blank, it will fire a message To fill Date ) &lt;/P&gt;&lt;P&gt;                      and the Date field of 2ndrow must be same like the Datefield -1st Row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Condition 1&lt;/STRONG&gt;&lt;/U&gt; --if i enter a date ( &lt;STRONG&gt;22.03.2009&lt;/STRONG&gt; ) in the &lt;U&gt;&lt;STRONG&gt;Datefield-1st row&lt;/STRONG&gt;&lt;/U&gt;  and didnt enter the datefield in 2nd row- &lt;/P&gt;&lt;P&gt;                           MESSAGE that would be fired------  Pls enter the date .&lt;/P&gt;&lt;P&gt;&lt;U&gt;*condition 2&lt;/U&gt;* ---  if i enter the date ( &lt;STRONG&gt;22.03.2009&lt;/STRONG&gt; ) in the &lt;U&gt;&lt;STRONG&gt;Datefield-1st row&lt;/STRONG&gt;&lt;/U&gt;  and DIFFERENT  DATE in  2nd row-Date field .&lt;/P&gt;&lt;P&gt;                          MESSAGE that would be fired  -&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;  pls enter same date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code is like below..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IN PAI ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When 'enter' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if Screenfield-Date is not initial .&lt;/P&gt;&lt;P&gt;    it_date = screenfield-date.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;message ' enter the date ' .&lt;/P&gt;&lt;P&gt;endif..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But am confused For the condition -to Enter Same Date.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2009 13:29:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-condition-hi/m-p/6067149#M1354905</guid>
      <dc:creator>NR_Ranasingh</dc:creator>
      <dc:date>2009-08-26T13:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: Table control condition  ??Hi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-condition-hi/m-p/6067150#M1354906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  Try like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Create a global variable like gv_previous this you have to do in top include.&lt;/P&gt;&lt;P&gt;2. Add code like below&lt;/P&gt;&lt;P&gt;{code]&lt;/P&gt;&lt;P&gt;IN PAI ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When 'enter' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if Screenfield-Date is not initial .&lt;/P&gt;&lt;P&gt;it_date = screenfield-date.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;message ' enter the date ' .&lt;/P&gt;&lt;P&gt;endif..&lt;/P&gt;&lt;P&gt;if not gv_previous is initial and gv_previous &amp;lt;&amp;gt; screenfield-Date.&lt;/P&gt;&lt;P&gt; message 'Date should be same as for row 1'.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt; gv_previous = screenfield-date.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;{code}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Himanshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2009 18:46:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-condition-hi/m-p/6067150#M1354906</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-26T18:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: Table control condition  ??Hi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-condition-hi/m-p/6067151#M1354907</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;In PAI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at itab.&lt;/P&gt;&lt;P&gt;field itab-v_date module check_date.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in program.&lt;/P&gt;&lt;P&gt;module check_date.&lt;/P&gt;&lt;P&gt;if tc-current_line = 1.&lt;/P&gt;&lt;P&gt;if itab-v_date is initial.&lt;/P&gt;&lt;P&gt;v_date = itab-v_date.&lt;/P&gt;&lt;P&gt;message 'Please enter a Valid Date'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;elseif itab-v_date &amp;lt;&amp;gt; v_date.&lt;/P&gt;&lt;P&gt;message 'Please enter the same date as you entered in the First row' type 'E'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endmodule.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in top include declare a variable to &lt;STRONG&gt;V_date&lt;/STRONG&gt; to capture the first entered Date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will serve your purpose&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2009 03:24:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-condition-hi/m-p/6067151#M1354907</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-27T03:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: Table control condition  ??Hi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-condition-hi/m-p/6067152#M1354908</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;thnks for ur reply ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not gv_previous is initial and &lt;STRONG&gt;gv_previous screenfield-Date.&lt;/STRONG&gt;  ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wht is this condition   ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2009 05:28:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-condition-hi/m-p/6067152#M1354908</guid>
      <dc:creator>NR_Ranasingh</dc:creator>
      <dc:date>2009-08-27T05:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: Table control condition  ??Hi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-condition-hi/m-p/6067153#M1354909</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 think Himanshu meant 'NE'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

if not gv_previous is initial and gv_previous NE screenfield-Date.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2009 08:55:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-condition-hi/m-p/6067153#M1354909</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-27T08:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: Table control condition  ??Hi</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-condition-hi/m-p/6067154#M1354910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes, i did declare a global variable to capture the first Value of date and then just assign that date to next date fields in table control .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for all your support&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Feb 2010 18:34:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-condition-hi/m-p/6067154#M1354910</guid>
      <dc:creator>NR_Ranasingh</dc:creator>
      <dc:date>2010-02-07T18:34:49Z</dc:date>
    </item>
  </channel>
</rss>

