<?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 query in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/2391701#M531946</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi naren,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for ur response,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can u give the work area declarations for this select statements, i want to know how to declare for single records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Jun 2007 15:41:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-01T15:41:00Z</dc:date>
    <item>
      <title>select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/2391698#M531943</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;&lt;/P&gt;&lt;P&gt;i want to extract single record vbeln from from bsid.&lt;/P&gt;&lt;P&gt;based on that vbeln i need to extract single record swenr smenr from vbak.&lt;/P&gt;&lt;P&gt;based on swenr smenr i need to extract single record smenr swenr snunr xemtxt from vimi01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need code for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can any body help me in this regard.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2007 15:22:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/2391698#M531943</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-01T15:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/2391699#M531944</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 this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SELECT SINGLE VIMI01&lt;SUB&gt;SMENR VIMI01&lt;/SUB&gt;SWENR VIMI01&lt;SUB&gt;SNUNR VIMI01&lt;/SUB&gt;XEMTXT INTO TABLE ITAB FROM VIMI01 INNER JOIN VBAK ON VIMI01&lt;SUB&gt;SWENR = VBAK&lt;/SUB&gt;SMENR AND VIMI01&lt;SUB&gt;SWENR = VBAK&lt;/SUB&gt;SWENR INNER JOIN BSID ON VBAK&lt;SUB&gt;VBELN = BSID&lt;/SUB&gt;VBELN WHERE.....UR CONDITION.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;SAB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2007 15:24:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/2391699#M531944</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-01T15:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/2391700#M531945</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 this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
* Get vbeln
SELECT VBELN UP TO 1 ROWS
             V_VBELN
             FROM BSID 
             WHERE ....

* Get vbak
SELECT SINGLE * FROM VBAK INTO S_VBAK
                          WHERE VBELN = V_VBELN.

* Get VIMI01
SELECT SINGLE * FROM VIMI01 WHERE SWENR = S_VBAK-SWENR
                                                               SMENR = S_VBAK-SMENR.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2007 15:25:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/2391700#M531945</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-01T15:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/2391701#M531946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi naren,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for ur response,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can u give the work area declarations for this select statements, i want to know how to declare for single records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2007 15:41:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/2391701#M531946</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-01T15:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/2391702#M531947</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;With the declarations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: V_VBELN TYPE VBELN.

* Get vbeln
SELECT VBELN UP TO 1 ROWS
             V_VBELN
             FROM BSID 
             WHERE ....
 
* Get vbak
DATA: V_swenr   TYPE VBAK-SWENR,
           V_smenr  TYPE VBAK-SMENR.

SELECT SINGLE SWENR SMENR FROM VBAK INTO (V_SWENR,V_SMENR)
                          WHERE VBELN = V_VBELN.
 
* Get VIMI01
DATA: S_VIMI01 TYPE VIMI01.
SELECT SINGLE * FROM VIMI01 
                          INTO CORRESPONDING FIELDS OF S_VIMI01
                          WHERE SWENR = S_VBAK-SWENR
                           SMENR = S_VBAK-SMENR.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2007 15:44:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/2391702#M531947</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-01T15:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/2391703#M531948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;want to extract single record vbeln from from bsid.&lt;/P&gt;&lt;P&gt;based on that vbeln i need to extract single record swenr smenr from vbak.&lt;/P&gt;&lt;P&gt;based on swenr smenr i need to extract single record smenr swenr snunr xemtxt from vimi01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tr this one,&lt;/P&gt;&lt;P&gt;without internal table,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; select single vbeln from bdid into bdid where.........&lt;/P&gt;&lt;P&gt;     select single swernr smenr from vbak into vbak where vbeln = bdid-vbeln.&lt;/P&gt;&lt;P&gt;          select single smenr swenr snunr xemtxt from vimi01 into vim01 where  swernr  =   vbak-swernr and smenr = vbak-smenr &lt;/P&gt;&lt;P&gt;                &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with internal table..&lt;/P&gt;&lt;P&gt;       select single vbeln from bdid into table it_bdid where.........&lt;/P&gt;&lt;P&gt;            &lt;/P&gt;&lt;P&gt;        select single swernr smenr from vbak into table it_vbak for all entries in it_bdif where vbeln = it_bdid-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          select single smenr swenr snunr xemtxt from vimi01 into table it_vim01 for all entries in it_vbak where  swernr  =   it_vbak-swernr and smenr = it_vbak-smenr &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it it is still not working than my email id is sarvadi.imran06@gmail.com&lt;/P&gt;&lt;P&gt;reward points if helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Imran Sarvadi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Jun 2007 05:28:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/2391703#M531948</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-02T05:28:34Z</dc:date>
    </item>
  </channel>
</rss>

