<?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 How to Link Tables having different data types in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-link-tables-having-different-data-types/m-p/6108293#M1361694</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;I am new to ABAP.My requirement is to fetch data from CCIHT_WAH,CCIHT_IHVA and AUSP Tables.I can link CCIHT_WAH and CCIHT_IHVA tables using CCIHT_WAH-RECN = CCIHT_IHVA-RECNROOT.Also I want to establish a link between  CCIHT_IHVA and AUSP Tables.When I look into these Tables I found similar data in RECN and OBJEK fields,but the data types and size of these fields doesn't match.So I was unable to link these Tables.I Read in SDN that there is a link between these Tables  using CCIHT_WAH-RECN = CCIHT_IHVA-RECNROOT.&lt;/P&gt;&lt;P&gt;Can Any one pls help me to sort out these issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regds,&lt;/P&gt;&lt;P&gt;Sam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Aug 2009 14:24:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-08-25T14:24:04Z</dc:date>
    <item>
      <title>How to Link Tables having different data types</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-link-tables-having-different-data-types/m-p/6108293#M1361694</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;I am new to ABAP.My requirement is to fetch data from CCIHT_WAH,CCIHT_IHVA and AUSP Tables.I can link CCIHT_WAH and CCIHT_IHVA tables using CCIHT_WAH-RECN = CCIHT_IHVA-RECNROOT.Also I want to establish a link between  CCIHT_IHVA and AUSP Tables.When I look into these Tables I found similar data in RECN and OBJEK fields,but the data types and size of these fields doesn't match.So I was unable to link these Tables.I Read in SDN that there is a link between these Tables  using CCIHT_WAH-RECN = CCIHT_IHVA-RECNROOT.&lt;/P&gt;&lt;P&gt;Can Any one pls help me to sort out these issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regds,&lt;/P&gt;&lt;P&gt;Sam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2009 14:24:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-link-tables-having-different-data-types/m-p/6108293#M1361694</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-25T14:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to Link Tables having different data types</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-link-tables-having-different-data-types/m-p/6108294#M1361695</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;Before linking this you need take a seperate internal table of same data type of OBJEK.loop the table CCIHT_IHVA  and pass field&lt;/P&gt;&lt;P&gt;data to internal table.&lt;/P&gt;&lt;P&gt;                         Using this internal table you select the data from table AUSP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raghu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2009 14:28:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-link-tables-having-different-data-types/m-p/6108294#M1361695</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-25T14:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to Link Tables having different data types</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-link-tables-having-different-data-types/m-p/6108295#M1361696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raghu,&lt;/P&gt;&lt;P&gt;Thanx for ur immediate reply.&lt;/P&gt;&lt;P&gt;OBJEK field in AUSP Table is a Character data type with field length 50 whereas RECN in CCIHT_IHVA Table is a NUMC data type with a field length of 20.Can I be able to link these 2 tables? Will I have to make these 2 field types equal and if so how?&lt;/P&gt;&lt;P&gt;Your Answer is highly appreciable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regds,&lt;/P&gt;&lt;P&gt;Sam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2009 14:42:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-link-tables-having-different-data-types/m-p/6108295#M1361696</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-25T14:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to Link Tables having different data types</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-link-tables-having-different-data-types/m-p/6108296#M1361697</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 internal table declarations of these fields, declare both the fields as type char of some specific length. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Though their original type is different, data can be selected and the tables can be linked by declaring both the fields as char type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2009 14:47:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-link-tables-having-different-data-types/m-p/6108296#M1361697</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-25T14:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to Link Tables having different data types</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-link-tables-having-different-data-types/m-p/6108297#M1361698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vik,&lt;/P&gt;&lt;P&gt;Thanx for ur Prompt reply.&lt;/P&gt;&lt;P&gt;As per ur suggestion I created an Internal Table IT_CCIHT_IHVA and declared RECN(50) TYPE C.But when I am fetching data from CCIHT_IHVA and storing into this internal table,system is showing Dump error.Error description is as follows:&lt;STRONG&gt;Error in module RSQL of the database interface&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;I am using the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Declaration:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;TYPES : BEGIN OF STRU_CCIHT_IHVA,&lt;/P&gt;&lt;P&gt;          RECN(50) TYPE C,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; RECN TYPE CCIHT_IHVA-RECN,&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          RECNROOT TYPE CCIHT_IHVA-RECNROOT,&lt;/P&gt;&lt;P&gt;          RECNTOBJ TYPE CCIHT_IHVA-RECNTOBJ,&lt;/P&gt;&lt;P&gt;          IHVALCAT TYPE CCIHT_IHVA-IHVALCAT,&lt;/P&gt;&lt;P&gt;             CLASS TYPE KLAH-CLASS,&lt;/P&gt;&lt;P&gt;        END OF STRU_CCIHT_IHVA.&lt;/P&gt;&lt;P&gt;DATA : IT_CCIHT_IHVA TYPE STANDARD TABLE OF STRU_CCIHT_IHVA,&lt;/P&gt;&lt;P&gt;       WA_CCIHT_IHVA TYPE STRU_CCIHT_IHVA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Selection:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;SELECT RECNROOT&lt;/P&gt;&lt;P&gt;         RECNTOBJ&lt;/P&gt;&lt;P&gt;         IHVALCAT&lt;/P&gt;&lt;P&gt;         RECN&lt;/P&gt;&lt;P&gt;         FROM CCIHT_IHVA&lt;/P&gt;&lt;P&gt;         INTO TABLE IT_CCIHT_IHVA&lt;/P&gt;&lt;P&gt;         FOR ALL ENTRIES IN IT_CCIHT_WAH&lt;/P&gt;&lt;P&gt;         WHERE RECNROOT EQ IT_CCIHT_WAH-RECN AND&lt;/P&gt;&lt;P&gt;         RECNTOBJ EQ IT_CCIHT_WAH-RECN AND&lt;/P&gt;&lt;P&gt;         IHVALCAT EQ P_CNTCL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls help me in this matter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regds,&lt;/P&gt;&lt;P&gt;Sam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2009 15:20:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-link-tables-having-different-data-types/m-p/6108297#M1361698</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-25T15:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to Link Tables having different data types</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-link-tables-having-different-data-types/m-p/6108298#M1361699</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 statement, use the same order of fields as that of what you have declared in the internal table and check if you are still getting the dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECT RECN 
RECNROOT
RECNTOBJ
IHVALCAT
FROM CCIHT_IHVA
INTO TABLE IT_CCIHT_IHVA
FOR ALL ENTRIES IN IT_CCIHT_WAH
WHERE RECNROOT EQ IT_CCIHT_WAH-RECN AND
RECNTOBJ EQ IT_CCIHT_WAH-RECN AND
IHVALCAT EQ P_CNTCL.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2009 16:59:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-link-tables-having-different-data-types/m-p/6108298#M1361699</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-25T16:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to Link Tables having different data types</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-link-tables-having-different-data-types/m-p/6108299#M1361700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vik,&lt;/P&gt;&lt;P&gt;Thank u very much for ur valuable input.My problem is solved now.&lt;/P&gt;&lt;P&gt;Wishing u all the best.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regds,&lt;/P&gt;&lt;P&gt;Sam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2009 18:55:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-link-tables-having-different-data-types/m-p/6108299#M1361700</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-25T18:55:09Z</dc:date>
    </item>
  </channel>
</rss>

