<?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 quries in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-quries/m-p/3304599#M791368</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can select all deliveries from LIPS where VGBEL &amp;lt;&amp;gt; space and VGTYP = 'V' (Purchase Order).&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;&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Jan 2008 09:40:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-24T09:40:14Z</dc:date>
    <item>
      <title>Select quries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-quries/m-p/3304598#M791367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my report i have selection screen like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Purchasing Document&lt;/P&gt;&lt;P&gt;Supplying Site&lt;/P&gt;&lt;P&gt;Receiving Site&lt;/P&gt;&lt;P&gt;Created on&lt;/P&gt;&lt;P&gt;Delivery&lt;/P&gt;&lt;P&gt;Delivery Date&lt;/P&gt;&lt;P&gt;Billing Document&lt;/P&gt;&lt;P&gt;Billing date&lt;/P&gt;&lt;P&gt;Purchasing Doc. Type&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now from Delivery  , Delivery Date and Billing Doc i want to fire qurie how to do that ?&lt;/P&gt;&lt;P&gt;below is my select quries which i did for P.O, Suppling site , receiving site. and Created on date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT ebeln bsart aedat lifnr&lt;/P&gt;&lt;P&gt;  FROM   ekko&lt;/P&gt;&lt;P&gt;  INTO   TABLE it_ekko&lt;/P&gt;&lt;P&gt;  WHERE  ebeln IN pr_ebeln&lt;/P&gt;&lt;P&gt;  AND    lifnr IN pr_lifnr&lt;/P&gt;&lt;P&gt;  AND    aedat IN pr_aedat&lt;/P&gt;&lt;P&gt;  AND    bsart = pr_basrt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF it_ekko IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;    SELECT ebeln ebelp aedat txz01 matnr menge meins&lt;/P&gt;&lt;P&gt;    FROM ekpo&lt;/P&gt;&lt;P&gt;    INTO TABLE it_ekpo&lt;/P&gt;&lt;P&gt;    FOR ALL ENTRIES IN it_ekko&lt;/P&gt;&lt;P&gt;    WHERE ebeln = it_ekko-ebeln&lt;/P&gt;&lt;P&gt;    AND   werks IN pr_werks.&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;  IF it_ekpo IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;    SELECT vbeln posnr erdat lfimg meins vgbel   " For Delivery&lt;/P&gt;&lt;P&gt;    FROM lips&lt;/P&gt;&lt;P&gt;    INTO TABLE it_lips&lt;/P&gt;&lt;P&gt;    FOR ALL ENTRIES IN it_ekpo&lt;/P&gt;&lt;P&gt;    WHERE vgbel = it_ekpo-ebeln.&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;  IF it_ekpo IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;    SELECT ebeln  ebelp  eindt          " For Delivery Date EKET&lt;/P&gt;&lt;P&gt;     FROM eket&lt;/P&gt;&lt;P&gt;     INTO TABLE it_eket&lt;/P&gt;&lt;P&gt;     FOR ALL ENTRIES IN it_ekpo&lt;/P&gt;&lt;P&gt;     WHERE    ebeln = it_ekpo-ebeln&lt;/P&gt;&lt;P&gt;      AND     ebelp = it_ekpo-ebelp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;*" For Delivery Stock Transf&lt;/P&gt;&lt;P&gt;  IF it_ekpo IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;    SELECT ebeln ebelp vgabe belnr bewtp budat menge&lt;/P&gt;&lt;P&gt;          FROM ekbe INTO TABLE it_ekbe_del&lt;/P&gt;&lt;P&gt;          FOR ALL ENTRIES IN it_ekpo&lt;/P&gt;&lt;P&gt;          WHERE ebeln = it_ekpo-ebeln&lt;/P&gt;&lt;P&gt;          AND   ebelp = it_ekpo-ebelp&lt;/P&gt;&lt;P&gt;          AND   vgabe = '8'&lt;/P&gt;&lt;P&gt;          AND   bewtp = 'L'.                          " DlNt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*F o r   G o o d s    R e c e i p t.... GR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT ebeln ebelp vgabe belnr bewtp budat menge&lt;/P&gt;&lt;P&gt;    FROM ekbe&lt;/P&gt;&lt;P&gt;    INTO TABLE it_ekbe_e&lt;/P&gt;&lt;P&gt;    FOR ALL ENTRIES IN it_ekpo&lt;/P&gt;&lt;P&gt;    WHERE   ebeln = it_ekpo-ebeln&lt;/P&gt;&lt;P&gt;      AND   ebelp = it_ekpo-ebelp&lt;/P&gt;&lt;P&gt;      AND   vgabe = '1'&lt;/P&gt;&lt;P&gt;      AND   bewtp = 'E'.                 "  F O R   GR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*F o r   I n v o i c e   R e c e i p t.... IR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT  ebeln ebelp vgabe belnr bewtp budat menge&lt;/P&gt;&lt;P&gt;     FROM ekbe&lt;/P&gt;&lt;P&gt;     INTO TABLE it_ekbe_q&lt;/P&gt;&lt;P&gt;     FOR ALL ENTRIES IN it_ekpo&lt;/P&gt;&lt;P&gt;     WHERE   ebeln = it_ekpo-ebeln&lt;/P&gt;&lt;P&gt;      AND    ebelp = it_ekpo-ebelp&lt;/P&gt;&lt;P&gt;      AND    vgabe = '2'&lt;/P&gt;&lt;P&gt;      AND    bewtp = 'Q'.&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;" F O R    G I&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT  ebeln ebelp vgabe belnr bewtp budat menge xblnr&lt;/P&gt;&lt;P&gt;    FROM ekbe&lt;/P&gt;&lt;P&gt;    INTO TABLE it_ekbe_u&lt;/P&gt;&lt;P&gt;    FOR ALL ENTRIES IN it_ekpo&lt;/P&gt;&lt;P&gt;    WHERE   ebeln = it_ekpo-ebeln&lt;/P&gt;&lt;P&gt;     AND    ebelp = it_ekpo-ebelp&lt;/P&gt;&lt;P&gt;     AND    bewtp = 'U'.                " F O R    G I&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;STRONG&gt;point is assured&lt;/STRONG&gt;***********&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2008 07:07:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-quries/m-p/3304598#M791367</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-24T07:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: Select quries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-quries/m-p/3304599#M791368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can select all deliveries from LIPS where VGBEL &amp;lt;&amp;gt; space and VGTYP = 'V' (Purchase Order).&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;&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2008 09:40:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-quries/m-p/3304599#M791368</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-24T09:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: Select quries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-quries/m-p/3304600#M791369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI dear,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you have mentioned from Delivery , Delivery Date and Billing Doc i want to fire qurie how to do that ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just write &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select a b c( fields)&lt;/P&gt;&lt;P&gt;from   table name &lt;/P&gt;&lt;P&gt;into target area&lt;/P&gt;&lt;P&gt;where A in s_delevery&lt;/P&gt;&lt;P&gt;and   B  in Billing document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;however if you ar eusiong entries from above table u can also use " For all entries in itab."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select a b c( fields)&lt;/P&gt;&lt;P&gt;from   table name &lt;/P&gt;&lt;P&gt;into target area&lt;/P&gt;&lt;P&gt;For all entries in itab&lt;/P&gt;&lt;P&gt;where C = itab-c&lt;/P&gt;&lt;P&gt;and A in s_delevery&lt;/P&gt;&lt;P&gt;and   B  in Billing document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don know if this is wat u wanted..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in case of any clarification u can call me @9881191759&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.please amrk q as answered and reward if my soltn helps you!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Neeraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2008 09:59:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-quries/m-p/3304600#M791369</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-24T09:59:30Z</dc:date>
    </item>
  </channel>
</rss>

