<?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: Query regarding if statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-regarding-if-statement/m-p/6422984#M1409694</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;try like this . for example&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; loop at it_final into wa_final.
   if ( wa_final-bwart eq '303' or wa_final-bwart eq '313' ).
    if sy-subrc = 0.
       contiune.
       endif.
   endif.
 endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Dec 2009 04:40:16 GMT</pubDate>
    <dc:creator>p604431</dc:creator>
    <dc:date>2009-12-08T04:40:16Z</dc:date>
    <item>
      <title>Query regarding if statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-regarding-if-statement/m-p/6422980#M1409690</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 scenario is,  I have some 5 to 6 values in my internal table itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now in, if statement, i wanted to check whether any of these values are present. if present then I have to proceed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if status_old ... &amp;lt;itab-value&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if sy-subrc = 0.&lt;/P&gt;&lt;P&gt; contiune.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is it possible to check dynamically using if statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Mani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2009 04:20:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-regarding-if-statement/m-p/6422980#M1409690</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-08T04:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: Query regarding if statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-regarding-if-statement/m-p/6422981#M1409691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You Should press F1 on IF and try to understand its use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no need of sy-subrc check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use SAP Help to solve these types of issues.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2009 04:24:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-regarding-if-statement/m-p/6422981#M1409691</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-08T04:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: Query regarding if statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-regarding-if-statement/m-p/6422982#M1409692</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;According to your scenario you need to pick one value from 5 to 6 values of internal table.&lt;/P&gt;&lt;P&gt;No need to use if statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at itab where field = value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Do you processing here.&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;Regards&lt;/P&gt;&lt;P&gt;Shriraam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2009 04:31:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-regarding-if-statement/m-p/6422982#M1409692</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-08T04:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: Query regarding if statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-regarding-if-statement/m-p/6422983#M1409693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi;&lt;/P&gt;&lt;P&gt;you should mention what want to check whether data row wise or column wise.&lt;/P&gt;&lt;P&gt;If its row wise then you wrote is correct.&lt;/P&gt;&lt;P&gt;If its column wise then you can achieve it by using field symbol like&lt;/P&gt;&lt;P&gt;ASSIGN us_file_input TO &amp;lt;lfs_input&amp;gt;. ASSIGN gs_header     TO &amp;lt;lfs_record&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*---Find the Value of 1st row only&lt;/P&gt;&lt;P&gt;  DO 16 TIMES.&lt;/P&gt;&lt;P&gt;    ASSIGN COMPONENT lv_cnt OF STRUCTURE &amp;lt;lfs_input&amp;gt; TO &amp;lt;lfs_field&amp;gt;.&lt;/P&gt;&lt;P&gt;    IF  sy-subrc   EQ 0 AND NOT&lt;/P&gt;&lt;P&gt;       &amp;lt;lfs_field&amp;gt; IS INITIAL.&lt;/P&gt;&lt;P&gt;      IF lv_cnt LT 5.&lt;/P&gt;&lt;P&gt;      ASSIGN COMPONENT lv_cnt OF STRUCTURE &amp;lt;lfs_record&amp;gt; TO &amp;lt;lfs_hfield&amp;gt;.&lt;/P&gt;&lt;P&gt;        IF sy-subrc    EQ 0 AND&lt;/P&gt;&lt;P&gt;           &amp;lt;lfs_field&amp;gt; NE &amp;lt;lfs_hfield&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the rest, there is good example in sap online help by presssing F1 on the key work ASSIGN COMPONENT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shashi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2009 04:38:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-regarding-if-statement/m-p/6422983#M1409693</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-08T04:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: Query regarding if statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-regarding-if-statement/m-p/6422984#M1409694</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;try like this . for example&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; loop at it_final into wa_final.
   if ( wa_final-bwart eq '303' or wa_final-bwart eq '313' ).
    if sy-subrc = 0.
       contiune.
       endif.
   endif.
 endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2009 04:40:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-regarding-if-statement/m-p/6422984#M1409694</guid>
      <dc:creator>p604431</dc:creator>
      <dc:date>2009-12-08T04:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: Query regarding if statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-regarding-if-statement/m-p/6422985#M1409695</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 also use READ statement to check for a particular value...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg:&lt;/P&gt;&lt;P&gt;Read table &amp;lt;itab&amp;gt; into &amp;lt;wa&amp;gt; where variable = &amp;lt;value&amp;gt;.&lt;/P&gt;&lt;P&gt;If sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your Processing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;Prateek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2009 04:40:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-regarding-if-statement/m-p/6422985#M1409695</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-08T04:40:53Z</dc:date>
    </item>
  </channel>
</rss>

