<?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/1787286#M338961</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srinivas,&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;   First of all check at table level whether do you have any entires in the table lips for the records that you are passing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kiran I&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Dec 2006 08:29:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-11T08:29:57Z</dc:date>
    <item>
      <title>SELECT QUERY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/1787284#M338959</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 am geting some problem with one select query, by using that select query what i am trying to do is retrieving material details related to multiple deliveies.But i am not able to find any values in internal table when i am debbuging this select query i am mentioned that query below please tell me the problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Query:&lt;/P&gt;&lt;P&gt;select vbeln matnr lfimg from lips&lt;/P&gt;&lt;P&gt;                                into corresponding fields of table l_t_matdet&lt;/P&gt;&lt;P&gt;                                for all entries in g_t_dochdr&lt;/P&gt;&lt;P&gt;                                where vbeln = g_t_dochdr-b_doc_number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;g_t_dochdr contains multiple delivery numbers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2006 08:22:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/1787284#M338959</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-11T08:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT QUERY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/1787285#M338960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as you have mentioned as for all entries, so you check what is the value of g_t_dochdr table and wheather condition vbeln = g_t_dochdr-b_doc_number is satisfying or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2006 08:29:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/1787285#M338960</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-11T08:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT QUERY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/1787286#M338961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srinivas,&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;   First of all check at table level whether do you have any entires in the table lips for the records that you are passing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kiran I&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2006 08:29:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/1787286#M338961</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-11T08:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT QUERY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/1787287#M338962</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 hope your internal table l_t_matdet will be of following structure.&lt;/P&gt;&lt;P&gt;data : begin of  l_t_matdet occurs 0,&lt;/P&gt;&lt;P&gt;          vbeln ..&lt;/P&gt;&lt;P&gt;          matnr..&lt;/P&gt;&lt;P&gt;          lfimg...&lt;/P&gt;&lt;P&gt;          ...&lt;/P&gt;&lt;P&gt;          end of l_t_matdet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select ...from ...into table g_t_dochdr...&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;select vbeln matnr lfimg from lips&lt;/P&gt;&lt;P&gt;into corresponding fields of table l_t_matdet&lt;/P&gt;&lt;P&gt;for all entries in g_t_dochdr&lt;/P&gt;&lt;P&gt;where vbeln = g_t_dochdr-b_doc_number.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your coding is like as mentioned above,I don't think there is a problem in your coding.&lt;/P&gt;&lt;P&gt;Better check in SE11,for lips table entries.Whatever values you are getting in internal table g_t_dochdr,just pass the doc_number to lips and find out correspoding entry exists.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2006 08:31:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/1787287#M338962</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2006-12-11T08:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT QUERY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/1787288#M338963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi srinivas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.Sort the table g_t_dochdr by doc_number.&lt;/P&gt;&lt;P&gt;2.check if the length of vbeln and doc_number are equal , may be the leading zeroes are missing in doc_number while equating&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2006 08:33:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/1787288#M338963</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-11T08:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT QUERY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/1787289#M338964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi sri,&lt;/P&gt;&lt;P&gt;       &lt;/P&gt;&lt;P&gt;        The problem is while equating they are not equal so do the following steps..&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;sort ur internal tables&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;check the entries in both the tables might be the value of vbeln is not the same in both...&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2006 08:54:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/1787289#M338964</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-11T08:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT QUERY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/1787290#M338965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi jayanthi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while debbuging this select statement i have checked the g_t_donhdr it contains the value but when i checked in l_t_matdet internal table field content is showing as "Non charlike structure" . But when i check the structure and length both of them are of same structure and type.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2006 09:14:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/1787290#M338965</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-11T09:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT QUERY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/1787291#M338966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srinivasa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the problem is not in your query, but when defining table l_t_matdet or g_t_donhdr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please show us the codes where you define the table...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regrads,&lt;/P&gt;&lt;P&gt;Hendy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2006 09:24:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/1787291#M338966</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-11T09:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT QUERY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/1787292#M338967</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;Data: Begin of g_t_dochdr occurs 0,&lt;/P&gt;&lt;P&gt;         b_doc_number  type  zdef_stp_shp-b_doc_number,&lt;/P&gt;&lt;P&gt;         end of g_t_dochdr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data: begin of l_t_matdet occurs 0,&lt;/P&gt;&lt;P&gt;      vbeln like lips-vbeln,&lt;/P&gt;&lt;P&gt;      matnr like lips-matnr,&lt;/P&gt;&lt;P&gt;      lfimg like lips-lfimg,&lt;/P&gt;&lt;P&gt;      end of l_t_matdet.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2006 09:58:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/1787292#M338967</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-11T09:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT QUERY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/1787293#M338968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check Table whether you are having any records which meets your selection condition.. Whenever you will use for all entries check whether that table is having any records or not... Like &amp;lt;b&amp;gt;if not g_t_dochd is initial&amp;lt;/b&amp;gt; contnue else &amp;lt;b&amp;gt;exit&amp;lt;/b&amp;gt;.'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if usefull...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2006 10:10:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/1787293#M338968</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-11T10:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT QUERY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/1787294#M338969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srini,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the problem is in 'b_doc_number type zdef_stp_shp-b_doc_number'.&lt;/P&gt;&lt;P&gt;Can you change it to b_doc_number like LIPS-VBELN?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I knew both of them have same type CHAR(10).&lt;/P&gt;&lt;P&gt;But if you check LIPS-VBELN this field has a conversion routine and zdef_stp_shp-b_doc_number (I guest) does not have it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By using conversion routine, for example document number '10002' will be converted to '0000010002'.&lt;/P&gt;&lt;P&gt;I guest your data in 'b_doc_number type zdef_stp_shp-b_doc_number'&lt;/P&gt;&lt;P&gt;is '10002' and your data in LIPS table is '0000010002'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'10002' is not equal with '0000010002'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hendy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2006 10:15:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/1787294#M338969</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-11T10:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT QUERY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/1787295#M338970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;select vbeln matnr lfimg from lips&lt;/P&gt;&lt;P&gt;into corresponding fields of table l_t_matdet&lt;/P&gt;&lt;P&gt;for all entries in g_t_dochdr&lt;/P&gt;&lt;P&gt;where vbeln = g_t_dochdr-b_doc_number&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;whats this &amp;lt;b&amp;gt;b_doc_number&amp;lt;/b&amp;gt; .. ???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is it billing document number ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cause this will be VBRK-VBELN.&lt;/P&gt;&lt;P&gt;                           and this will be different from LIKP-VBELN and  LIPS_VBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in short u cannot equate VBRK-VBELN = LIKP/LIPS -VBELN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i hope this is the case ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it will be &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VBRK-VBELN = VBRP-VBELN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VBRP-VGBEL  = LIPS-VBELN &lt;/P&gt;&lt;P&gt;VBRP-VGPOS = LIPS-VGPOS &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; just check the flow in the tables first for a billing document number and then change the code accordingly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Dec 2006 10:19:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/1787295#M338970</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-11T10:19:32Z</dc:date>
    </item>
  </channel>
</rss>

