<?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 Select Query in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/4028404#M962706</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; While debuggung my report it shows an error When using the addition "FOR ALL ENTRIES IN itab", the fields "OBJECTID" and "ITAB_EIPA-EBELN" must have the same type and length.		&lt;/P&gt;&lt;P&gt;I m sending u some line of my codes, where it is showing an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:begin of itab_cdhdr occurs 0,&lt;/P&gt;&lt;P&gt;      OBJECTID like eipa-ebeln,&lt;/P&gt;&lt;P&gt;      UDATE like cdhdr-UDATE,&lt;/P&gt;&lt;P&gt;      TCODE like cdhdr-TCODE,&lt;/P&gt;&lt;P&gt;      end of itab_cdhdr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if itab_ekbe[] is not initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  select ebeln ebelp werks preis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      into  table itab_eipa&lt;/P&gt;&lt;P&gt;      from  eipa&lt;/P&gt;&lt;P&gt;      for all entries in itab_ekbe&lt;/P&gt;&lt;P&gt;      where   ebeln = itab_ekbe-ebeln    and&lt;/P&gt;&lt;P&gt;              ebelp = itab_ekbe-ebelp and&lt;/P&gt;&lt;P&gt;              werks eq  p_werks .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if itab_eipa[] is not initial.&lt;/P&gt;&lt;P&gt;      select  OBJECTID UDATE TCODE&lt;/P&gt;&lt;P&gt;      into  table itab_cdhdr&lt;/P&gt;&lt;P&gt;      from  cdhdr&lt;/P&gt;&lt;P&gt;      for all entries in itab_eipa&lt;/P&gt;&lt;P&gt;      where   OBJECTID = itab_eipa-ebeln&lt;/P&gt;&lt;P&gt;      and     TCODE    = 'ME29N'    .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;		&lt;/P&gt;&lt;P&gt;Plz tell what will b the possible solution.&lt;/P&gt;&lt;P&gt;definitely rwds pts,&lt;/P&gt;&lt;P&gt;Savita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jun 2008 05:26:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-18T05:26:00Z</dc:date>
    <item>
      <title>Select Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/4028404#M962706</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; While debuggung my report it shows an error When using the addition "FOR ALL ENTRIES IN itab", the fields "OBJECTID" and "ITAB_EIPA-EBELN" must have the same type and length.		&lt;/P&gt;&lt;P&gt;I m sending u some line of my codes, where it is showing an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:begin of itab_cdhdr occurs 0,&lt;/P&gt;&lt;P&gt;      OBJECTID like eipa-ebeln,&lt;/P&gt;&lt;P&gt;      UDATE like cdhdr-UDATE,&lt;/P&gt;&lt;P&gt;      TCODE like cdhdr-TCODE,&lt;/P&gt;&lt;P&gt;      end of itab_cdhdr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if itab_ekbe[] is not initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  select ebeln ebelp werks preis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      into  table itab_eipa&lt;/P&gt;&lt;P&gt;      from  eipa&lt;/P&gt;&lt;P&gt;      for all entries in itab_ekbe&lt;/P&gt;&lt;P&gt;      where   ebeln = itab_ekbe-ebeln    and&lt;/P&gt;&lt;P&gt;              ebelp = itab_ekbe-ebelp and&lt;/P&gt;&lt;P&gt;              werks eq  p_werks .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if itab_eipa[] is not initial.&lt;/P&gt;&lt;P&gt;      select  OBJECTID UDATE TCODE&lt;/P&gt;&lt;P&gt;      into  table itab_cdhdr&lt;/P&gt;&lt;P&gt;      from  cdhdr&lt;/P&gt;&lt;P&gt;      for all entries in itab_eipa&lt;/P&gt;&lt;P&gt;      where   OBJECTID = itab_eipa-ebeln&lt;/P&gt;&lt;P&gt;      and     TCODE    = 'ME29N'    .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;		&lt;/P&gt;&lt;P&gt;Plz tell what will b the possible solution.&lt;/P&gt;&lt;P&gt;definitely rwds pts,&lt;/P&gt;&lt;P&gt;Savita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 05:26:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/4028404#M962706</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-18T05:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/4028405#M962707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;inside itab_eipa declare another field as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;objectid like cdhdr-OBJECTID.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after the first select stmt use the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab_eipa.&lt;/P&gt;&lt;P&gt;itab_eipa-objectid = itab_eipa-ebeln.&lt;/P&gt;&lt;P&gt;modify itab_eipa transporting objectid.&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;if itab_eipa[] is not initial.&lt;/P&gt;&lt;P&gt;select OBJECTID UDATE TCODE&lt;/P&gt;&lt;P&gt;into table itab_cdhdr&lt;/P&gt;&lt;P&gt;from cdhdr&lt;/P&gt;&lt;P&gt;for all entries in itab_eipa&lt;/P&gt;&lt;P&gt;where OBJECTID = itab_eipa-objectid&lt;/P&gt;&lt;P&gt;and TCODE = 'ME29N' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 05:31:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/4028405#M962707</guid>
      <dc:creator>former_member195383</dc:creator>
      <dc:date>2008-06-18T05:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/4028406#M962708</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;in the select staements what u have written&lt;/P&gt;&lt;P&gt;select ebeln ebelp werks preis&lt;/P&gt;&lt;P&gt;into table itab_eipa&lt;/P&gt;&lt;P&gt;from eipa&lt;/P&gt;&lt;P&gt;for all entries in itab_ekbe&lt;/P&gt;&lt;P&gt;where ebeln = itab_ekbe-ebeln and&lt;/P&gt;&lt;P&gt;ebelp = itab_ekbe-ebelp and&lt;/P&gt;&lt;P&gt;werks eq p_werks .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the other one, when u r mentioning some fields u should use into corresonding clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify the above select as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select ebeln ebelp werks preis&lt;/P&gt;&lt;P&gt;from eipa into corresponding fields of table itab_eipa&lt;/P&gt;&lt;P&gt;for all entries in itab_ekbe&lt;/P&gt;&lt;P&gt;where ebeln = itab_ekbe-ebeln and&lt;/P&gt;&lt;P&gt;ebelp = itab_ekbe-ebelp and&lt;/P&gt;&lt;P&gt;werks eq p_werks .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***reward if useful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Ruby.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 05:32:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/4028406#M962708</guid>
      <dc:creator>former_member202474</dc:creator>
      <dc:date>2008-06-18T05:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/4028407#M962709</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;Lenght of both the variables should be same, try to declare of same length.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Susheel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 05:33:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/4028407#M962709</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-18T05:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/4028408#M962710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rudra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then also it is showing the same error &lt;/P&gt;&lt;P&gt;Savita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 05:40:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/4028408#M962710</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-18T05:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/4028409#M962711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;savita did u find he sol of 103,105.If not i will tell you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 05:42:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/4028409#M962711</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-18T05:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/4028410#M962712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the declaration part of internal table itab_ekbe, declare field 'ebeln type cdhdr-objectid'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 06:03:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/4028410#M962712</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-18T06:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: Select Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/4028411#M962713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;define objectid in the given format in the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OBJECTID like CDHDR-OBJECTID. &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;Venkat N&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 06:05:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query/m-p/4028411#M962713</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-18T06:05:02Z</dc:date>
    </item>
  </channel>
</rss>

