<div dir="ltr">Thanks to all of you.<br>It&#39;s works.<br>It&#39;s just use LEAVE PROGRAM then it&#39;s back to caller.<br><br><div class="gmail_quote">On Fri, Jul 18, 2008 at 11:18 AM,  &lt;<a href="mailto:kaukabr@yahoo.com">kaukabr@yahoo.com</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">&quot;role back&quot;<br>
Cheers.<br>
<div><div></div><div class="Wj3C7c">--- Ravi Dixit &lt;<a href="mailto:dolbydix@gmail.com">dolbydix@gmail.com</a>&gt; wrote:<br>
<br>
&gt; Hi Sandy<br>
&gt;<br>
&gt; Just a couple of things,<br>
&gt;<br>
&gt; 1. When you call the ALV report from the FM, do you<br>
&gt; use the AND RETURN<br>
&gt; option? This will ensure the control is back with<br>
&gt; the FM, and then back to<br>
&gt; the method....<br>
&gt;<br>
&gt; 2. &nbsp;Can you call the macros inside the FM while<br>
&gt; passing all the required<br>
&gt; references?<br>
&gt;<br>
&gt; --<br>
&gt; Best Regards<br>
&gt; Ravi Dixit<br>
&gt;<br>
&gt;<br>
&gt; &gt; Message: 5<br>
&gt; &gt; Date: Thu, 17 Jul 2008 22:38:39 +0800<br>
&gt; &gt; From: Sandy &lt;<a href="mailto:maorriyan.santoso@gmail.com">maorriyan.santoso@gmail.com</a>&gt;<br>
&gt; &gt; Subject: Work Item Disappear After Execution of<br>
&gt; Back Button<br>
&gt; &gt; To: &quot;SAP Workflow - MIT&quot; &lt;<a href="mailto:sap-wug@mit.edu">sap-wug@mit.edu</a>&gt;<br>
&gt; &gt; Message-ID:<br>
&gt; &gt;<br>
&gt;<br>
&lt;<a href="mailto:16d26f720807170738i68287f95gd6e7f924e649453f@mail.gmail.com">16d26f720807170738i68287f95gd6e7f924e649453f@mail.gmail.com</a>&gt;<br>
&gt; &gt; Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
&gt; &gt;<br>
&gt; &gt; Dear all.<br>
&gt; &gt; I have a workflow task that execute function<br>
&gt; module. This function module<br>
&gt; &gt; is<br>
&gt; &gt; execute ALV program which contains couple buttons<br>
&gt; i.e.&quot;Submit&quot;, &quot;Decline&quot;<br>
&gt; &gt; etc.<br>
&gt; &gt; Below call function module, I have some macro<br>
&gt; commands that need to be<br>
&gt; &gt; executed.<br>
&gt; &gt; I put break-point before execution of function<br>
&gt; module<br>
&gt; &gt;<br>
&gt; &gt; When I execute the work item, function module<br>
&gt; executed and brings me the<br>
&gt; &gt; ALV<br>
&gt; &gt; screen.<br>
&gt; &gt; What I expect is after execution of button i.e.<br>
&gt; &quot;Submit&quot;, it&#39;s back to my<br>
&gt; &gt; method and execute macro commands.<br>
&gt; &gt; Currently this happens only when I click standard<br>
&gt; SAP &quot;Back&quot; button which<br>
&gt; &gt; is<br>
&gt; &gt; user doesn&#39;t want to<br>
&gt; &gt;<br>
&gt; &gt; Is there any ABAP command or function module that<br>
&gt; can tell to the system to<br>
&gt; &gt; go back to the method caller?<br>
&gt; &gt; -------------- next part --------------<br>
&gt; &gt; An HTML attachment was scrubbed...<br>
&gt; &gt; URL:<br>
&gt; &gt;<br>
&gt;<br>
<a href="http://mailman.mit.edu/pipermail/sap-wug/attachments/20080717/b2554c61/attachment-0001.htm" target="_blank">http://mailman.mit.edu/pipermail/sap-wug/attachments/20080717/b2554c61/attachment-0001.htm</a><br>
&gt; &gt;<br>
&gt; &gt; ------------------------------<br>
&gt; &gt;<br>
&gt; &gt; Message: 6<br>
&gt; &gt; Date: Thu, 17 Jul 2008 10:45:48 -0400<br>
&gt; &gt; From: &quot;Alon Raskin&quot; &lt;<a href="mailto:araskin@3i-consulting.com">araskin@3i-consulting.com</a>&gt;<br>
&gt; &gt; Subject: RE: Work Item Disappear After Execution<br>
&gt; of Back Button<br>
&gt; &gt; To: &quot;SAP Workflow Users&#39; Group&quot; &lt;<a href="mailto:sap-wug@mit.edu">sap-wug@mit.edu</a>&gt;<br>
&gt; &gt; Message-ID:<br>
&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp;&lt;<br>
&gt; &gt;<br>
&gt;<br>
<a href="mailto:BAB6A5007023804690A6EB3C9A24942EC9097D@msportal.exchange.corefusion.net">BAB6A5007023804690A6EB3C9A24942EC9097D@msportal.exchange.corefusion.net</a>&gt;<br>
&gt; &gt;<br>
&gt; &gt; Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
&gt; &gt;<br>
&gt; &gt; If the user hits BACK, your method should return<br>
&gt; exit_cancelled. This will<br>
&gt; &gt; leave the WI in the inbox.<br>
&gt; &gt;<br>
&gt; &gt; The other options is to make it asynchronous task<br>
&gt; and then only the<br>
&gt; &gt; appropriate events can complete the WI.<br>
&gt; &gt;<br>
&gt; &gt; Alon<br>
&gt; &gt;<br>
&gt; &gt;<br>
</div></div>&gt; &gt; _______________________________________________<br>
&gt; SAP-WUG mailing list<br>
&gt; <a href="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</a><br>
&gt; <a href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target="_blank">http://mailman.mit.edu/mailman/listinfo/sap-wug</a><br>
&gt;<br>
<br>
_______________________________________________<br>
SAP-WUG mailing list<br>
<a href="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</a><br>
<a href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target="_blank">http://mailman.mit.edu/mailman/listinfo/sap-wug</a><br>
</blockquote></div><br></div>