<HTML dir=ltr><HEAD>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.2900.2995" name=GENERATOR></HEAD>
<BODY>
<DIV id=idOWAReplyText43522 dir=ltr>
<DIV dir=ltr><FONT face=Verdana color=#000000 size=2>Hi Sandy ,</FONT></DIV>
<DIV dir=ltr><FONT face=Verdana size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Verdana size=2>&nbsp;To assign the value to the internal table (defined as Type table) , you need a Work area (o header lines) and then you must perfomr and append of this work area to the internal table : like this :</FONT></DIV></DIV>
<DIV dir=ltr>&nbsp;</DIV>
<DIV dir=ltr>&nbsp;</DIV>
<DIV dir=ltr>
<DIV>data lt_event_container type table of swr_cont.</DIV>
<DIV><FONT color=#0000ff>data: w_event_container type swr_cont.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>then inside method of Submit I have following code</DIV>
<DIV><FONT color=#0000ff>w_event_container-element = 'MYVALUE'</FONT></DIV>
<DIV><FONT color=#0000ff>w_event_container-value = lv_myvalue.</FONT></DIV>
<DIV><FONT color=#0000ff></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff>append w_event_container to lt_event_container .</FONT></DIV>
<DIV><FONT color=#000000></FONT>&nbsp;</DIV>
<DIV><FONT color=#000000>Cheers.</FONT></DIV>
<DIV><FONT color=#000000></FONT>&nbsp;</DIV>
<DIV><FONT color=#000000>G.</FONT></DIV><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>De:</B> sap-wug-bounces@mit.edu en nombre de Sandy<BR><B>Enviado el:</B> mar 06/05/2008 14:35<BR><B>Para:</B> SAP Workflow Users' Group<BR><B>Asunto:</B> Re: WebDynpro Field Value to Event<BR></FONT><BR></DIV>
<DIV>
<DIV>Hi Guillermo.</DIV>
<DIV>You understand my problem.</DIV>
<DIV>Thanks for your quick reply.</DIV>
<DIV>I tried your solution.</DIV>
<DIV>I defined</DIV>
<DIV>data lt_event_container type table of swr_cont.</DIV>
<DIV>&nbsp;</DIV>
<DIV>then inside method of Submit I have following code</DIV>
<DIV>lt_event_container-element = 'MYVALUE'</DIV>
<DIV>lt_event_container-value = lv_myvalue</DIV>
<DIV>&nbsp;</DIV>
<DIV>I got an error message, "lt_event_container' has no component called 'element'<BR><BR>&nbsp;</DIV>
<DIV><SPAN class=gmail_quote>On 5/6/08, <B class=gmail_sendername>Vera, Guillermo</B> &lt;<A href="mailto:Guillermo.Vera@realtech.com">Guillermo.Vera@realtech.com</A>&gt; wrote:</SPAN> 
<BLOCKQUOTE class=gmail_quote style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<DIV>
<DIV dir=ltr>
<DIV dir=ltr><FONT face=Verdana color=#000000 size=2>Hi ,</FONT></DIV>
<DIV dir=ltr><FONT face=Verdana size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Verdana size=2>&nbsp; I donīt understand your problem . When the submit button is pushed , an action is triggered by WDA runtime framework , in the action handler you must extract the value from the corresponding context-node, then you must fill the table parameter 'INPUT_CONTAINER' with this value , something like this :</FONT></DIV>
<DIV dir=ltr><FONT face=Verdana size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT size=1>
<P>EVENT_CONTAINER-ELEMENT = 'MY_NAME'.</P>
<P>EVENT_CONTAINER-VALUE = VALUE.</P>
<P>APPEND EVENT_CONTAINER.</P>
<P>&nbsp;</P><FONT size=1>
<P>CALL FUNCTION 'SAP_WAPI_CREATE_EVENT'</P>
<P>EXPORTING</P>
<P>...</P>
<P>IMPORTING</P>
<P>...</P>
<P></P></FONT><FONT size=1>TABLES 
<P>INPUT_CONTAINER = EVENT_CONTAINER</P></FONT><FONT color=#0000ff size=1>
<P>* MESSAGE_LINES =</P>
<P>* MESSAGE_STRUCT =</P></FONT></FONT></DIV></DIV>
<DIV dir=ltr>&nbsp;</DIV>
<DIV dir=ltr>&nbsp;</DIV>
<DIV dir=ltr>&nbsp;I hope this help you.</DIV>
<DIV dir=ltr>&nbsp;</DIV>
<DIV dir=ltr>regards.</DIV>
<DIV dir=ltr>&nbsp;</DIV>
<DIV dir=ltr>Guillermo.<BR>&nbsp;</DIV>
<DIV dir=ltr>
<HR>
</DIV>
<DIV dir=ltr><FONT face=Tahoma size=2><B>De:</B> <A href="mailto:sap-wug-bounces@mit.edu" target=_blank>sap-wug-bounces@mit.edu</A> en nombre de Sandy<BR><B>Enviado el:</B> mar 06/05/2008 13:27<BR><B>Para:</B> SAP Workflow - MIT<BR><B>Asunto:</B> WebDynpro Field Value to Event<BR></FONT><BR>&nbsp;</DIV>
<DIV><SPAN class=e id=q_119be21d9eeb2a90_1>
<DIV>
<DIV>Dear all.</DIV>
<DIV>I have ABAP WebDynpro screen where user need to fill certain value. Upon 'Submit' button, I need to pass those value to my event container and then to workflow container to be sent to next agent.</DIV>
<DIV>I am using FM 'SAP_WAPI_CREATE_EVENT' to trigger an event.</DIV>
<DIV>My question is how to pass value from WebDynpro to my event container/ workflow container?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks in advance</DIV></DIV></SPAN></DIV></DIV><BR>_______________________________________________<BR>SAP-WUG mailing list<BR><A href="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</A><BR><A href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target=_blank>http://mailman.mit.edu/mailman/listinfo/sap-wug</A><BR><BR></BLOCKQUOTE></DIV><BR></DIV></BODY></HTML>