AW: Change Container from inside object method
Becker Stephan (extern)
Stephan.Becker.ext at mchw.siemens.de
Mon Apr 22 04:02:01 EDT 2002
Mike,=20
you forgot to create the container with "swc_container w_swcont" before =
the
initialisation with swc_create_container.
Greetings,
Stephan
-----Urspr=FCngliche Nachricht-----
Von: Mike Mathieson [mailto:msmathieson at hotmail.com]
Gesendet: Samstag, 20. April 2002 22:41
An: SAP-WUG at MITVMA.MIT.EDU
Betreff: Re: Change Container from inside object method
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) =3D vbkpf-bukrs.
> w_objkey+4(10) =3D vbkpf-belnr.
> w_objkey+14(4) =3D vbkpf-gjahr.
>
> swc_create_container w_swcont.
> swc_set_element w_swcont 'CostCenter' bseg-kostl.
>
> CALL FUNCTION 'SWE_EVENT_CREATE'
> EXPORTING
> objtype =3D 'ZPARKINV'
> objkey =3D w_objkey
> event =3D event
> TABLES
> event_container =3D w_swcont
> EXCEPTIONS
> objtype_not_found =3D 1
> OTHERS =3D 2.
>
> IF sy-subrc =3D 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