<?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: Syntax Error: Result Type of function method cannot be converted in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-result-type-of-function-method-cannot-be-converted/m-p/6342065#M1397605</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;RE_CLONE type ref to IF_ACCUMULATOR_TRG.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Nov 2009 21:26:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-11-04T21:26:21Z</dc:date>
    <item>
      <title>Syntax Error: Result Type of function method cannot be converted</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-result-type-of-function-method-cannot-be-converted/m-p/6342063#M1397603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perform stmt:       PERFORM get_delta_position_increases USING    l_p_accumulator&lt;/P&gt;&lt;P&gt;                                           CHANGING l_wrk_position.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Subroutine:&lt;/P&gt;&lt;P&gt;FORM get_delta_position_increases&lt;/P&gt;&lt;P&gt;  USING    i_p_accumulator    TYPE REF TO cl_accumulator_trg&lt;/P&gt;&lt;P&gt;  CHANGING c_wrk_rep_position TYPE        trls_rep_position.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: l_p_accumulator      TYPE REF TO cl_accumulator_trg,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get Clone of Accmumulator&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  l_p_accumulator = i_p_accumulator-&amp;gt;get_clone( ).  &lt;STRONG&gt;--&amp;gt; Syntax error pointing here&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD l_p_accumulator-&amp;gt;reset_values( ).&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax error I am getting:&lt;/P&gt;&lt;P&gt;Result Type of function method cannot be converted into the type of l_p_accumulator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any pointers please.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2009 20:28:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-result-type-of-function-method-cannot-be-converted/m-p/6342063#M1397603</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-04T20:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax Error: Result Type of function method cannot be converted</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-result-type-of-function-method-cannot-be-converted/m-p/6342064#M1397604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is the type of the returning parameter in method iget_clone( ) from class cl_accumulator_trg?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2009 21:16:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-result-type-of-function-method-cannot-be-converted/m-p/6342064#M1397604</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-04T21:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax Error: Result Type of function method cannot be converted</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-result-type-of-function-method-cannot-be-converted/m-p/6342065#M1397605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;RE_CLONE type ref to IF_ACCUMULATOR_TRG.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2009 21:26:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-result-type-of-function-method-cannot-be-converted/m-p/6342065#M1397605</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-04T21:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax Error: Result Type of function method cannot be converted</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-result-type-of-function-method-cannot-be-converted/m-p/6342066#M1397606</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; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: l_p_accumulator TYPE REF TO cl_accumulator_trg,&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you actually using a comma (,) instead of period, hope not. &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well, I tried to create a routine in my system and I do not get a syntax error.&lt;/P&gt;&lt;P&gt;If you still get an error you may try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;l_p_accumulator ?= i_p_accumulator-&amp;gt;get_clone( ).&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;Prasenjit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2009 21:28:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-result-type-of-function-method-cannot-be-converted/m-p/6342066#M1397606</guid>
      <dc:creator>prasenjit_sharma</dc:creator>
      <dc:date>2009-11-04T21:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax Error: Result Type of function method cannot be converted</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-result-type-of-function-method-cannot-be-converted/m-p/6342067#M1397607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, that's why. It's returning an interface, not a class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't have your class in my system, but most likely the interface implements that class&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something you could try is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;l_p_accumulator ?= i_p_accumulator-&amp;gt;get_clone( ).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2009 21:30:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-result-type-of-function-method-cannot-be-converted/m-p/6342067#M1397607</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-04T21:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax Error: Result Type of function method cannot be converted</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-result-type-of-function-method-cannot-be-converted/m-p/6342068#M1397608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nope. I just pasted the required code. I have couple more declarations.&lt;/P&gt;&lt;P&gt;even the ? did not solve the error. Any more clues plz.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: kiran dasari on Nov 5, 2009 3:37 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2009 21:42:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-result-type-of-function-method-cannot-be-converted/m-p/6342068#M1397608</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-04T21:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax Error: Result Type of function method cannot be converted</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-result-type-of-function-method-cannot-be-converted/m-p/6342069#M1397609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm.. thats interesting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Try to define the variable l_p_accumulator type ref to IF_ACCUMULATOR_TRG&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Prasenjit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2009 22:09:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-result-type-of-function-method-cannot-be-converted/m-p/6342069#M1397609</guid>
      <dc:creator>prasenjit_sharma</dc:creator>
      <dc:date>2009-11-04T22:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax Error: Result Type of function method cannot be converted</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-result-type-of-function-method-cannot-be-converted/m-p/6342070#M1397610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prashant,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried this yesterday only and still the same error. My bad...I should have included that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ANy more clues please.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;P&gt;Infact when I add ? to the line, save and then do syntax check...? disappears automatically. so is this something to look into also?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: kiran dasari on Nov 5, 2009 9:57 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2009 14:28:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-result-type-of-function-method-cannot-be-converted/m-p/6342070#M1397610</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-05T14:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax Error: Result Type of function method cannot be converted</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-result-type-of-function-method-cannot-be-converted/m-p/6342071#M1397611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kiran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; This is really weird. When I try in my system, the code that you have given works fine. Surprizing!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As an alternative you may try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data l_p_accumulator type ref to object.
data method type string VALUE 'RESET_VALUES'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then call the method as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL METHOD l_p_accumulator-&amp;gt;(METHOD).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Prasenjit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2009 17:57:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error-result-type-of-function-method-cannot-be-converted/m-p/6342071#M1397611</guid>
      <dc:creator>prasenjit_sharma</dc:creator>
      <dc:date>2009-11-05T17:57:34Z</dc:date>
    </item>
  </channel>
</rss>

