<?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 user function marco in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-function-marco/m-p/4451819#M1055533</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'm facing a problem with a user function in a marco.&lt;/P&gt;&lt;P&gt;I have my macro, I've defined my function module but I don't how how to save data in my planning book from the function.&lt;/P&gt;&lt;P&gt;I would like to fill in a specific key figure in my plannig book (so that users see a specific, calculated value).&lt;/P&gt;&lt;P&gt;But I don't know how I should pass this from within my function module to my planning book. &lt;/P&gt;&lt;P&gt;I can go into debug, and I see my selections an stuff but don't know how to continue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;P&gt;Caroline,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Sep 2008 14:37:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-17T14:37:41Z</dc:date>
    <item>
      <title>user function marco</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-function-marco/m-p/4451819#M1055533</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'm facing a problem with a user function in a marco.&lt;/P&gt;&lt;P&gt;I have my macro, I've defined my function module but I don't how how to save data in my planning book from the function.&lt;/P&gt;&lt;P&gt;I would like to fill in a specific key figure in my plannig book (so that users see a specific, calculated value).&lt;/P&gt;&lt;P&gt;But I don't know how I should pass this from within my function module to my planning book. &lt;/P&gt;&lt;P&gt;I can go into debug, and I see my selections an stuff but don't know how to continue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;P&gt;Caroline,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2008 14:37:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-function-marco/m-p/4451819#M1055533</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-17T14:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: user function marco</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-function-marco/m-p/4451820#M1055534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Only from past experience I &lt;EM&gt;think&lt;/EM&gt; I know that this relates to PP module? Sales &amp;amp; operation planning?&lt;/P&gt;&lt;P&gt;If you don't find an answer here, check in &lt;SPAN __jive_macro_name="forum" id="144"&gt;&lt;/SPAN&gt; as well (if I'm not completely mistaken).&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2008 14:45:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-function-marco/m-p/4451820#M1055534</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2008-09-17T14:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: user function marco</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-function-marco/m-p/4451821#M1055535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, I will have a look.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2008 05:36:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-function-marco/m-p/4451821#M1055535</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-18T05:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: user function marco</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-function-marco/m-p/4451822#M1055536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am sure you have figured this out by now, but I was just trying to figure out user functions in macros myself, and have the answer for any others...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you define a function as User Function in the Macro Workbench, the large parameter screen which appears has certain parameters forced on you - value_tab, f_argument and f_calc_error.  Value_tab will contain all the parameters which you pass to the function, and f_argument (you have to select whether it is a value or a string) will contain the value you want to pass back to the macro (i.e. a value in this case).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a) your function interface needs to have these 3 changing/table parameters with the same names and types&lt;/P&gt;&lt;P&gt;b) at the end of the function, set f_argument to the result of the calculation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thats it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Jason Calcutt on Jul 21, 2009 5:59 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2009 15:58:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-function-marco/m-p/4451822#M1055536</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-21T15:58:48Z</dc:date>
    </item>
  </channel>
</rss>

