<?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 WorkFlow specific in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/workflow-specific/m-p/1750359#M325345</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In a workflow activity, I call (using an object method) an ABAP function module which displays an ALV with commands. I would like that one of these commands to enable the user to keep the workitem in his businessworkplace without take making any action.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i design the communication between my workflow and the ABAP function module to do so ?&lt;/P&gt;&lt;P&gt;I try with a loop in the workflow but the work item is regenerated too quickly and it looks as if I stayed in the ALV screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your answer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Nov 2006 11:23:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-29T11:23:43Z</dc:date>
    <item>
      <title>WorkFlow specific</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/workflow-specific/m-p/1750359#M325345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In a workflow activity, I call (using an object method) an ABAP function module which displays an ALV with commands. I would like that one of these commands to enable the user to keep the workitem in his businessworkplace without take making any action.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i design the communication between my workflow and the ABAP function module to do so ?&lt;/P&gt;&lt;P&gt;I try with a loop in the workflow but the work item is regenerated too quickly and it looks as if I stayed in the ALV screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your answer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Nov 2006 11:23:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/workflow-specific/m-p/1750359#M325345</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-29T11:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: WorkFlow specific</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/workflow-specific/m-p/1750360#M325346</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;Yeah it possible, just pass back to the method that the command has been executed either as a parameter or as an exception.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the method, you the use the Workflow macro  &amp;lt;b&amp;gt;exit_cancelled&amp;lt;/b&amp;gt;, see example below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;begin_method changeviadialog changing container.
CALL FUNCTION 'PRELIMINARY_POSTING_UPDATE'
     EXPORTING
          belnr     = object-key-documentno
          bukrs     = object-key-sourcecompanycode
          gjahr     = object-key-fiscalyear
*          workf     = 'X'
     EXCEPTIONS
          cancelled = 01
          OTHERS    = 02.
CASE sy-subrc.
  WHEN 0.            " OK
  WHEN 01.    " to be implemented
    exit_cancelled.
  WHEN OTHERS.       " to be implemented
    exit_cancelled.
ENDCASE.
end_method.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Morten Nielsen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Morten Nielsen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Nov 2006 11:33:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/workflow-specific/m-p/1750360#M325346</guid>
      <dc:creator>morten_nielsen</dc:creator>
      <dc:date>2006-11-29T11:33:39Z</dc:date>
    </item>
  </channel>
</rss>

