<?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: How to create a method with generic parameter? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-method-with-generic-parameter/m-p/10060485#M1810873</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;iv_param TYPE REF TO data&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Feb 2014 11:41:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-02-24T11:41:26Z</dc:date>
    <item>
      <title>How to create a method with generic parameter?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-method-with-generic-parameter/m-p/10060484#M1810872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I would like to know if it is possible to create a method that accepts an importing parameter with a generic data type, the scenario is I need my method to accept a parameter with any "NUMERIC" data type be it integers, floats , quantities but no character types so that the developer doesnt have to create intermediate variables when calling my method he could just pass the variable from his program and the casting happens inside my method, is this possible? and if it is then how ?.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 11:39:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-method-with-generic-parameter/m-p/10060484#M1810872</guid>
      <dc:creator>Abdelrahman-Elshafei</dc:creator>
      <dc:date>2014-02-24T11:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a method with generic parameter?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-method-with-generic-parameter/m-p/10060485#M1810873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;iv_param TYPE REF TO data&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 11:41:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-method-with-generic-parameter/m-p/10060485#M1810873</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-02-24T11:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a method with generic parameter?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-method-with-generic-parameter/m-p/10060486#M1810874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;the scenario is I need my method to accept a parameter with any "NUMERIC" data type be it integers, floats , quantities&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;ABAP has the generic type NUMERIC, you could have just typed NUMERIC. &lt;SPAN __jive_emoticon_name="wink" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/599/images/emoticons/wink.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keep these points in mind while doing generic programming - &lt;A href="http://help.sap.com/abapdocu_740/en/abentype_formal_param_guidl.htm" title="http://help.sap.com/abapdocu_740/en/abentype_formal_param_guidl.htm"&gt;http://help.sap.com/abapdocu_740/en/abentype_formal_param_guidl.htm&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A __default_attr="136591" __jive_macro_name="user" class="jive_macro_user jive_macro" data-orig-content="DEBOPRIYO MALLICK" href="https://community.sap.com/"&gt;&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;iv_param TYPE REF TO data&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;So you think data reference will not accept character-like actual parameters.&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, 24 Feb 2014 16:18:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-method-with-generic-parameter/m-p/10060486#M1810874</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2014-02-24T16:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a method with generic parameter?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-method-with-generic-parameter/m-p/10060487#M1810875</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;I think this is a good example for your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://wiki.scn.sap.com/wiki/display/Snippets/ABAP+OO+-+Generic+class+for+inserting,+updating+and+deleting+records"&gt;ABAP OO - Generic class for inserting, updating and deleting records&lt;/A&gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Abhijit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 16:42:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-create-a-method-with-generic-parameter/m-p/10060487#M1810875</guid>
      <dc:creator>Abhijit74</dc:creator>
      <dc:date>2014-02-24T16:42:44Z</dc:date>
    </item>
  </channel>
</rss>

