<?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 declare a method in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/declare-a-method/m-p/1785482#M338312</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 writing code to populate a key figure in a structure. The formula is like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; kf1 = nodim(  kf2 ) * kf3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;nodim is a function - Value Without Dimension (Unit-free). This is used in a query to calculate a key figure. My requirement is to simulate the functionality in the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to declare or define the method or function 'nodim'?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Sachin Guptha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Dec 2006 14:51:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-04T14:51:24Z</dc:date>
    <item>
      <title>declare a method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declare-a-method/m-p/1785482#M338312</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 writing code to populate a key figure in a structure. The formula is like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; kf1 = nodim(  kf2 ) * kf3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;nodim is a function - Value Without Dimension (Unit-free). This is used in a query to calculate a key figure. My requirement is to simulate the functionality in the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to declare or define the method or function 'nodim'?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Sachin Guptha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2006 14:51:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declare-a-method/m-p/1785482#M338312</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-04T14:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: declare a method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declare-a-method/m-p/1785483#M338313</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;try something like&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CLASS calc DEFINITION.
  PUBLIC SECTION.
    CLASS-METHODS:
      nodim   
        importing kf_in  type any
        returning value(kf_out) type any.
ENDCLASS.
CLASS calc IMPLEMENTATION.
  METHOD nodim.
* do the nodim calculation here...
  kf_out = kf_in.
  ENDMETHOD.
ENDCLASS.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The code should work. Actually I have no idea about the algorithm behind NODIM.&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;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2006 15:14:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declare-a-method/m-p/1785483#M338313</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2006-12-04T15:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: declare a method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declare-a-method/m-p/1785484#M338314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Clemens,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try and let you know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2006 16:09:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declare-a-method/m-p/1785484#M338314</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-04T16:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: declare a method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declare-a-method/m-p/1785485#M338315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oops,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you may have noticed that it's syntactically not correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        returning value(kf_out) type any.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can not be type any. Specify INT4 or whatever may be applicable. Sorry.&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;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2006 16:24:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declare-a-method/m-p/1785485#M338315</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2006-12-04T16:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: declare a method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declare-a-method/m-p/1785486#M338316</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;I have a question. I am writing code to populate 2 key figures (kf1 and kf2). &lt;/P&gt;&lt;P&gt;kf1 = kf3 + kf4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kf2 = nodim(kf5) * kf6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code for kf1 already exists in a method. Where to write the CLASS definition and implementation for populating the second key figure (kf2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2006 19:00:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declare-a-method/m-p/1785486#M338316</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-04T19:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: declare a method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declare-a-method/m-p/1785487#M338317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sachin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;possibly I don't understand in depth what you are going to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You said&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kf1 = kf3 + kf4.&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;code for kf1 already exists in a method.&lt;/P&gt;&lt;P&gt;Does the method do the addition of kf3 + kf4? what's the method's name and where is it declared? Where do kf3 and kf4 come from?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still I don't know what the nodim function is going to do. nodim is used for dimensionless. What does thius mean in your contect? And where does kf5 and kf6 come from?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS definition and implementation can be written anywhere in your program or defined in the class builder making it reusable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the question is: if the implemented method is thought for populating the second key figure (kf2), then how to populate values (parameters?) kf5 and kf6 and how to interpret nodim function - is it just the decimal value of an exponential number a.bcdeEnn or what?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please explain the circumstances of the task (in other words: What the hell are you doing?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2006 21:21:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declare-a-method/m-p/1785487#M338317</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2006-12-04T21:21:14Z</dc:date>
    </item>
  </channel>
</rss>

