<?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: Passing Internal table to event parameter in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/passing-internal-table-to-event-parameter/qaa-p/1183695#M495115</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Surendar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try defining a DDIC table definition, instead of just a structure and type your event parameter as the same. When I do this in 6.40, the Multiline flag is already set for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is also a trick to how the container is built and filled. Do a "Where Used" on the FM SAP_WAPI_CREATE_EVENT and see how it is done elsewhere in the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Feb 2006 13:53:20 GMT</pubDate>
    <dc:creator>mark_rodrigues</dc:creator>
    <dc:date>2006-02-22T13:53:20Z</dc:date>
    <item>
      <title>Passing Internal table to event parameter</title>
      <link>https://community.sap.com/t5/technology-q-a/passing-internal-table-to-event-parameter/qaq-p/1183694</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;I have created a new event for a business object type. This event have got a multiline parameter( a internal table).  I need to pass the entries of table to the event container when I raise the event using function module 'SAP_WAPI_CREATE_EVENT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The table parameter 'input_container' allows me to pass the field values but not sure if I can pass the internal table as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any bright ideas???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Surendar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2006 13:40:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/passing-internal-table-to-event-parameter/qaq-p/1183694</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-22T13:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Internal table to event parameter</title>
      <link>https://community.sap.com/t5/technology-q-a/passing-internal-table-to-event-parameter/qaa-p/1183695#M495115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Surendar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try defining a DDIC table definition, instead of just a structure and type your event parameter as the same. When I do this in 6.40, the Multiline flag is already set for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is also a trick to how the container is built and filled. Do a "Where Used" on the FM SAP_WAPI_CREATE_EVENT and see how it is done elsewhere in the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2006 13:53:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/passing-internal-table-to-event-parameter/qaa-p/1183695#M495115</guid>
      <dc:creator>mark_rodrigues</dc:creator>
      <dc:date>2006-02-22T13:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Internal table to event parameter</title>
      <link>https://community.sap.com/t5/technology-q-a/passing-internal-table-to-event-parameter/qaa-p/1183696#M495116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Creating a multiline parameter to the event is not a issue as I am able to do it by checking the multiline checkbox flag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have already done a where used search for that particular function module and it hadn't helped me.  I was looking for help in case if someone has already done anything similar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry forgot to mention that I am on release 4.6C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Surendar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2006 14:30:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/passing-internal-table-to-event-parameter/qaa-p/1183696#M495116</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-22T14:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Internal table to event parameter</title>
      <link>https://community.sap.com/t5/technology-q-a/passing-internal-table-to-event-parameter/qaa-p/1183697#M495117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Surendar, &lt;/P&gt;&lt;P&gt;SAP_WAPI... function modules use a simple name-value container. Just repeat your table entries: &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;wa_cont-name = 'EVENTPARAMETERNAME'.
loop at lt_itab into wa_itab.
  wa_cont-value = wa_itab. 
  append wa_cont to lt_cont. 
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2006 15:34:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/passing-internal-table-to-event-parameter/qaa-p/1183697#M495117</guid>
      <dc:creator>pokrakam</dc:creator>
      <dc:date>2006-02-22T15:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Internal table to event parameter</title>
      <link>https://community.sap.com/t5/technology-q-a/passing-internal-table-to-event-parameter/qaa-p/1183698#M495118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mike,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tried doing this but could not see the internal table entries in the container.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I have found another way of doing it.  I am using function module 'SWE_EVENT_CREATE' rather then using 'SAP_WAPI_CREATE_EVENT'.  I am able to pass on table data using macros 'SWC_SET_TABLE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only difference here is the container type is changed and I need to perform a commit after the successful call of function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have faced any problems using function module 'SWE_EVENT_CREATE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Surendar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2006 16:13:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/passing-internal-table-to-event-parameter/qaa-p/1183698#M495118</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-22T16:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Internal table to event parameter</title>
      <link>https://community.sap.com/t5/technology-q-a/passing-internal-table-to-event-parameter/qaa-p/1183699#M495119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Interesting, I would have thought it should work, might be something broken in 4.6c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SWE_EVENT_CREATE is fine in any case, I thought about suggesting that but we're supposed to be using SAP_WAPI's as far as possible because they are supported for customer use. &lt;/P&gt;&lt;P&gt;Regarding commit's there are also SWE_EVENT_CREATE_FOR_UPD_TASK / ...IN_UPD_TASK FM's around if you are doing this in an update task. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2006 17:03:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/passing-internal-table-to-event-parameter/qaa-p/1183699#M495119</guid>
      <dc:creator>pokrakam</dc:creator>
      <dc:date>2006-02-22T17:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Internal table to event parameter</title>
      <link>https://community.sap.com/t5/technology-q-a/passing-internal-table-to-event-parameter/qaa-p/1183700#M495120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just thought I'd post a followup as I had a spare minute to try this out. The following definitely works on a 640 system:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  ZTEST.
Data: lv_cont type swr_cont,
      lt_cont type standard table of swr_cont.

lv_cont-element = 'ZMULTI'.
lv_cont-value = 'A'. append lv_cont to lt_cont.
lv_cont-value = 'B'. append lv_cont to lt_cont.
lv_cont-value = 'C'. append lv_cont to lt_cont.

CALL FUNCTION 'SAP_WAPI_CREATE_EVENT'
  EXPORTING
    OBJECT_TYPE             = 'ZMPTEST'
    OBJECT_KEY              = 'Z'
    EVENT                   = 'ZTESTEVT'
 TABLES
   INPUT_CONTAINER         = lt_cont.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;As expected, the event had a ZMULTI parameter with three items A,B,C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So might be broken in 4.6c but probably not worth following up with SAP. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2006 11:13:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/passing-internal-table-to-event-parameter/qaa-p/1183700#M495120</guid>
      <dc:creator>pokrakam</dc:creator>
      <dc:date>2006-02-24T11:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Internal table to event parameter</title>
      <link>https://community.sap.com/t5/technology-q-a/passing-internal-table-to-event-parameter/qaa-p/1183701#M495121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am facing the same problem in ECC 6.0 now, I have tried to populate multiple values into Event field but when the work flow log is checked it is shown up with blank values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The same applies with the no values population in &lt;STRONG&gt;&lt;U&gt;rule&lt;/U&gt;result&lt;/STRONG&gt; after the agent is detemined in rule the work flow container is not populating i....s there any SAP NOTE that needs to be applied..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help me asap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Krishna Mukthineni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2008 14:55:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/passing-internal-table-to-event-parameter/qaa-p/1183701#M495121</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-06T14:55:11Z</dc:date>
    </item>
  </channel>
</rss>

