<?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: Internal table and validation query in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-and-validation-query/m-p/3539361#M851522</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 have to loop at the internal table from which you have to fetch ur data. Please refer to the sample code below. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at  &amp;lt;internal table&amp;gt;  into &amp;lt;workarea&amp;gt; where davgte LE sdate-high and davgte GE sdate-low.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Fetch ur data from &amp;lt;workarea&amp;gt;.&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;Regards,&lt;/P&gt;&lt;P&gt;Gaurav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Mar 2008 05:35:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-06T05:35:01Z</dc:date>
    <item>
      <title>Internal table and validation query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-and-validation-query/m-p/3539359#M851520</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 the foll problem:&lt;/P&gt;&lt;P&gt;I have a parameter on the selection screen called P_tarea and slect-options called s_date.i have done validations on the date to check that the from and to dates are having a gap of 5 days. i have to check the following conditions:&lt;/P&gt;&lt;P&gt;if the p_tarea field is initial. i have to fetch all the records from internal table (for the mentioned dates at selection screen)  which have an entry in the davgte field of the same table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz reply.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2008 05:25:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-and-validation-query/m-p/3539359#M851520</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-06T05:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table and validation query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-and-validation-query/m-p/3539360#M851521</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;*to validate date&lt;/P&gt;&lt;P&gt;If s_date-high  -  s_date-low  &amp;lt;  5.&lt;/P&gt;&lt;P&gt;message..&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*to retrive data&lt;/P&gt;&lt;P&gt;If p_area[] is not initial.&lt;/P&gt;&lt;P&gt;retrieve data.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2008 05:28:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-and-validation-query/m-p/3539360#M851521</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-06T05:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table and validation query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-and-validation-query/m-p/3539361#M851522</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 have to loop at the internal table from which you have to fetch ur data. Please refer to the sample code below. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at  &amp;lt;internal table&amp;gt;  into &amp;lt;workarea&amp;gt; where davgte LE sdate-high and davgte GE sdate-low.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Fetch ur data from &amp;lt;workarea&amp;gt;.&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;Regards,&lt;/P&gt;&lt;P&gt;Gaurav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2008 05:35:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-and-validation-query/m-p/3539361#M851522</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-06T05:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table and validation query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-and-validation-query/m-p/3539362#M851523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;STRONG&gt;anand chidambaram&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can diclare P_tarea is also as a select-options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;See the following code&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select-options:
               s_tarea for dtab-tarea NO-EXTENSION
                                                    NO INTERVALS,
                s_date for sy-datum.

Data w_no type i.

AT SELECTION-SCREEN.

loop at s_date.
  w_no = s_date-high - s_date-low.

  if w_no &amp;lt; 5.
     message e999 with 'Lessthan 5 day'.
  endif.

endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note&lt;/STRONG&gt; : There is no need to chech either s_tarea is initial or not because i declared it as select-options so by default if it is initial it fetch all the records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if it is useful,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Mahi&lt;/STRONG&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2008 05:35:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-and-validation-query/m-p/3539362#M851523</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-06T05:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table and validation query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-and-validation-query/m-p/3539363#M851524</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;if p_tarea field is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at internal table&lt;/P&gt;&lt;P&gt; if wa-davgte not initial.&lt;/P&gt;&lt;P&gt; append wa to another internal table.&lt;/P&gt;&lt;P&gt;endif. &lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Now your second internal table will have the required data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shibin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2008 05:36:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-and-validation-query/m-p/3539363#M851524</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-06T05:36:57Z</dc:date>
    </item>
  </channel>
</rss>

