<?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 Interface method Signature... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/interface-method-signature/m-p/1306576#M160265</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;Is there any Function Module that can be used to modify&lt;/P&gt;&lt;P&gt;the signature of a method in an interface from code??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to write a FM that imports the interface and&lt;/P&gt;&lt;P&gt;method name and changes the method signature..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls Help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 May 2006 06:38:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-05-12T06:38:40Z</dc:date>
    <item>
      <title>Interface method Signature...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interface-method-signature/m-p/1306576#M160265</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;Is there any Function Module that can be used to modify&lt;/P&gt;&lt;P&gt;the signature of a method in an interface from code??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to write a FM that imports the interface and&lt;/P&gt;&lt;P&gt;method name and changes the method signature..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls Help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 May 2006 06:38:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interface-method-signature/m-p/1306576#M160265</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-12T06:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: Interface method Signature...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interface-method-signature/m-p/1306577#M160266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't understand what you try to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Signature of a method cannot be changed. What you have to do is to create a new method with new signature.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 May 2006 14:46:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interface-method-signature/m-p/1306577#M160266</guid>
      <dc:creator>franois_henrotte</dc:creator>
      <dc:date>2006-05-17T14:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: Interface method Signature...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interface-method-signature/m-p/1306578#M160267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a sample program which will give you thep signature of the class/methods.    I'm not sure how to update them, or if it is a good idea to do so.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0003.


data: l_dref  type ref to cl_abap_typedescr.
data: l_clref  type ref to cl_abap_classdescr.
data: x_methods type abap_methdescr.
data: x_parameters type abap_parmdescr.

constants: query_class type seoclsname
                    value 'CL_GUI_ALV_GRID'.

* check if query_class exists in the current system
call method cl_abap_classdescr=&amp;gt;describe_by_name
  exporting
    p_name         = query_class
  receiving
      p_descr_ref = l_dref
  exceptions
    type_not_found = 1
    others         = 2.
if sy-subrc &amp;lt;&amp;gt; 0.
  exit.
endif.

l_clref ?= l_dref.

loop at l_clref-&amp;gt;methods into x_methods.

  write:/ x_methods-name.

  loop at x_methods-parameters into x_parameters.
    write:/     x_parameters-length,
        x_parameters-decimals,
        x_parameters-type_kind,
        x_parameters-name,
        x_parameters-parm_kind     .

  endloop.

  skip 3.


endloop.

&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;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 May 2006 14:56:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interface-method-signature/m-p/1306578#M160267</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-05-17T14:56:10Z</dc:date>
    </item>
  </channel>
</rss>

