<?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>Question Re: Data Type Mismatch Error in Calculation View in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/data-type-mismatch-error-in-calculation-view/qaa-p/10006366#M3601740</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have had to do the same thing when I had different data types for two different sources within a union. As far as I know this is the only workaround.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Justin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 18 Jan 2014 02:34:52 GMT</pubDate>
    <dc:creator>justin_molenaur2</dc:creator>
    <dc:date>2014-01-18T02:34:52Z</dc:date>
    <item>
      <title>Data Type Mismatch Error in Calculation View</title>
      <link>https://community.sap.com/t5/technology-q-a/data-type-mismatch-error-in-calculation-view/qaq-p/10006364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp; &lt;/P&gt;&lt;P&gt;I am trying to union a BW table and a ECC table in my calculation view. I am getting the following error,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Internal deployment of object failed;Repository: Encountered an error in repository runtime extension;Internal Error:Create Scenario: failed aCalcEngine.createScenario(): The following errors occured: Inconsistent calculation model (34011)nDetails (Errors):n- CalculationNode (Union_1): Datatype fixed12.3(15) of QUANTITY does not match to datatype fixed14.3(17) of attribute QUANT_B in node XXXXXX.n- CalculationNode (Union_1): Datatype fixed11.2(13) of SUBTOTAL does not match to datatype fixed15.2(17) of attribute SUBTOT_5S in node XXXXXXX&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried creating a target field in the union(with predefined data type). I am not able to find any 'note' or forum discussions regarding this.&lt;/P&gt;&lt;P&gt;Can someone help me with this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Benedict&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jan 2014 19:20:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/data-type-mismatch-error-in-calculation-view/qaq-p/10006364</guid>
      <dc:creator>BenedictV</dc:creator>
      <dc:date>2014-01-13T19:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: Data Type Mismatch Error in Calculation View</title>
      <link>https://community.sap.com/t5/technology-q-a/data-type-mismatch-error-in-calculation-view/qaa-p/10006365#M3601739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just created a 'projection' node and then created a new calculated column and changed the decimal sizes of "12.3(15) of QUANTITY" to 17,3 and "11.2(13) of SUBTOTAL" to 17,2 since those were the decimal sizes in the replicated BW tables and this solved it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will keep this discussion 'open' for sometime to see if there's a different solution to this and to confirm if my solution is the right approach.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Benedict&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jan 2014 19:40:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/data-type-mismatch-error-in-calculation-view/qaa-p/10006365#M3601739</guid>
      <dc:creator>BenedictV</dc:creator>
      <dc:date>2014-01-13T19:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: Data Type Mismatch Error in Calculation View</title>
      <link>https://community.sap.com/t5/technology-q-a/data-type-mismatch-error-in-calculation-view/qaa-p/10006366#M3601740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have had to do the same thing when I had different data types for two different sources within a union. As far as I know this is the only workaround.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Justin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Jan 2014 02:34:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/data-type-mismatch-error-in-calculation-view/qaa-p/10006366#M3601740</guid>
      <dc:creator>justin_molenaur2</dc:creator>
      <dc:date>2014-01-18T02:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: Data Type Mismatch Error in Calculation View</title>
      <link>https://community.sap.com/t5/technology-q-a/data-type-mismatch-error-in-calculation-view/qaa-p/10006367#M3601741</link>
      <description>&lt;P&gt;Hello Benedict,&lt;/P&gt;&lt;P&gt;In my scenario I had a few tables that had the various ID's in multiple tables that were causing me issue.&lt;/P&gt;&lt;P&gt;To mention I was using the remote source MSSQL server to create virtual tables and the star join that was giving me the same   issue.&lt;/P&gt;&lt;P&gt;To solve it the way I tried it is :&lt;/P&gt;&lt;UL&gt;&lt;LI&gt; Created a User Defined Scalar Function to convert BIGINT&lt;/LI&gt;&lt;LI&gt; Created my dimension and Fact calculation views and used the scalar function to convert in semantics.&lt;/LI&gt;&lt;LI&gt; I used the scalar function  at both the places to make my columns same in fact and dimension that was giving me issues  &lt;/LI&gt;&lt;LI&gt; Used the Fact and Dimension Calculation views in Star Join and created it successfully.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Please let me know if you have any feedback.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sumit&lt;/P&gt;</description>
      <pubDate>Sat, 29 Feb 2020 15:39:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/data-type-mismatch-error-in-calculation-view/qaa-p/10006367#M3601741</guid>
      <dc:creator>Sumit_Gupta</dc:creator>
      <dc:date>2020-02-29T15:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: Data Type Mismatch Error in Calculation View</title>
      <link>https://community.sap.com/t5/technology-q-a/data-type-mismatch-error-in-calculation-view/qaa-p/10006368#M3601742</link>
      <description>&lt;P&gt;  &lt;SPAN class="mention-scrubbed"&gt;sumit.gupta&lt;/SPAN&gt; : Sorry to tell you this, but besides the point that you resurrected a six-year old thread, you also came up with a way to solve the problem that isn't really good.&lt;/P&gt;&lt;P&gt;With the use of a UDF you do add quite a lot of overhead to every query execution where the converted columns are used. And that for something as simple and straight-forward as a type-cast. &lt;/P&gt;&lt;P&gt;Benedicts original solution - simply casting the columns to the desired data type in a projection - is correct and most effecient (if changing the underlying table is not an option).&lt;/P&gt;&lt;P&gt;I would highly recommend to review your solution and remove the scalar function if it does nothing more than changing the data type via casting.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 02:06:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/data-type-mismatch-error-in-calculation-view/qaa-p/10006368#M3601742</guid>
      <dc:creator>lbreddemann</dc:creator>
      <dc:date>2020-03-02T02:06:59Z</dc:date>
    </item>
  </channel>
</rss>

