<?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: Select Statements in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statements/m-p/3413467#M819824</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 coulnt get the syntax clear coz spart is from vbap table and the other fields are from vbak...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried using OR instead of AND..it shows the error like this ' the column name spart has two meanings..abap/4 open sql statement.'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stalin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Feb 2008 17:49:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-12T17:49:47Z</dc:date>
    <item>
      <title>Select Statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statements/m-p/3413463#M819820</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;How can I fetch values for parameters...is the select statements right....how can i use ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options : s_vbeln for vbak-vbeln.&lt;/P&gt;&lt;P&gt; Parameters    : s_vkorg(10),&lt;/P&gt;&lt;P&gt;                 s_vtweg(10),&lt;/P&gt;&lt;P&gt;                 s_spart(10).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initialization.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select a&lt;SUB&gt;vbeln a&lt;/SUB&gt;auart a&lt;SUB&gt;netwr a&lt;/SUB&gt;waerk b&lt;SUB&gt;zmeng b&lt;/SUB&gt;zieme b&lt;SUB&gt;posnr b&lt;/SUB&gt;matnr&lt;/P&gt;&lt;P&gt;into table itab from vbak as a inner join vbap as b on b~vbeln =&lt;/P&gt;&lt;P&gt;a&lt;SUB&gt;vbeln where a&lt;/SUB&gt;vbeln in s_vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select vbeln auart netwr waerk from vbak into table itab where&lt;/P&gt;&lt;P&gt;                                               vkorg = s_vkorg and&lt;/P&gt;&lt;P&gt;                                               vtweg = s_vtweg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select zmeng zieme posnr matnr from vbap into table itab where&lt;/P&gt;&lt;P&gt; spart = s_spart.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2008 16:33:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statements/m-p/3413463#M819820</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-12T16:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: Select Statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statements/m-p/3413464#M819821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;put in where condition&lt;/P&gt;&lt;P&gt; where vblen in s_vbeln&lt;/P&gt;&lt;P&gt;thnkx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2008 16:37:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statements/m-p/3413464#M819821</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-12T16:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: Select Statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statements/m-p/3413465#M819822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select a~vbeln  a~auart a~netwr a~waerk b~zmeng 
          b~zieme b~posnr b~matnr
            into table itab 
           from vbak as a inner join vbap as b on b~vbeln = a~vbeln 
                 where a~vbeln in s_vbeln 
                    and a~vkorg = s_vkorg
                    and a~vtweg = s_vtweg
                    and a~spart  = s_spart&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2008 16:41:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statements/m-p/3413465#M819822</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-12T16:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: Select Statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statements/m-p/3413466#M819823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ya ur select statement is right .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2008 16:42:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statements/m-p/3413466#M819823</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-12T16:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: Select Statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statements/m-p/3413467#M819824</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 coulnt get the syntax clear coz spart is from vbap table and the other fields are from vbak...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried using OR instead of AND..it shows the error like this ' the column name spart has two meanings..abap/4 open sql statement.'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stalin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2008 17:49:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statements/m-p/3413467#M819824</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-12T17:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: Select Statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statements/m-p/3413468#M819825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select a~vbeln  a~auart a~netwr a~waerk b~zmeng 
          b~zieme b~posnr b~matnr
            into table itab 
           from vbak as a inner join vbap as b on b~vbeln = a~vbeln 
                 where a~vbeln in s_vbeln 
                    and a~vkorg = s_vkorg
                    and a~vtweg = s_vtweg
                    and b~spart  = s_spart&amp;lt;--------&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2008 17:54:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statements/m-p/3413468#M819825</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-12T17:54:08Z</dc:date>
    </item>
  </channel>
</rss>

