<?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>Question Re: Wait step triggered by class event in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/wait-step-triggered-by-class-event/qaa-p/350068#M18485</link>
    <description>&lt;P&gt;Hi, yes I did. The problem was I had to fill first the object before raising the RFC method. &lt;/P&gt;&lt;P&gt;Hope it works to you too.&lt;/P&gt;</description>
    <pubDate>Wed, 08 Feb 2017 10:31:04 GMT</pubDate>
    <dc:creator>former_member288991</dc:creator>
    <dc:date>2017-02-08T10:31:04Z</dc:date>
    <item>
      <title>Wait step triggered by class event</title>
      <link>https://community.sap.com/t5/technology-q-a/wait-step-triggered-by-class-event/qaq-p/350066</link>
      <description>&lt;P&gt;Hi experts,&lt;/P&gt;
  &lt;P&gt;I'm quite new at workflows world and I have a problem in my development.&lt;/P&gt;
  &lt;P&gt;I'm trying to wake up a wait step with an event developed in a Z class through a FM that is going to be called from PI conexion. &lt;/P&gt;
  &lt;P&gt;The process is the following: &lt;/P&gt;
  &lt;P&gt;1. I trigger my workflow and it comes to the wait step and in SWIA I can see the following text:&lt;/P&gt;
  &lt;P&gt;"Waiting for event 'WAIT_RFC' from object 'ZCL_WF_OBJECT_SUP_PRO'."&lt;/P&gt;
  &lt;P&gt;2. After that, I execute my FM ZFM_RFC calling a method of the class "ZCL_WF_OBJECT_SUP_PRO-RAISE_WAIT_RFC_EVENT".&lt;/P&gt;
  &lt;P&gt;Inside this method I use the "CL_SWF_EVT_EVENT=&amp;gt;GET_EVENT_CONTAINER" and then I fill the container with my parameters (supplier_id, supplier_name, partner_guid) with the method "IF_SWF_IFS_PARAMETER_CONTAINER-&amp;gt;SET".&lt;/P&gt;
  &lt;P&gt;And finally, I trigger my event just like this:&lt;/P&gt;
  &lt;P&gt;CALL METHOD cl_swf_evt_event=&amp;gt;raise&lt;/P&gt;
  &lt;P&gt;EXPORTING&lt;/P&gt;
  &lt;P&gt; im_objcateg = 'CL'&lt;/P&gt;
  &lt;P&gt; im_objtype = 'ZCL_WF_OBJECT_SUP_PRO'&lt;/P&gt;
  &lt;P&gt; im_event = 'WAIT_RFC'&lt;/P&gt;
  &lt;P&gt; im_objkey = 'SI'&lt;/P&gt;
  &lt;P&gt; im_event_container = lr_event_parameters. "in this instance I have the container filled with the method SET of the interface "IF_SWF_IFS_PARAMETER_CONTAINER".&lt;/P&gt;
  &lt;P&gt;And after all of that a COMMIT WORK.&lt;/P&gt;
  &lt;P&gt;So once made all of this, at SWEL tx I see that my event is triggered but, it seems that is wrongly configurated because the info icon is not in green. &lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/5311-swel.png" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/5315-swel2.png" /&gt;&lt;/P&gt;
  &lt;P&gt;I configured the customizing at the SWETYPV as it could be seen down:&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/5321-swetypv.png" /&gt;&lt;/P&gt;
  &lt;P&gt;I'm not sure what is wrongly defined, anyone has any idea?&lt;/P&gt;
  &lt;P&gt;Thank you in advance, &lt;/P&gt;
  &lt;P&gt;Juls.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2016 16:23:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/wait-step-triggered-by-class-event/qaq-p/350066</guid>
      <dc:creator>former_member288991</dc:creator>
      <dc:date>2016-11-08T16:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: Wait step triggered by class event</title>
      <link>https://community.sap.com/t5/technology-q-a/wait-step-triggered-by-class-event/qaa-p/350067#M18484</link>
      <description>&lt;P&gt;Hi Julia, did you get  to solve this?&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2017 20:10:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/wait-step-triggered-by-class-event/qaa-p/350067#M18484</guid>
      <dc:creator>juliusku</dc:creator>
      <dc:date>2017-01-13T20:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: Wait step triggered by class event</title>
      <link>https://community.sap.com/t5/technology-q-a/wait-step-triggered-by-class-event/qaa-p/350068#M18485</link>
      <description>&lt;P&gt;Hi, yes I did. The problem was I had to fill first the object before raising the RFC method. &lt;/P&gt;&lt;P&gt;Hope it works to you too.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 10:31:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/wait-step-triggered-by-class-event/qaa-p/350068#M18485</guid>
      <dc:creator>former_member288991</dc:creator>
      <dc:date>2017-02-08T10:31:04Z</dc:date>
    </item>
  </channel>
</rss>

