<?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: SAP_WAPI_CREATE_EVENT - Passing parameters fail.. in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/sap-wapi-create-event-passing-parameters-fail/qaa-p/7268047#M2617489</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I answered it myself.&lt;/P&gt;&lt;P&gt;I used the new declaration of the table for CONTAINER....then append info to that table...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameter is passed on to the triggered EVENT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best reg&lt;/P&gt;&lt;P&gt;H&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(sorry for taking your time)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Sep 2010 09:45:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-09-13T09:45:30Z</dc:date>
    <item>
      <title>SAP_WAPI_CREATE_EVENT - Passing parameters fail..</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-wapi-create-event-passing-parameters-fail/qaq-p/7268045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;G'day&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Last friday I changed my FM call from SWE_EVENT_CREATE_FOR_UPD_TASK to SAP_WAPI_CREATE_EVENT&lt;/P&gt;&lt;P&gt; &lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1781630"&gt;&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the parameter "Spec" won't follow the event-call which causes Wrong workflow to be created.&lt;/P&gt;&lt;P&gt;Ive checked [related link|&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="9414259"&gt;&lt;/A&gt;]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF bkpf-bktxt(4) = '1234'.
    swc_set_element lt_container 'Spec' 'X'.
  ENDIF.

CALL FUNCTION 'SAP_WAPI_CREATE_EVENT'
  EXPORTING
    OBJECT_TYPE             = gc_obj_bkpf
    OBJECT_KEY              = lv_obj_key
    EVENT                   = gc_ev_pr_created
   COMMIT_WORK             = 'X'
 TABLES
   INPUT_CONTAINER         = lt_container.

*  CALL FUNCTION 'SWE_EVENT_CREATE_FOR_UPD_TASK'
*       EXPORTING
*            event           = gc_ev_pr_created
*            objtype         = gc_obj_bkpf
*            objkey          = lv_obj_key
*       TABLES
*            event_container = lt_container.
*&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any suggestions..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best reg&lt;/P&gt;&lt;P&gt;Henrik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Sep 2010 09:19:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-wapi-create-event-passing-parameters-fail/qaq-p/7268045</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-13T09:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: SAP_WAPI_CREATE_EVENT - Passing parameters fail..</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-wapi-create-event-passing-parameters-fail/qaa-p/7268046#M2617488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems like the two uses different declarations of the container...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SWR_CONT / SWCONT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...need to check that...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/H&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Sep 2010 09:29:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-wapi-create-event-passing-parameters-fail/qaa-p/7268046#M2617488</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-13T09:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: SAP_WAPI_CREATE_EVENT - Passing parameters fail..</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-wapi-create-event-passing-parameters-fail/qaa-p/7268047#M2617489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I answered it myself.&lt;/P&gt;&lt;P&gt;I used the new declaration of the table for CONTAINER....then append info to that table...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameter is passed on to the triggered EVENT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best reg&lt;/P&gt;&lt;P&gt;H&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(sorry for taking your time)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Sep 2010 09:45:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-wapi-create-event-passing-parameters-fail/qaa-p/7268047#M2617489</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-13T09:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: SAP_WAPI_CREATE_EVENT - Passing parameters fail..</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-wapi-create-event-passing-parameters-fail/qaa-p/7268048#M2617490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should give yourself some points &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Sep 2010 14:23:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-wapi-create-event-passing-parameters-fail/qaa-p/7268048#M2617490</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-15T14:23:08Z</dc:date>
    </item>
  </channel>
</rss>

