<div dir="ltr"><div class="gmail_quote"><div>Hi Sandy<br><br>Just a couple of things, <br><br>1. When you call the ALV report from the FM, do you use the AND RETURN option? This will ensure the control is back with the FM, and then back to the method....<br>
<br>2.&nbsp; Can you call the macros inside the FM while passing all the required references?<br><br>-- <br>Best Regards<br>Ravi Dixit
<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Message: 5<br>
Date: Thu, 17 Jul 2008 22:38:39 +0800<br>
From: Sandy &lt;<a href="mailto:maorriyan.santoso@gmail.com">maorriyan.santoso@gmail.com</a>&gt;<br>
Subject: Work Item Disappear After Execution of Back Button<br>
To: &quot;SAP Workflow - MIT&quot; &lt;<a href="mailto:sap-wug@mit.edu">sap-wug@mit.edu</a>&gt;<br>
Message-ID:<br>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;<a href="mailto:16d26f720807170738i68287f95gd6e7f924e649453f@mail.gmail.com">16d26f720807170738i68287f95gd6e7f924e649453f@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
<br>
Dear all.<br>
I have a workflow task that execute function module. This function module is<br>
execute ALV program which contains couple buttons i.e.&quot;Submit&quot;, &quot;Decline&quot;<br>
etc.<br>
Below call function module, I have some macro commands that need to be<br>
executed.<br>
I put break-point before execution of function module<br>
<br>
When I execute the work item, function module executed and brings me the ALV<br>
screen.<br>
What I expect is after execution of button i.e. &quot;Submit&quot;, it&#39;s back to my<br>
method and execute macro commands.<br>
Currently this happens only when I click standard SAP &quot;Back&quot; button which is<br>
user doesn&#39;t want to<br>
<br>
Is there any ABAP command or function module that can tell to the system to<br>
go back to the method caller?<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <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>

<br>
------------------------------<br>
<br>
Message: 6<br>
Date: Thu, 17 Jul 2008 10:45:48 -0400<br>
From: &quot;Alon Raskin&quot; &lt;<a href="mailto:araskin@3i-consulting.com">araskin@3i-consulting.com</a>&gt;<br>
Subject: RE: Work Item Disappear After Execution of Back Button<br>
To: &quot;SAP Workflow Users&#39; Group&quot; &lt;<a href="mailto:sap-wug@mit.edu">sap-wug@mit.edu</a>&gt;<br>
Message-ID:<br>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;<a href="mailto:BAB6A5007023804690A6EB3C9A24942EC9097D@msportal.exchange.corefusion.net">BAB6A5007023804690A6EB3C9A24942EC9097D@msportal.exchange.corefusion.net</a>&gt;<br>
<br>
Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
<br>
If the user hits BACK, your method should return exit_cancelled. This will leave the WI in the inbox.<br>
<br>
The other options is to make it asynchronous task and then only the appropriate events can complete the WI.<br>
<br>
Alon<br>
<br></blockquote></div></div>