<?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: JOIN error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-error/m-p/2315827#M507789</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Check the declaration of IT_WRKGDATES&lt;/P&gt;&lt;P&gt;it refers a dataelement EINDT, it is not a table. change it first&lt;/P&gt;&lt;P&gt;DATA IT_WRKGDATES TYPE STANDARD TABLE OF EINDT WITH HEADER LINE .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then this is not a internal table since WITH HEADER LINE is not added to it.&lt;/P&gt;&lt;P&gt;So It stores a single date field in this case.&lt;/P&gt;&lt;P&gt;what's your requirement for this internal table?&lt;/P&gt;&lt;P&gt;You want an internal table with just one date field?&lt;/P&gt;&lt;P&gt;So it is not possible to fetch the values  of this declaration in the where condition.&lt;/P&gt;&lt;P&gt;first change the decalaration then put multiple dates in that and use in the where condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points 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>Mon, 14 May 2007 18:16:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-14T18:16:29Z</dc:date>
    <item>
      <title>JOIN error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-error/m-p/2315825#M507787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all, I have written the following join:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;  IT_WRKGDATES TYPE STANDARD TABLE OF EINDT.&lt;/P&gt;&lt;P&gt; DATA:&lt;/P&gt;&lt;P&gt;  WA_WRKGDATES TYPE EINDT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            SELECT EINDT MENGE&lt;/P&gt;&lt;P&gt;            INTO CORRESPONDING FIELDS OF TABLE IT_RELEASE&lt;/P&gt;&lt;P&gt;            FROM&lt;/P&gt;&lt;P&gt;            EKEK AS A&lt;/P&gt;&lt;P&gt;            JOIN EKEH AS B&lt;/P&gt;&lt;P&gt;            ON&lt;/P&gt;&lt;P&gt;            A&lt;SUB&gt;EBELN = B&lt;/SUB&gt;EBELN AND&lt;/P&gt;&lt;P&gt;            A&lt;SUB&gt;EBELP = B&lt;/SUB&gt;EBELP AND&lt;/P&gt;&lt;P&gt;            A&lt;SUB&gt;ABART = B&lt;/SUB&gt;ABART AND&lt;/P&gt;&lt;P&gt;            A&lt;SUB&gt;ABRUF = B&lt;/SUB&gt;ABRUF&lt;/P&gt;&lt;P&gt;            WHERE&lt;/P&gt;&lt;P&gt;            A~EBELN = WA_PURDOC-EBELN AND&lt;/P&gt;&lt;P&gt;            A~EBELP = WA_PURDOC-EBELP AND&lt;/P&gt;&lt;P&gt;            A~ABART = '2' AND&lt;/P&gt;&lt;P&gt;            B~EINDT IN IT_WRKGDATES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I needed to run this query for all records in the internal table IT_WRKGDATES...but the system gives the error "The line structure of the table IT_WRKGDATES is incorrect"..&lt;/P&gt;&lt;P&gt;Can anybody suggest what the problem might be?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 18:03:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join-error/m-p/2315825#M507787</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-14T18:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: JOIN error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-error/m-p/2315826#M507788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Puri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; do this way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT EINDT MENGE&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE IT_RELEASE&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;EKEK AS A&lt;/P&gt;&lt;P&gt;JOIN EKEH AS B&lt;/P&gt;&lt;P&gt;ON&lt;/P&gt;&lt;P&gt;A&lt;SUB&gt;EBELN = B&lt;/SUB&gt;EBELN AND&lt;/P&gt;&lt;P&gt;A&lt;SUB&gt;EBELP = B&lt;/SUB&gt;EBELP AND&lt;/P&gt;&lt;P&gt;A&lt;SUB&gt;ABART = B&lt;/SUB&gt;ABART AND&lt;/P&gt;&lt;P&gt;A&lt;SUB&gt;ABRUF = B&lt;/SUB&gt;ABRUF&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;FOR ALL ENTRIES IN IT_WRKGDATES&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;WHERE&lt;/P&gt;&lt;P&gt;A~EBELN = WA_PURDOC-EBELN AND&lt;/P&gt;&lt;P&gt;A~EBELP = WA_PURDOC-EBELP AND&lt;/P&gt;&lt;P&gt;A~ABART = '2' AND&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;B~EINDT  = IT_WRKGDATES-EINDT.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 18:09:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join-error/m-p/2315826#M507788</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-14T18:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: JOIN error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-error/m-p/2315827#M507789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Check the declaration of IT_WRKGDATES&lt;/P&gt;&lt;P&gt;it refers a dataelement EINDT, it is not a table. change it first&lt;/P&gt;&lt;P&gt;DATA IT_WRKGDATES TYPE STANDARD TABLE OF EINDT WITH HEADER LINE .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then this is not a internal table since WITH HEADER LINE is not added to it.&lt;/P&gt;&lt;P&gt;So It stores a single date field in this case.&lt;/P&gt;&lt;P&gt;what's your requirement for this internal table?&lt;/P&gt;&lt;P&gt;You want an internal table with just one date field?&lt;/P&gt;&lt;P&gt;So it is not possible to fetch the values  of this declaration in the where condition.&lt;/P&gt;&lt;P&gt;first change the decalaration then put multiple dates in that and use in the where condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points 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>Mon, 14 May 2007 18:16:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join-error/m-p/2315827#M507789</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-14T18:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: JOIN error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-error/m-p/2315828#M507790</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;&amp;lt;b&amp;gt;LOOP AT IT_WRKGDATES.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT &amp;lt;b&amp;gt;B&lt;SUB&gt;EINDT B&lt;/SUB&gt;MENGE&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE IT_RELEASE&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;EKEK AS A&lt;/P&gt;&lt;P&gt;JOIN EKEH AS B&lt;/P&gt;&lt;P&gt;ON&lt;/P&gt;&lt;P&gt;A&lt;SUB&gt;EBELN = B&lt;/SUB&gt;EBELN AND&lt;/P&gt;&lt;P&gt;A&lt;SUB&gt;EBELP = B&lt;/SUB&gt;EBELP AND&lt;/P&gt;&lt;P&gt;A&lt;SUB&gt;ABART = B&lt;/SUB&gt;ABART AND&lt;/P&gt;&lt;P&gt;A&lt;SUB&gt;ABRUF = B&lt;/SUB&gt;ABRUF&lt;/P&gt;&lt;P&gt;WHERE&lt;/P&gt;&lt;P&gt;A~EBELN = WA_PURDOC-EBELN AND&lt;/P&gt;&lt;P&gt;A~EBELP = WA_PURDOC-EBELP AND&lt;/P&gt;&lt;P&gt;A~ABART = '2' AND&lt;/P&gt;&lt;P&gt;B~EINDT &amp;lt;b&amp;gt;= IT_WRKGDATES-EINDT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;SAB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 18:20:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join-error/m-p/2315828#M507790</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-14T18:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: JOIN error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-error/m-p/2315829#M507791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The error it gives is: The type EINDT has no structure and therefore no component called "EINDT"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 18:46:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join-error/m-p/2315829#M507791</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-14T18:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: JOIN error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-error/m-p/2315830#M507792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My requirement is that i need to select all records from this join for all the matching conditions and for each record of the internal table IT_WRKGDATES.&lt;/P&gt;&lt;P&gt;This internal table contains just one field of dates and this date should match the B~EINDT date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so suppose the internal table has 2 dates(01/01/2001 and 02/02/2002) and there are 4 matching records in the join with dates (01/01/2001,01/01/2001 and 02/02/2002,03/03/2003) then the resultand table IT_RELEASE should have 3 records.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 18:51:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join-error/m-p/2315830#M507792</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-14T18:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: JOIN error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-error/m-p/2315831#M507793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anmol,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;DATA: BEGIN OF IT_WRKGDATES OCCURS 0,&lt;/P&gt;&lt;P&gt;       EINDT TYPE EINDT.&lt;/P&gt;&lt;P&gt;      END OF IT_WRKGDATES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;FILL THE IT_WRKGDATES TABLE WITH RECORDS AND ALSO WA_PURDOC WORK AREA.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT IT_WRKGDATES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT B&lt;SUB&gt;EINDT B&lt;/SUB&gt;MENGE&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE IT_RELEASE&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;EKEK AS A&lt;/P&gt;&lt;P&gt;JOIN EKEH AS B&lt;/P&gt;&lt;P&gt;ON&lt;/P&gt;&lt;P&gt;A&lt;SUB&gt;EBELN = B&lt;/SUB&gt;EBELN AND&lt;/P&gt;&lt;P&gt;A&lt;SUB&gt;EBELP = B&lt;/SUB&gt;EBELP AND&lt;/P&gt;&lt;P&gt;A&lt;SUB&gt;ABART = B&lt;/SUB&gt;ABART AND&lt;/P&gt;&lt;P&gt;A&lt;SUB&gt;ABRUF = B&lt;/SUB&gt;ABRUF&lt;/P&gt;&lt;P&gt;WHERE&lt;/P&gt;&lt;P&gt;A~EBELN = WA_PURDOC-EBELN AND&lt;/P&gt;&lt;P&gt;A~EBELP = WA_PURDOC-EBELP AND&lt;/P&gt;&lt;P&gt;A~ABART = '2' AND&lt;/P&gt;&lt;P&gt;B~EINDT = IT_WRKGDATES-EINDT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT IT_RELEASE BY EINDT.&lt;/P&gt;&lt;P&gt;DELETE ADJACENT DUPLICATES FROM IT_RELEASE COMPARING EINDT.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;SAB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 19:20:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join-error/m-p/2315831#M507793</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-14T19:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: JOIN error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-error/m-p/2315832#M507794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Santosh's solution helped, Thanks all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 20:31:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join-error/m-p/2315832#M507794</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-14T20:31:36Z</dc:date>
    </item>
  </channel>
</rss>

