<?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: if initial in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/if-initial/m-p/11904077#M1962541</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No of course&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should merge them in a big range&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DATA: R_KUNNR TYPE RANGE OF KNA1-KUNNR.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;LOOP AT S_KUNNR &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; APPEND S_KUNNR TO R_KUNNR.&lt;/P&gt;
&lt;P&gt;ENDLOOP.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;LOOP AT S_LIFNR &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; APPEND S_LIFNR TO R_KUNNR.&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;SELECT * FROM ZTABLE WHERE KUNNR IN R_KUNNR&lt;/P&gt;
&lt;P&gt;............................................&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but you have to check those two select-options are not in conflict&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Sep 2016 16:27:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2016-09-15T16:27:39Z</dc:date>
    <item>
      <title>if initial</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/if-initial/m-p/11904074#M1962538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i want the condition like this &lt;STRONG&gt;If S_CUST is&amp;nbsp; initial and S_VEND is intial...&lt;/STRONG&gt;i&amp;nbsp; want satisfy both in single if condition.i mean what is exact statement &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for example if i am&amp;nbsp; giving value in selection scree for Customer it should go to my ELSE select statement for vendor also same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2016 15:47:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/if-initial/m-p/11904074#M1962538</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-09-15T15:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: if initial</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/if-initial/m-p/11904075#M1962539</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 suppose your S_CUST and S_VEND are select-options.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;In that case &lt;/P&gt;&lt;P&gt;IF S_CUST[] IS INITIAL AND S_VEND[] IS INITIAL.&lt;/P&gt;&lt;P&gt;&amp;nbsp; "Do code with empty input for Customer AND for Vendor&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt; " If you're giving value in selection screen for Customer OR for Vendor&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;&lt;/P&gt;&lt;P&gt;Hope to help&lt;/P&gt;&lt;P&gt;Bye&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2016 16:01:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/if-initial/m-p/11904075#M1962539</guid>
      <dc:creator>roberto_vacca2</dc:creator>
      <dc:date>2016-09-15T16:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: if initial</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/if-initial/m-p/11904076#M1962540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Roberto,&lt;/P&gt;&lt;P&gt;Thank for Your Reply,can i write like this in my select statement where condition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from ztable into it &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; wher bukrs &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;ist_bseg&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;bukrs&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and &lt;SPAN style="font-size: 10pt;"&gt;kunnr &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 10pt;"&gt;IN &lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;s_cust &lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-size: 10pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;s_vend&lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-size: 10pt;"&gt;).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ramu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2016 16:14:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/if-initial/m-p/11904076#M1962540</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-09-15T16:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: if initial</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/if-initial/m-p/11904077#M1962541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No of course&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should merge them in a big range&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DATA: R_KUNNR TYPE RANGE OF KNA1-KUNNR.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;LOOP AT S_KUNNR &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; APPEND S_KUNNR TO R_KUNNR.&lt;/P&gt;
&lt;P&gt;ENDLOOP.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;LOOP AT S_LIFNR &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; APPEND S_LIFNR TO R_KUNNR.&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;SELECT * FROM ZTABLE WHERE KUNNR IN R_KUNNR&lt;/P&gt;
&lt;P&gt;............................................&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but you have to check those two select-options are not in conflict&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2016 16:27:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/if-initial/m-p/11904077#M1962541</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-09-15T16:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: if initial</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/if-initial/m-p/11904078#M1962542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or check out the APPEND LINES OF syntax &lt;SPAN __jive_emoticon_name="wink" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/108/images/emoticons/wink.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2016 19:09:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/if-initial/m-p/11904078#M1962542</guid>
      <dc:creator>Patrick_vN</dc:creator>
      <dc:date>2016-09-15T19:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: if initial</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/if-initial/m-p/11904079#M1962543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ramu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use them directly in your select statement! However, you need to write like this:&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;select * from ztable into it&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; where bukrs &lt;SPAN class="L0S55" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;= &lt;/SPAN&gt;ist_bseg&lt;SPAN class="L0S70" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;-&lt;/SPAN&gt;bukrs&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and (&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit; background: transparent;"&gt;kunnr &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit; background: transparent;"&gt;IN &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit; background: transparent;"&gt;s_cust &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; or kunnr IN&lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-family: inherit; font-weight: inherit; font-style: inherit; font-size: 10pt; background: transparent;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: inherit; font-weight: inherit; font-style: inherit; font-size: 10pt; background: transparent;"&gt;s_vend&lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-family: inherit; font-weight: inherit; font-style: inherit; font-size: 10pt; background: transparent;"&gt;).&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN class="L0S55" style="font-family: inherit; font-weight: inherit; font-style: inherit; font-size: 10pt; background: transparent;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN class="L0S55" style="font-family: inherit; font-weight: inherit; font-style: inherit; font-size: 10pt; background: transparent;"&gt;Also make sure that your ranges are not empty, otherwise all the data from you ztable will be retrieved.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2016 21:22:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/if-initial/m-p/11904079#M1962543</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-09-15T21:22:10Z</dc:date>
    </item>
  </channel>
</rss>

