<?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: error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error/m-p/2148719#M453494</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;in the select query u are selecting a&lt;SUB&gt;vbeln and e&lt;/SUB&gt;vbeln and moving them into the table by using corresponding fields of table itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but itab contain only one field with name 'vbeln' and other with name 'vbeln1',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so u better to to use INTO TABLE ITAB in place of CORRESPONDING FIELDS OF TABLE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Mar 2007 06:16:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-30T06:16:10Z</dc:date>
    <item>
      <title>error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error/m-p/2148718#M453493</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;&lt;/P&gt;&lt;P&gt;Could you help me where the error?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF wa,&lt;/P&gt;&lt;P&gt;         vbeln TYPE vbak-vbeln,&lt;/P&gt;&lt;P&gt;         vgbel type lips-vgbel,&lt;/P&gt;&lt;P&gt;         posnr type vbap-posnr,&lt;/P&gt;&lt;P&gt;         vgpos type vbrp-vgpos,&lt;/P&gt;&lt;P&gt;         vbeln1 type vbrk-vbeln,&lt;/P&gt;&lt;P&gt;       END OF wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA itab LIKE SORTED TABLE OF wa&lt;/P&gt;&lt;P&gt;               WITH UNIQUE KEY vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select a&lt;SUB&gt;vbeln  c&lt;/SUB&gt;vgbel b&lt;SUB&gt;posnr d&lt;/SUB&gt;vgpos e~vbeln&lt;/P&gt;&lt;P&gt;into CORRESPONDING FIELDS OF TABLE itab&lt;/P&gt;&lt;P&gt;from ( ( ( ( vbak  as a&lt;/P&gt;&lt;P&gt;inner join vbap as b on a&lt;SUB&gt;vbeln = b&lt;/SUB&gt;vbeln )&lt;/P&gt;&lt;P&gt;inner join lips as c on c&lt;SUB&gt;vgbel = b&lt;/SUB&gt;vbeln and c&lt;SUB&gt;vgpos = b&lt;/SUB&gt;posnr )&lt;/P&gt;&lt;P&gt;inner join vbrp as d on d&lt;SUB&gt;vgbel = c&lt;/SUB&gt;vbeln and d&lt;SUB&gt;vgpos = c&lt;/SUB&gt;posnr )&lt;/P&gt;&lt;P&gt;inner join VBRK as e on e&lt;SUB&gt;vbeln = d&lt;/SUB&gt;vbeln ) .&lt;/P&gt;&lt;P&gt;loop at itab into wa.&lt;/P&gt;&lt;P&gt;write:/ wa-vbeln, wa-posnr, wa-vgbel,wa-vgpos,wa-vbeln1.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Mar 2007 06:10:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error/m-p/2148718#M453493</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-30T06:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error/m-p/2148719#M453494</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;in the select query u are selecting a&lt;SUB&gt;vbeln and e&lt;/SUB&gt;vbeln and moving them into the table by using corresponding fields of table itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but itab contain only one field with name 'vbeln' and other with name 'vbeln1',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so u better to to use INTO TABLE ITAB in place of CORRESPONDING FIELDS OF TABLE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Mar 2007 06:16:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error/m-p/2148719#M453494</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-30T06:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error/m-p/2148720#M453495</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;just change this..i am getting output with this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA itab LIKE Standard TABLE OF wa&lt;/P&gt;&lt;P&gt;    WITH non-UNIQUE KEY vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as you have taken sorted table...it won't allow duplicate records...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;take standard table as above...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Rammohan Nagam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Mar 2007 06:18:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error/m-p/2148720#M453495</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-30T06:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error/m-p/2148721#M453496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;What are the fields you wants to fetch first&amp;gt;&lt;/P&gt;&lt;P&gt;Since there are VBELN's in all tables this is the problem.&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF wa,&lt;/P&gt;&lt;P&gt;vbeln TYPE vbrk-vbeln,  "billing Doc&lt;/P&gt;&lt;P&gt;posnr type vbrp-posnr,  " billing item&lt;/P&gt;&lt;P&gt;vgbel type lips-vgbel,    " delivery &lt;/P&gt;&lt;P&gt;vgpos type vbrp-vgpos,  " delivery item&lt;/P&gt;&lt;P&gt;aubel  type vbak-vbeln,  " so No&lt;/P&gt;&lt;P&gt;aupos type vbap-posnr,  " So item&lt;/P&gt;&lt;P&gt;END OF wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA itab LIKE SORTED TABLE OF wa&lt;/P&gt;&lt;P&gt;WITH UNIQUE KEY vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select d&lt;SUB&gt;vbeln d&lt;/SUB&gt;vgbel d&lt;SUB&gt;posnr d&lt;/SUB&gt;vgpos d&lt;SUB&gt;aubel d&lt;/SUB&gt;aupos&lt;/P&gt;&lt;P&gt;into CORRESPONDING FIELDS OF TABLE itab&lt;/P&gt;&lt;P&gt;from ( ( ( ( vbak as a&lt;/P&gt;&lt;P&gt;inner join vbap as b on a&lt;SUB&gt;vbeln = b&lt;/SUB&gt;vbeln )&lt;/P&gt;&lt;P&gt;inner join lips as c on c&lt;SUB&gt;vgbel = b&lt;/SUB&gt;vbeln and c&lt;SUB&gt;vgpos = b&lt;/SUB&gt;posnr )&lt;/P&gt;&lt;P&gt;inner join vbrp as d on d&lt;SUB&gt;vgbel = c&lt;/SUB&gt;vbeln and d&lt;SUB&gt;vgpos = c&lt;/SUB&gt;posnr )&lt;/P&gt;&lt;P&gt;inner join VBRK as e on e&lt;SUB&gt;vbeln = d&lt;/SUB&gt;vbeln ) .&lt;/P&gt;&lt;P&gt; All the data from VBRP is alone sufficient here.&lt;/P&gt;&lt;P&gt;***&lt;STRONG&gt;No where condition mentioned Keep some condition.&lt;/STRONG&gt;*****&lt;/P&gt;&lt;P&gt;loop at itab into wa.&lt;/P&gt;&lt;P&gt;write:/ wa-vbeln, wa-posnr, wa-vgbel,wa-vgpos,wa-vbeln1.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if useful&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Mar 2007 06:19:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error/m-p/2148721#M453496</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-30T06:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error/m-p/2148722#M453497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hay.. by the way what error u r getting can explain ..i dont think so there is error in this but there will be performance issue of the code ..cause no where condition given or u can have a dump error for that define ur table with non-unique key not unique  &lt;/P&gt;&lt;P&gt;points pls if solved the problem or helped in solving &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards &lt;/P&gt;&lt;P&gt;farroque&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Mar 2007 06:20:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error/m-p/2148722#M453497</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-30T06:20:11Z</dc:date>
    </item>
  </channel>
</rss>

