<?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: User-exits in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exits/m-p/7940225#M1600619</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;as mentioned earlier,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you could do is code your logic directly, and if there are too many lines of code and you want to modularize them, then you could create your subroutines in another include/sub routine pool and call it as PERFORM F_TEST IN PROGRAM sub routine pool program name or create a Z FM with your code and call this Z FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A ZFM sounds a better option in case you want to retain values of the variables involved during recursive calls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Jun 2011 08:36:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-06-30T08:36:07Z</dc:date>
    <item>
      <title>User-exits</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exits/m-p/7940216#M1600610</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;I need to call a subroutine recursively inside a User-exit. The problem is that I am unable to write the body of the subroutine in the EXIT (i get an error when i try to activate it). So i wrote the body in another include, but now the problem is that I am unable to pass the data into this new include. &lt;/P&gt;&lt;P&gt;Please help me with this.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message: please use more descriptive subject lines for your posts.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Thomas Zloch on Jun 29, 2011 11:08 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2011 15:43:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exits/m-p/7940216#M1600610</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-29T15:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: User-exits</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exits/m-p/7940217#M1600611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Export the data from User Exit  and Import the data inside the include and clear the data at the end of include&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2011 15:58:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exits/m-p/7940217#M1600611</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-29T15:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: User-exits</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exits/m-p/7940218#M1600612</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;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(i get an error when i try to activate it)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;What was the error, which user exit are you trying to code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Provide as much information as much as you can to get more helpful answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2011 04:27:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exits/m-p/7940218#M1600612</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-30T04:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: User-exits</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exits/m-p/7940219#M1600613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The error displayed is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;" Incorrect Nesting: Before the statement "FORM", the structure introduced by "FUNCTION" must be concluded by "ENDFUNCTION".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2011 05:13:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exits/m-p/7940219#M1600613</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-30T05:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: User-exits</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exits/m-p/7940220#M1600614</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;As you still didn't post the name of the exit &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;, looking at the error message, i guess you are trying to code a function exit.&lt;/P&gt;&lt;P&gt;In this exit, you are creating the Z Include and trying to code a subroutine within it, this is not allowed as you cannot have a subroutine definition within a Function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you could do is code your logic directly, and if there are too many lines of code and you want to modularize them, then you could create your subroutines in another include/sub routine pool and call it as PERFORM F_TEST IN PROGRAM [sub routine pool program name] or create a Z FM with your code and call this Z FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2011 05:24:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exits/m-p/7940220#M1600614</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-30T05:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: User-exits</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exits/m-p/7940221#M1600615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello aeterminator  ,&lt;/P&gt;&lt;P&gt;                                you are getting the error message because you are trying to write a form in form i.e nesting of forms ant that is not possible.&lt;/P&gt;&lt;P&gt;So it is better if you write your code without any sub routine.&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;try to write your code in include rather than subroutine.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
include z&amp;lt;name&amp;gt;.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;doubleclick that include and write your code there.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NOTE&lt;/STRONG&gt;  You must not write subroutine in this include also (for this situation)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this is helpful,&lt;/P&gt;&lt;P&gt;kool.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2011 06:35:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exits/m-p/7940221#M1600615</guid>
      <dc:creator>koolspy_ultimate</dc:creator>
      <dc:date>2011-06-30T06:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: User-exits</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exits/m-p/7940222#M1600616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all for the reply..&lt;/P&gt;&lt;P&gt;But I want to have a recursive function call until a condition is not fulfilled, so I need to call the perform inside the perform.&lt;/P&gt;&lt;P&gt;Won't it be possible to achieve it inside the USER-EXIT ZXCO1U06.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2011 07:05:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exits/m-p/7940222#M1600616</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-30T07:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: User-exits</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exits/m-p/7940223#M1600617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;As everyone mentioned, unfortunately yo cannot define a subroutine in the EXIT.&lt;/P&gt;&lt;P&gt;You will have to look for an alternative.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2011 07:10:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exits/m-p/7940223#M1600617</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-30T07:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: User-exits</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exits/m-p/7940224#M1600618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create an include for example &lt;STRONG&gt;zinclude&lt;/STRONG&gt; and write the body of the subroutine &lt;STRONG&gt;zsub&lt;/STRONG&gt; inside it.&lt;/P&gt;&lt;P&gt;Now inside the USER-EXIT include ZXCO1U06, try calling the subroutine inside the include like below,&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
"Use loop or while condition for recursive call
PERFORM zsub IN PROGRAM zinclude IF FOUND.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2011 08:26:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exits/m-p/7940224#M1600618</guid>
      <dc:creator>awin_prabhu</dc:creator>
      <dc:date>2011-06-30T08:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: User-exits</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exits/m-p/7940225#M1600619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;as mentioned earlier,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What you could do is code your logic directly, and if there are too many lines of code and you want to modularize them, then you could create your subroutines in another include/sub routine pool and call it as PERFORM F_TEST IN PROGRAM sub routine pool program name or create a Z FM with your code and call this Z FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A ZFM sounds a better option in case you want to retain values of the variables involved during recursive calls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2011 08:36:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exits/m-p/7940225#M1600619</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-30T08:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: User-exits</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exits/m-p/7940226#M1600620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; But I want to have a recursive function call until a condition is not fulfilled, so I need to call the perform inside the perform.&lt;/P&gt;&lt;P&gt;&amp;gt; Won't it be possible to achieve it inside the USER-EXIT ZXCO1U06.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't understand why you need to program a PERFORM inside the (same) PERFORM to achieve the recursion! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use WHILE ... ENDWHILE or DO ... ENDDO to call the procedure(subroutine, function module etc.) &amp;amp; then exit the recursion when the condition is satisfied.&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>Thu, 30 Jun 2011 09:03:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exits/m-p/7940226#M1600620</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2011-06-30T09:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: User-exits</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exits/m-p/7940227#M1600621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all for all your replies....I have replaced the recursive call to the function with while and endwhile loop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2011 09:37:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exits/m-p/7940227#M1600621</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-30T09:37:43Z</dc:date>
    </item>
  </channel>
</rss>

