<?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: regarding select query in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/2447929#M548395</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;the fields you are equaitng in 2nd select statement are not havine same characterstics,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select pernr ename&lt;/P&gt;&lt;P&gt;from pa0001&lt;/P&gt;&lt;P&gt;into table it_pa01&lt;/P&gt;&lt;P&gt;for all entries in it_ihpa&lt;/P&gt;&lt;P&gt;where pernr = it_ihpa-parnr.&lt;/P&gt;&lt;P&gt; here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pernr is numc 8.&lt;/P&gt;&lt;P&gt;parnr is char 12.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ruchika&lt;/P&gt;&lt;P&gt;Reward if useful.........&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Jun 2007 07:20:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-26T07:20:27Z</dc:date>
    <item>
      <title>regarding select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/2447927#M548393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi experts,&lt;/P&gt;&lt;P&gt;           &lt;/P&gt;&lt;P&gt;              i am developing a report to display details of equipment number(transaction ie03).&lt;/P&gt;&lt;P&gt;in that to get the partner function details (parvw ' vw ' person responsible)&lt;/P&gt;&lt;P&gt;we have partner (PARNR    I_PARNR	CHAR	12  0 Partner) and name of that person. so based on parnr we get details from table  pa0001 .&lt;/P&gt;&lt;P&gt;here we have PERNR	(PERNR PERSNO NUMC  8    0	 Personnel number)&lt;/P&gt;&lt;P&gt;(here pernr is equivalent to parnr of ihpa but data elements differ) so we get the details that is ename(employee name ).&lt;/P&gt;&lt;P&gt;but when i write select query i get the following error &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   select objnr parvw parnr&lt;/P&gt;&lt;P&gt;          from ihpa&lt;/P&gt;&lt;P&gt;          into table it_ihpa&lt;/P&gt;&lt;P&gt;          for all entries in it_itab&lt;/P&gt;&lt;P&gt;          where objnr = it_itab-objnr&lt;/P&gt;&lt;P&gt;          and   parvw = c_vw.&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 pernr ename&lt;/P&gt;&lt;P&gt;         from pa0001&lt;/P&gt;&lt;P&gt;         into table it_pa01&lt;/P&gt;&lt;P&gt;         for all entries in it_ihpa&lt;/P&gt;&lt;P&gt;         where pernr = it_ihpa-parnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;error : when using the addition "for all entries in itab", &lt;/P&gt;&lt;P&gt;the field pernr and it_ihpa-parnr must have same type and length.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how would i overcome that since i will get data from pa0001.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2007 07:14:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/2447927#M548393</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-26T07:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: regarding select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/2447928#M548394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please check the data type and field length of the fields IT_PA01-PERNR and IT_IHPA-PARNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this would solve your problem.&lt;/P&gt;&lt;P&gt;Reward if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nilesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2007 07:18:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/2447928#M548394</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-26T07:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: regarding select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/2447929#M548395</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;the fields you are equaitng in 2nd select statement are not havine same characterstics,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select pernr ename&lt;/P&gt;&lt;P&gt;from pa0001&lt;/P&gt;&lt;P&gt;into table it_pa01&lt;/P&gt;&lt;P&gt;for all entries in it_ihpa&lt;/P&gt;&lt;P&gt;where pernr = it_ihpa-parnr.&lt;/P&gt;&lt;P&gt; here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pernr is numc 8.&lt;/P&gt;&lt;P&gt;parnr is char 12.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ruchika&lt;/P&gt;&lt;P&gt;Reward if useful.........&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2007 07:20:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/2447929#M548395</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-26T07:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: regarding select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/2447930#M548396</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;You are getting this error coz your internal table field PARNR is of type I_PARNR and PERNR is of differen type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you cannot compare them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARNR is CHAR 12 where PERNR is NUMC 10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2007 07:20:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/2447930#M548396</guid>
      <dc:creator>seshatalpasai_madala</dc:creator>
      <dc:date>2007-06-26T07:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: regarding select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/2447931#M548397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Narshimha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since the technical attributes of the two fields is not same u need to transfer the contents to dummy field which will have same technical fields like 'pernr'. For that u can use the loop after the first select query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Than u can use the for all entries variant of the select query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u have to use for all entries this is the only way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Saurabh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2007 07:23:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/2447931#M548397</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-26T07:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: regarding select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/2447932#M548398</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;you can compare Ihpa and pa0001 using ihpa-aedat = pa001-aedtm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this date of last change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Ruchika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2007 07:25:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/2447932#M548398</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-26T07:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: regarding select query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/2447933#M548399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thats what the problem is how would i overcome that since i get data from that table only.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2007 07:26:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-select-query/m-p/2447933#M548399</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-26T07:26:07Z</dc:date>
    </item>
  </channel>
</rss>

