Change Container from inside object method

Mike Mathieson msmathieson at hotmail.com
Sat Apr 20 16:40:49 EDT 2002


Thanks Gregory.  That was it - I hadn't created the parameter for the event
in the business object and linked it in the task.
 
Thanks again for your help - I love this listserv!
 
 
>From: "Levy, Gregory" <gregory.levy at sap.com>
>To: "'Mike Mathieson'" <msmathieson at hotmail.com>
>Subject: RE: Change Container from inside object method
>Date: Sat, 20 Apr 2002 03:33:10 +0200
>
>Mike,
>
>I sure someone has already replied to your request, but if not here it goes
>.  .  . In order to have access to your cost center number it might be
>better to include it as part of your object key, because you are manually
>starting workflow with the function module SWE_EVENT_CREATE. I am not sure
>how populating the event contianer works, but I think if you do that you
>have to set a parameter in your busines object, and I think there is a
>button to click, which will allow you to add a parameter like cost center.
>Hope this helps.
>
>Gregory Levy
>Senior Technical Consultant
>SAP America,  Inc.
>
>312 Walnut Street
>Cincinnati, Oh 45202
>T   513-977-5481
>P   888-760-2244
>F   513-977-5401
>E   gregory.levy at sap.com
>http://www.sap.com
>
>
>
>-----Original Message-----
>From: Mike Mathieson [mailto:msmathieson at hotmail.com]
>Sent: Friday, April 19, 2002 4:55 PM
>To: SAP-WUG at MITVMA.MIT.EDU
>Subject: Change Container from inside object method
>
>
>I'm trying to pass a container element from an object method into my
>workflow task with no success.  I know I've done this before but for some
>reason it won't work this time.   My event is getting created, but the
>container element 'CostCenter' is not being changed.  Can anyone make a
>suggestion of something I should check?
>
>   DATA: w_objkey LIKE sweinstcou-objkey,
>         w_swcont LIKE swcont OCCURS 10.
>
>   w_objkey(4)    = vbkpf-bukrs.
>   w_objkey+4(10) = vbkpf-belnr.
>   w_objkey+14(4) = vbkpf-gjahr.
>
>   swc_create_container w_swcont.
>   swc_set_element      w_swcont  'CostCenter'  bseg-kostl.
>
>   CALL FUNCTION 'SWE_EVENT_CREATE'
>        EXPORTING
>             objtype           = 'ZPARKINV'
>             objkey            = w_objkey
>             event             = event
>        TABLES
>             event_container   = w_swcont
>        EXCEPTIONS
>             objtype_not_found = 1
>             OTHERS            = 2.
>
>   IF sy-subrc = 0.
>     COMMIT WORK.
>   ENDIF.
>
>_________________________________________________________________
>Join the world s largest e-mail service with MSN Hotmail.
>http://www.hotmail.com
 
 
 
 
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.
 


More information about the SAP-WUG mailing list