<?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: Problem with select stmt in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-stmt/m-p/1899688#M375827</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;usually the delivery originates from an order. A delivery item comes from a specific order. If you use anything from standard, then check VBDKL-VBELN or go through document flow VBFA. A direct link from delivery item to order is VBAK-VBELN = LIPS-VGBEL.&lt;/P&gt;&lt;P&gt;In VBAK you will find the VKBUR and VKORG where you can fetch the address of.&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;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Jan 2007 07:54:31 GMT</pubDate>
    <dc:creator>Clemenss</dc:creator>
    <dc:date>2007-01-15T07:54:31Z</dc:date>
    <item>
      <title>Problem with select stmt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-stmt/m-p/1899684#M375823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have to display branch address in a window in a script. everything's fine with the script, the prob. is with the select stmt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is a delivery challan... so initially the code was like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE * FROM TVBUR&lt;/P&gt;&lt;P&gt;           WHERE VKBUR = LIKP-VKBUR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT SINGLE * FROM ADRC&lt;/P&gt;&lt;P&gt;           INTO B_ADRC&lt;/P&gt;&lt;P&gt;           WHERE ADDRNUMBER = TVBUR-ADRNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now the problem is that there is no data in the field LIKP-VKBUR, so the alternative i thought is to get the data from VBRP table, and the common field b/w them both is VSTEL(shipping point).....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so can u pls help in writing the select stmt..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CAPC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2007 07:34:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-stmt/m-p/1899684#M375823</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-15T07:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with select stmt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-stmt/m-p/1899685#M375824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use inner join concept - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select a&lt;SUB&gt;field1 into d_var from vkbur as A inner join vbrp as B on A&lt;/SUB&gt;VSTEL = B~VSTEL&lt;/P&gt;&lt;P&gt;  where a&lt;SUB&gt;field2 = 'abc' and b&lt;/SUB&gt;field3 = 'xyz'.      "use Where condition if required&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single vkbur into d_vkbur&lt;/P&gt;&lt;P&gt;          from vbap where vbeln in ( &lt;/P&gt;&lt;P&gt;             select vgbel from lips where &lt;/P&gt;&lt;P&gt;                       vbeln = likp~vbeln ).&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;select single * from tvbur where vkbur = lv_vkbur.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2007 07:44:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-stmt/m-p/1899685#M375824</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-15T07:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with select stmt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-stmt/m-p/1899686#M375825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but after that how do i retrieve the information from adrc??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;coz the condition is based on tkbur(table)...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;capc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2007 07:50:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-stmt/m-p/1899686#M375825</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-15T07:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with select stmt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-stmt/m-p/1899687#M375826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the VKBUR is normally found in the predecessor document, which is normally a sales order. I assume that the delivery document has only one predecessor. In this case, you could write: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
* Don't forget to declare the variable in the
* declaration part of your code
data lv_vkbur type vkbur.
(...)
select single vkbur into lv_vkbur
          from vbap where vbeln in ( 
             select vgbel from lips where 
                       vbeln = likp~vbeln ).

select single * from tvbur where vkbur = lv_vkbur.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this will solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards Joerg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2007 07:54:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-stmt/m-p/1899687#M375826</guid>
      <dc:creator>jrgkraus</dc:creator>
      <dc:date>2007-01-15T07:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with select stmt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-stmt/m-p/1899688#M375827</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;usually the delivery originates from an order. A delivery item comes from a specific order. If you use anything from standard, then check VBDKL-VBELN or go through document flow VBFA. A direct link from delivery item to order is VBAK-VBELN = LIPS-VGBEL.&lt;/P&gt;&lt;P&gt;In VBAK you will find the VKBUR and VKORG where you can fetch the address of.&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;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2007 07:54:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-stmt/m-p/1899688#M375827</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2007-01-15T07:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with select stmt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-stmt/m-p/1899689#M375828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can u pls give me the diff. b/w header and item&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2007 08:33:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-stmt/m-p/1899689#M375828</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-15T08:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with select stmt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-stmt/m-p/1899690#M375829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can i use this stmt &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE * FROM TVBUR&lt;/P&gt;&lt;P&gt;           WHERE VKBUR = LIPS-VKBUR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead of &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE * FROM TVBUR&lt;/P&gt;&lt;P&gt;           WHERE VKBUR = LIKP-VKBUR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i mean lips in place of likp, would it work...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanx in advance,&lt;/P&gt;&lt;P&gt;CAPC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2007 08:46:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-stmt/m-p/1899690#M375829</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-15T08:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with select stmt</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-stmt/m-p/1899691#M375830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks this is finished&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jan 2007 12:56:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-select-stmt/m-p/1899691#M375830</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-15T12:56:11Z</dc:date>
    </item>
  </channel>
</rss>

