<?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 from view in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-view/m-p/2446933#M548131</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;Yes u can if it's a database view and u can use a SELECT statament, just as for a transparent table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;V_T161 is a maitenance view, so It can't do it a select, u need to read direclty T161 and T161T.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your can u need T161T only:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT SINGLE * FROM T161T WHERE SPRAS = SY-LANGU
                                   AND BSTYP = 'F' "&amp;lt; If it's a Purchase Order  
                                   AND BSART = &amp;lt;BSART&amp;gt;.
WRITE T161T-BATXT.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &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, 28 Jun 2007 12:50:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-28T12:50:31Z</dc:date>
    <item>
      <title>Select from view</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-view/m-p/2446929#M548127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;Is it possible to write select ststement for a view. If possible Please help me in the following&lt;/P&gt;&lt;P&gt;I want to select BATXT,&lt;/P&gt;&lt;P&gt;View is - V_T161,&lt;/P&gt;&lt;P&gt;Where condition based on BSART.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help,&lt;/P&gt;&lt;P&gt;Rakesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2007 12:42:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-view/m-p/2446929#M548127</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-28T12:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: Select from view</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-view/m-p/2446930#M548128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;If it is a Database View you can write the select statement similar to a Table&lt;/P&gt;&lt;P&gt;But it appears that this V_T161 appears to be a maintenance View&lt;/P&gt;&lt;P&gt;so you can't write a select statement&lt;/P&gt;&lt;P&gt;better write a select statement to the table T161 and use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single bstxt from T161 into v_text where bsart = p_bsart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points for useful Answers&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2007 12:46:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-view/m-p/2446930#M548128</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-28T12:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: Select from view</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-view/m-p/2446931#M548129</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;U cannot make a select,becoz it is a maintainence view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2007 12:46:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-view/m-p/2446931#M548129</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2007-06-28T12:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: Select from view</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-view/m-p/2446932#M548130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can write select ctatement for database view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ec5d446011d189700000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ec5d446011d189700000e8322d00/content.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2007 12:47:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-view/m-p/2446932#M548130</guid>
      <dc:creator>alex_m</dc:creator>
      <dc:date>2007-06-28T12:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: Select from view</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-view/m-p/2446933#M548131</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;Yes u can if it's a database view and u can use a SELECT statament, just as for a transparent table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;V_T161 is a maitenance view, so It can't do it a select, u need to read direclty T161 and T161T.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your can u need T161T only:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT SINGLE * FROM T161T WHERE SPRAS = SY-LANGU
                                   AND BSTYP = 'F' "&amp;lt; If it's a Purchase Order  
                                   AND BSART = &amp;lt;BSART&amp;gt;.
WRITE T161T-BATXT.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &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, 28 Jun 2007 12:50:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-view/m-p/2446933#M548131</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-28T12:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: Select from view</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-view/m-p/2446934#M548132</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;V_T161 is a maitenance view, so It can't do it a select, u need to read direclty T161 and T161T.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your can u need T161T only:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE * FROM T161T WHERE SPRAS = SY-LANGU&lt;/P&gt;&lt;P&gt;                                   AND BSTYP = 'F' "&amp;lt; If it's a Purchase Order  &lt;/P&gt;&lt;P&gt;                                   AND BSART = &amp;lt;BSART&amp;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;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all helpfull answers.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Jay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2007 12:56:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-view/m-p/2446934#M548132</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-28T12:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: Select from view</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-view/m-p/2446935#M548133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jay!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you a good firend of Rakesh? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know, but you should considere we are here to try to help and not to copy the answer in order to get some points.&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, 28 Jun 2007 13:28:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-from-view/m-p/2446935#M548133</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-28T13:28:31Z</dc:date>
    </item>
  </channel>
</rss>

