<?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 Upgrade error : Not mutually convertible in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/upgrade-error-not-mutually-convertible/m-p/7729985#M1580907</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am doing upgrade from 4.7 to ECC 6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got error in one program as shown below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;A line of "IT_PRD_COST" and "L_PRD" are not mutually convertible in aUnicode program. .&lt;/STRONG&gt;		&lt;/P&gt;&lt;P&gt;		&lt;/P&gt;&lt;P&gt;Actually declaration for these are shown below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data:  l_prd(200) type c,

data: begin of it_prd_cost occurs 0,
        matnr type mbew-matnr,
        date(10) type c,
        cost type mbew-verpr,
      end of it_prd_cost.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And code is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;insert l_prd into it_prd_cost index 1.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to rectify this one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Apr 2011 13:26:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-04-06T13:26:02Z</dc:date>
    <item>
      <title>Upgrade error : Not mutually convertible</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upgrade-error-not-mutually-convertible/m-p/7729985#M1580907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am doing upgrade from 4.7 to ECC 6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got error in one program as shown below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;A line of "IT_PRD_COST" and "L_PRD" are not mutually convertible in aUnicode program. .&lt;/STRONG&gt;		&lt;/P&gt;&lt;P&gt;		&lt;/P&gt;&lt;P&gt;Actually declaration for these are shown below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data:  l_prd(200) type c,

data: begin of it_prd_cost occurs 0,
        matnr type mbew-matnr,
        date(10) type c,
        cost type mbew-verpr,
      end of it_prd_cost.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And code is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;insert l_prd into it_prd_cost index 1.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to rectify this one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2011 13:26:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upgrade-error-not-mutually-convertible/m-p/7729985#M1580907</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-06T13:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: Upgrade error : Not mutually convertible</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upgrade-error-not-mutually-convertible/m-p/7729986#M1580908</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;Is this a standard program? Using implicit header lines is obsolete, you shouldn't do this. Aside from that you should move a local variable to a work area and append the work area to the itab; not the local variable to the table..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also the &lt;STRONG&gt;data types are inconvertible&lt;/STRONG&gt;. Your try to move a char field into a curr field, this can't really work out &lt;SPAN __jive_emoticon_name="confused"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is your own program and not sap-standard, better do something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPES: BEGIN OF ls_prd_cost_type,
             matnr type mbew-matnr,
             date(10) type c,
             cost type mbew-verpr,
             END OF ls_prd_cost_type.
TYPES: lt_prd_cost_type TYPE STANDARD TABLE OF ls_prd_cost_type.

DATA: ls_prd_cost TYPE ls_prd_cost_type.
DATA: lt_prd_cost TYPE lt_prd_cost_type.

DATA: lv_prd(200) TYPE c.

ls_prd_cost-cost = lv_prd. " This will not work with these data-types

APPEND ls_prd_cost TO lt_prd_cost.
CLEAR ls_prd_cost.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take a look at this document as well: &lt;A href="http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b02d3594-ae48-2a10-83a7-89d369b708e5" target="test_blank"&gt;http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b02d3594-ae48-2a10-83a7-89d369b708e5&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lukas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Lukas Weigelt on Apr 6, 2011 3:40 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2011 13:37:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upgrade-error-not-mutually-convertible/m-p/7729986#M1580908</guid>
      <dc:creator>Lukas_Weigelt</dc:creator>
      <dc:date>2011-04-06T13:37:58Z</dc:date>
    </item>
  </channel>
</rss>

