Event Parameter - Object

Flavio Oliveira oliveiraflavio at hotmail.com
Thu Jul 4 16:18:14 EDT 2002


What I normaly do is create the parameter inside the Receiver function
module (SWE2).
 
When the event is created, this function is called and, as the code to
create the parameter value is in there, the parameter is filled when the
event is created. Try this...
 
Flavio.
 
 
>From: "Marques Rodrigo (RBBR/ASE61) *" <Rodrigo.Marques at br.bosch.com>
>Reply-To: SAP Workflow Users' Group <SAP-WUG at MITVMA.MIT.EDU>
>To: SAP-WUG at MITVMA.MIT.EDU
>Subject: Event Parameter - Object
>Date: Thu, 4 Jul 2002 15:42:19 -0300
>
>Hello Folks,
>
>I am triggering an event from a field-exit using the following code
>
>   DATA: BEGIN OF ROTEIRO_KEY,
>             GRUPO LIKE PLKO-PLNNR,
>             COUNTER LIKE PLKO-PLNAL,
>         END OF ROTEIRO_KEY.
>   DATA: MATERIAL TYPE SWC_OBJECT.
>   DATA: OBJECT_KEY LIKE SWEINSTCOU-OBJKEY.
>   SWC_CONTAINER  EVT_CONTAINER.
>
>   SWC_CREATE_OBJECT MATERIAL 'BUS1001006' 'Testing'.
>
>   SWC_SET_ELEMENT EVT_CONTAINER 'Material' MATERIAL.
>
>   ROTEIRO_KEY-GRUPO = '50040503'.
>   ROTEIRO_KEY-COUNTER = '1'.
>
>   OBJECT_KEY = ROTEIRO_KEY.
>
>   CALL FUNCTION 'SWE_EVENT_CREATE_FOR_UPD_TASK'
>        EXPORTING
>             OBJTYPE         = 'ZBUS1012'
>             OBJKEY          = OBJECT_KEY
>             EVENT           = 'ROUTINGCREATED'
>        TABLES
>             EVENT_CONTAINER = EVT_CONTAINER
>        EXCEPTIONS
>             OTHERS          = 01.
>
>My problem is...
>The parameter Material of the event container is defined as Object type
>BUS1001006.
>How do I set the value of that parameter before creating the event?
>It won4t work if I just pass the material number.
>
>Thanks in advance for your attention
>
>Rodrigo Marques
>Robert Bosch Brazil
 
 
 
 
_________________________________________________________________
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx
 


More information about the SAP-WUG mailing list