<?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 in data element in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-data-element/m-p/2454699#M550322</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;TO COMPARE TWOFIELDS OF TWO DIFFERENT TABLES WE MUST HAVE DATA TYPE AND LENGTH SAME AND TRY TO USE &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF IT_HPA IS NOT INITIAL.&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;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Jun 2007 09:08:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-26T09:08:45Z</dc:date>
    <item>
      <title>problem in data element</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-data-element/m-p/2454695#M550318</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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2007 08:49:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-data-element/m-p/2454695#M550318</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-26T08:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: problem in data element</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-data-element/m-p/2454696#M550319</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;Check the Data type and Length of the fields " pernr and it_ihpa-parnr ".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It must be a Same data type and Length. Then Only you can compare the fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2007 08:53:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-data-element/m-p/2454696#M550319</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-26T08:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: problem in data element</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-data-element/m-p/2454697#M550320</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;Try this.&lt;/P&gt;&lt;P&gt;if not it_ihpa[] is initial.&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+4(8).&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2007 08:53:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-data-element/m-p/2454697#M550320</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2007-06-26T08:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: problem in data element</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-data-element/m-p/2454698#M550321</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 mention that the value of PARNR will be same as PERNR for PARVW vw, then while declaring it_ihpa, give parnr like pernr-pernr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Navneet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2007 09:04:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-data-element/m-p/2454698#M550321</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-26T09:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: problem in data element</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-data-element/m-p/2454699#M550322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;TO COMPARE TWOFIELDS OF TWO DIFFERENT TABLES WE MUST HAVE DATA TYPE AND LENGTH SAME AND TRY TO USE &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF IT_HPA IS NOT INITIAL.&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;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2007 09:08:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-data-element/m-p/2454699#M550322</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-26T09:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: problem in data element</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-data-element/m-p/2454700#M550323</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 field PERNR and PARNR are different.So u can't directly write in the where condition.Try like this as given jayanti&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not it_ihpa[] is initial.&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+4(8).&lt;/P&gt;&lt;P&gt;endif. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2007 09:22:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-data-element/m-p/2454700#M550323</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2007-06-26T09:22:51Z</dc:date>
    </item>
  </channel>
</rss>

