<?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: selection query problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-query-problem/m-p/4521534#M1069006</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How have you defined your itab ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You query looks perfectly ok , even if you use vbeln or vbelv it wont matter , it depends on the requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So have you defined your itab correctly ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data : begin of itab occurs 0,
         vbeln like vbrk-vbeln,
         kunag like vbrk-kunag,
         netwr like vbrk-netwr,
         ntgew like vbrp-ntgew,
         matnr like vbrp-matnr,
         erdat like vbfa-erdat,
         end of itab.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Advait&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Oct 2008 09:44:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-03T09:44:53Z</dc:date>
    <item>
      <title>selection query problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-query-problem/m-p/4521524#M1068996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all.....&lt;/P&gt;&lt;P&gt;i want to setct some data from table vbrp ,vbrk and vbfa .&lt;/P&gt;&lt;P&gt;on selection screen i have vbrk-vbeln and vbfa-erdat i hav written one code for tht but thts not working can nybdy plz help me in this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameter : p_vbeln type vbrk-vbeln ,&lt;/P&gt;&lt;P&gt;            p_erdat type vbfa-erdat  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--start of selection events&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;*--SELECTING THE DATA FROM DATABASE INTO INTERNAL TABLE&lt;/P&gt;&lt;P&gt; SELECT v1~vbeln AS vbeln&lt;/P&gt;&lt;P&gt;        v1~kunag AS kunag&lt;/P&gt;&lt;P&gt;        v1~vkorg AS vkorg&lt;/P&gt;&lt;P&gt;        v1~netwr AS netwr&lt;/P&gt;&lt;P&gt;        v2~ntgew AS ntgew&lt;/P&gt;&lt;P&gt;        v2~matnr AS matnr&lt;/P&gt;&lt;P&gt;        v3~erdat AS erdat&lt;/P&gt;&lt;P&gt;        INTO CORRESPONDING fields of table it_data1&lt;/P&gt;&lt;P&gt;    FROM vbrk AS v1&lt;/P&gt;&lt;P&gt;    INNER JOIN vbrp AS v2&lt;/P&gt;&lt;P&gt;       ON v1&lt;SUB&gt;vbeln = v2&lt;/SUB&gt;vbeln&lt;/P&gt;&lt;P&gt;    INNER JOIN vbfa AS v3&lt;/P&gt;&lt;P&gt;       ON v1&lt;SUB&gt;vbeln = v3&lt;/SUB&gt;vbeln&lt;/P&gt;&lt;P&gt;        WHERE v1~vbeln eq p_vbeln .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   loop at it_data1 into wa_data where erdat ne p_erdat.&lt;/P&gt;&lt;P&gt;   delete it_data1 from wa_data.&lt;/P&gt;&lt;P&gt; endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end-of-selection.&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, 03 Oct 2008 08:47:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-query-problem/m-p/4521524#M1068996</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-03T08:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: selection query problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-query-problem/m-p/4521525#M1068997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT v1~vbeln&lt;/P&gt;&lt;P&gt;v1~kuna&lt;/P&gt;&lt;P&gt;v1~vkorg&lt;/P&gt;&lt;P&gt;v1~netwr&lt;/P&gt;&lt;P&gt;v2~ntgew&lt;/P&gt;&lt;P&gt;v2~matnr&lt;/P&gt;&lt;P&gt;v3~erdat &lt;/P&gt;&lt;P&gt;INTO CORRESPONDING fields of table it_data1&lt;/P&gt;&lt;P&gt;FROM vbrk AS v1&lt;/P&gt;&lt;P&gt;INNER JOIN vbrp AS v2&lt;/P&gt;&lt;P&gt;ON v1&lt;SUB&gt;vbeln = v2&lt;/SUB&gt;vbeln&lt;/P&gt;&lt;P&gt;INNER JOIN vbfa AS v3&lt;/P&gt;&lt;P&gt;ON v1&lt;SUB&gt;vbeln = v3&lt;/SUB&gt;vbeln&lt;/P&gt;&lt;P&gt;WHERE v1~vbeln eq p_vbeln &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;Midhun Abraham&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Midhun Abraham on Oct 3, 2008 10:51 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Oct 2008 08:50:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-query-problem/m-p/4521525#M1068997</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-03T08:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: selection query problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-query-problem/m-p/4521526#M1068998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Pls check in VBFA table, whether it is available in VBELN or VBELV&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;MD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Oct 2008 08:50:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-query-problem/m-p/4521526#M1068998</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-03T08:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: selection query problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-query-problem/m-p/4521527#M1068999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi madhan....&lt;/P&gt;&lt;P&gt;yes its in vbelv i hav changed  tht but the thing is data is not coming through ...&lt;/P&gt;&lt;P&gt;what is the problem in the select query....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Oct 2008 09:07:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-query-problem/m-p/4521527#M1068999</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-03T09:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: selection query problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-query-problem/m-p/4521528#M1069000</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;have u checked in debugging , by setting a break point at select statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bcoz it may happens, u r deleting the data from internal table&lt;/P&gt;&lt;P&gt;by &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;delete it_data1 from wa_data.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;revert back if any issues,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards &lt;/P&gt;&lt;P&gt;Naveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Oct 2008 09:12:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-query-problem/m-p/4521528#M1069000</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-03T09:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: selection query problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-query-problem/m-p/4521529#M1069001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi naveen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes i hav tried debugging tht query but i m not able to understand y its not selecting ny data.....&lt;/P&gt;&lt;P&gt;i hav commented tht deleting part then too no data is being selected...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Oct 2008 09:23:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-query-problem/m-p/4521529#M1069001</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-03T09:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: selection query problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-query-problem/m-p/4521530#M1069002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure if this help, you may try this:&lt;/P&gt;&lt;P&gt;WHERE v1~vbeln &lt;STRONG&gt;IN&lt;/STRONG&gt; p_vbeln .&lt;/P&gt;&lt;P&gt;If your vbeln is in range (i.e. you see two boxes with for that parameters in the selection screens), you need to use IN to check value instead of eq&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Oct 2008 09:24:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-query-problem/m-p/4521530#M1069002</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-03T09:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: selection query problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-query-problem/m-p/4521531#M1069003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Pls let me know, how the select querry looks like, after modification&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;MD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Oct 2008 09:26:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-query-problem/m-p/4521531#M1069003</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-03T09:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: selection query problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-query-problem/m-p/4521532#M1069004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;WHERE v1~vbeln eq p_vbeln .&lt;/P&gt;&lt;P&gt;change to &lt;/P&gt;&lt;P&gt;WHERE v1~vbeln like p_vbeln and see, whether it works&lt;/P&gt;&lt;P&gt;MD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Oct 2008 09:30:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-query-problem/m-p/4521532#M1069004</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-03T09:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: selection query problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-query-problem/m-p/4521533#M1069005</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 have tried ur program in my system.&lt;/P&gt;&lt;P&gt;select  querry is working fine i.e i can see the data in the interrnal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am sure that the data is being deleted by the delete statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;moreover check whether the data u entered in the selection screen exits in the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Revert back...&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Naveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Oct 2008 09:34:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-query-problem/m-p/4521533#M1069005</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-03T09:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: selection query problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-query-problem/m-p/4521534#M1069006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How have you defined your itab ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You query looks perfectly ok , even if you use vbeln or vbelv it wont matter , it depends on the requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So have you defined your itab correctly ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data : begin of itab occurs 0,
         vbeln like vbrk-vbeln,
         kunag like vbrk-kunag,
         netwr like vbrk-netwr,
         ntgew like vbrp-ntgew,
         matnr like vbrp-matnr,
         erdat like vbfa-erdat,
         end of itab.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Advait&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Oct 2008 09:44:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-query-problem/m-p/4521534#M1069006</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-03T09:44:53Z</dc:date>
    </item>
  </channel>
</rss>

