<?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: fetching data from CDHDR and CDPOS table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-data-from-cdhdr-and-cdpos-table/m-p/5616222#M1279556</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CDPOS is a cluster table , you cannot put a JOIN in this table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 May 2009 15:15:45 GMT</pubDate>
    <dc:creator>former_member194669</dc:creator>
    <dc:date>2009-05-07T15:15:45Z</dc:date>
    <item>
      <title>fetching data from CDHDR and CDPOS table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-data-from-cdhdr-and-cdpos-table/m-p/5616221#M1279555</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 need to fetch the UTIME,UDATE and TCODE from CDHDR table and field TABNAME from the table CDPOS table by passing or joining the PO tables (EKKO and EKPO) values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could any one show me how to do this with out effecting the performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I pass ebeln to objectid of CDPOS table I am getting multiple entries , so will i need to join with EKPO or EKKO . I am confused on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;sai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2009 15:08:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-data-from-cdhdr-and-cdpos-table/m-p/5616221#M1279555</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-07T15:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: fetching data from CDHDR and CDPOS table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-data-from-cdhdr-and-cdpos-table/m-p/5616222#M1279556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CDPOS is a cluster table , you cannot put a JOIN in this table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2009 15:15:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-data-from-cdhdr-and-cdpos-table/m-p/5616222#M1279556</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2009-05-07T15:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: fetching data from CDHDR and CDPOS table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-data-from-cdhdr-and-cdpos-table/m-p/5616223#M1279557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Pass Object Class = EINKBELEG and Tabname = EKKO or EKPO in CDPOS table and fetch the needed fields &lt;/P&gt;&lt;P&gt;If not pass the Object Class = EINKBELEG  and Date(if you know) to CDHDR, take the Changenr and objectid and pass to CDPOS and fetch the required fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Anji Reddy Vangala on May 7, 2009 5:20 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2009 15:20:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-data-from-cdhdr-and-cdpos-table/m-p/5616223#M1279557</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-07T15:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: fetching data from CDHDR and CDPOS table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-data-from-cdhdr-and-cdpos-table/m-p/5616224#M1279558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this way to get the Change time and date for the Purchase orders...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

  SELECT *  FROM cdhdr INTO TABLE change_tab
                             WHERE objectclas = 'EINKBELEG'
                               AND objectid   = ekpo-ebeln.

  SORT change_tab.

  CONCATENATE sy-mandt ekpo-ebeln ekpo-ebelp INTO itemstring.

   LOOP AT change_tab.
    SELECT * FROM cdpos WHERE objectclas = 'EINKBELEG' AND
                              objectid   = ekpo-ebeln  AND
                              changenr   = change_tab AND
                              ( tabname  = 'EKKO'  OR
                                tabname  = 'EKPO' )   .
   ENDLOOP.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Prabhudas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2009 15:23:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetching-data-from-cdhdr-and-cdpos-table/m-p/5616224#M1279558</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-07T15:23:24Z</dc:date>
    </item>
  </channel>
</rss>

