<?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: Incompatible formal parameter type in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/incompatible-formal-parameter-type/m-p/6717205#M1454760</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,  &lt;/P&gt;&lt;P&gt;  Sorry for that.&lt;/P&gt;&lt;P&gt;And you are right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Vamsi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Mar 2010 04:59:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-03-08T04:59:28Z</dc:date>
    <item>
      <title>Incompatible formal parameter type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/incompatible-formal-parameter-type/m-p/6717199#M1454754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear forumers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the following code is executed:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;perform clear_component_value using    c_ryyrkeg_wwsub
                                       &amp;lt;ls_movement&amp;gt;
                                      changing &amp;lt;lv_ryyrkeg_wwsub&amp;gt;.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following syntax error:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In PERFORM or CALL FUNCTION "CLEAR_COMPONENT_VALUE", the actual parameter "C_RYYRKEG_WWSUB" is incompatible with the formal parameter "PV_COMP_NAME".&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further codes:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;form CLEAR_COMPONENT_VALUE  using    pv_comp_name type char255 " How can I type this parameter properly? - tried type STRING too
                                     pv_fs_struct type any
                            changing pv_fs_var    type any.

  ASSIGN COMPONENT pv_comp_name OF STRUCTURE pv_fs_struct TO pv_fs_var.
  IF sy-subrc = 0.
    CLEAR pv_fs_var.
  ENDIF.

  UNASSIGN pv_fs_var.

endform.                    " CLEAR_COMPONENT_VALUE&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CONSTANTS:
  c_ryyrkeg_wwsub(13)  TYPE c VALUE 'RYYRKEG_WWSUB',
  c_racct(5)           TYPE c VALUE 'RACCT',
  c_ryymac(6)          TYPE c VALUE 'RYYMAC',
  c_rzzvbund(8)        TYPE c VALUE 'RZZVBUND',
  c_ryypma(6)          TYPE c VALUE 'RYYPMA',
  c_ryyrkeg_wwato(13)  TYPE c VALUE 'RYYRKEG_WWATO',
  c_rbukrs(6)          TYPE c VALUE 'RBUKRS',
  c_rtcur(5)           TYPE c VALUE 'RTCUR',
  c_tsl(3)             TYPE c VALUE 'TSL',
  c_hsl(3)             TYPE c VALUE 'HSL',
  c_ryear(5)           TYPE c VALUE 'RYEAR',
  c_tslvt(5)           TYPE c VALUE 'TSLVT',
  c_hslvt(5)           TYPE c VALUE 'HSLVT',
  c_rldnr(5)           TYPE c VALUE 'RLDNR'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How may I resolve this error, seeing that the PV_COMP_NAME should actually be constant variables of type c? Please help me out here. Appreciate any inputs at all. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Mar 2010 04:13:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/incompatible-formal-parameter-type/m-p/6717199#M1454754</guid>
      <dc:creator>former_member367551</dc:creator>
      <dc:date>2010-03-08T04:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: Incompatible formal parameter type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/incompatible-formal-parameter-type/m-p/6717200#M1454755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is because the lenght of the actual &amp;amp; the formal parameters are different.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand from your code that you are trying to assign the field of the dynamic structure to some field-symbol &amp;amp; the constants declared are nothing but the fields of the structure try defining all of them as TYPE FIELDNAME &amp;amp; use the same in your FORM declaration as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;form CLEAR_COMPONENT_VALUE  using    pv_comp_name type fieldname
                                     pv_fs_struct type any
                            changing pv_fs_var    type any&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Mar 2010 04:25:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/incompatible-formal-parameter-type/m-p/6717200#M1454755</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-03-08T04:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: Incompatible formal parameter type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/incompatible-formal-parameter-type/m-p/6717201#M1454756</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;1.form CLEAR_COMPONENT_VALUE  using    pv_comp_name like c_ryyrkeg_wwsub&lt;/P&gt;&lt;P&gt;                             pv_fs_struct type any&lt;/P&gt;&lt;P&gt;                            changing pv_fs_var    type any.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the value can't be chnaged inside the subroutine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.Decalre wvl_temp as c_ryyrkeg_wwsub and use that in form&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form CLEAR_COMPONENT_VALUE  using    pv_comp_name like wvl_temp&lt;/P&gt;&lt;P&gt;                             pv_fs_struct type any&lt;/P&gt;&lt;P&gt;                            changing pv_fs_var    type any.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can very well modify the values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Vamsi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Mar 2010 04:31:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/incompatible-formal-parameter-type/m-p/6717201#M1454756</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-08T04:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: Incompatible formal parameter type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/incompatible-formal-parameter-type/m-p/6717202#M1454757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Vamshi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you mean you cannot change the values of the formal params which are PASSED BY REFERENCE ? Please enlighten me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyways i donot see where the value of the param &lt;STRONG&gt;pv_comp_name&lt;/STRONG&gt; is changed in the sub-routine?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Mar 2010 04:39:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/incompatible-formal-parameter-type/m-p/6717202#M1454757</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-03-08T04:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: Incompatible formal parameter type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/incompatible-formal-parameter-type/m-p/6717203#M1454758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suhas,&lt;/P&gt;&lt;P&gt;  If you see my code block.&lt;/P&gt;&lt;P&gt;It will behave in the manner which i have told.&lt;/P&gt;&lt;P&gt;And i mean by "You cannot change the value is an information as it is &lt;STRONG&gt;disadvantage&lt;/STRONG&gt; " for my code block.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And your reply resolves, since the variable is not modified inside subroutine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Vamsi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Vamsi Krishna on Mar 8, 2010 5:45 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Mar 2010 04:45:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/incompatible-formal-parameter-type/m-p/6717203#M1454758</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-08T04:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: Incompatible formal parameter type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/incompatible-formal-parameter-type/m-p/6717204#M1454759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then you should rephrase your statement as : "You &lt;STRONG&gt;should&lt;/STRONG&gt; not change the values of a USING param". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FYI , even if you do so in Extended Syntax Check you will get a warning message for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Mar 2010 04:55:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/incompatible-formal-parameter-type/m-p/6717204#M1454759</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-03-08T04:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: Incompatible formal parameter type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/incompatible-formal-parameter-type/m-p/6717205#M1454760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,  &lt;/P&gt;&lt;P&gt;  Sorry for that.&lt;/P&gt;&lt;P&gt;And you are right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Vamsi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Mar 2010 04:59:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/incompatible-formal-parameter-type/m-p/6717205#M1454760</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-08T04:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: Incompatible formal parameter type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/incompatible-formal-parameter-type/m-p/6717206#M1454761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi deborah ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think make it char13 as it is defined as 13 char long&lt;/P&gt;&lt;P&gt;form CLEAR_COMPONENT_VALUE  using    pv_comp_name type char13&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this will help you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;tanmaya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Mar 2010 06:12:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/incompatible-formal-parameter-type/m-p/6717206#M1454761</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-08T06:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: Incompatible formal parameter type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/incompatible-formal-parameter-type/m-p/6717207#M1454762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suhas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Type FIELDNAME resolved the issue. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks to everyone for the inputs as well. &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Mar 2010 05:46:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/incompatible-formal-parameter-type/m-p/6717207#M1454762</guid>
      <dc:creator>former_member367551</dc:creator>
      <dc:date>2010-03-10T05:46:59Z</dc:date>
    </item>
  </channel>
</rss>

