event for creation (posting) of Material Document (say goods rece ipts)

Dart, Jocelyn jocelyn.dart at sap.com
Mon Jun 25 21:36:31 EDT 2001


Hi Daniel/Andre,
Or better still, in the user exit call "SWE_EVENT_CREATE_FOR_UPD_TASK".
This will add the appropriate event creation call to the current LUW.
 
Benefits being:
 
1. You don't need to call it asynchronously or put in
the commit work statement, as it will be committed with the rest of
the material documentation, and of course rolled back if someone cancels
out of the transaction.
 
2. As your document won't actually exist in the database until the LUW
is run, this will help ensure that the object exists when the event is
raised
(otherwise the event linkage will fail).
You might want to start it with a small delay to doubly ensure this (as you
are
working with a user exit you won't have full control over the order in
which the database updates are made).
 
Regards,
        Jocelyn Dart
Consultant (BBP, Ecommerce, Internet Transaction Server, Workflow)
SAP Australia
Email jocelyn.dart at sap.com <mailto:jocelyn.dart at sap.com>
Tel: +61 412 390 267
Fax: +61 2 9935 4880
 
 
 
-----Original Message-----
From: andre hilden [mailto:ahilden at gmx.net]
Sent: Tuesday, 26 June 2001 6:09 AM
To: SAP-WUG at MITVMA.MIT.EDU
Subject: Re: event for creation (posting) of Material Document (say
goods rece ipts)
 
 
Hi Daniel
 
there are user exits you can use for that.
I would go through the User exits with
a functional MM consultant and find the
right one.
 
In that User exit you will call the swe_event_create function.
You need to do a commit work after the function.
Make sure you are calling that function asynchronously
You can not use that commit work statement directly
in the user Exit. This would cause all kinds of problems
with open Database Commits.
 
regards
 
andre hilden
 
Dear all,
>
> I need to raise a Workflow EVENT when a Material Document (say Goods
> Receipt) is posted in the system.
> Has anyone else done this, any advice appreciated.
>
> Business OT is BUS2017 or MSEG (for segments). Old OT was MKPF.
>
> Many Thanks in advance.
> Daniel Wiederhold
>
>
>
> --
>                   E-Mail Disclaimer
>
> Der Inhalt dieser E-Mail ist ausschliesslich fuer den bezeichneten
> Adressaten bestimmt. Wenn Sie nicht der vorgesehene Adressat dieser
> E-Mail oder dessen Vertreter sein sollten, so beachten Sie bitte, dass
> jede Form der Kenntnisnahme, Veroeffentlichung, Vervielfaeltigung oder
> Weitergabe des Inhalts dieser E-Mail unzulaessig ist. Wir bitten Sie,
> sich in diesem Fall mit dem Absender der E-Mail in Verbindung zu
> setzen. Aussagen gegenueber dem Adressaten unterliegen den Regelungen
> des zugrundeliegenden Angebotes bzw. Auftrags, insbesondere den
> Allgemeinen Auftragsbedingungen und der individuellen Haftungs-
> vereinbarung. Der Inhalt der E-Mail ist nur rechtsverbindlich, wenn er
> unsererseits durch einen Brief entsprechend bestaetigt wird. Die
> Versendung von E-Mails an uns hat keine fristwahrende Wirkung. Wir
> moechten Sie ausserdem darauf hinweisen, dass die Kommunikation per
> E-Mail ueber das Internet unsicher ist, da fuer unberechtigte Dritte
> grundsaetzlich die Moeglichkeit der Kenntnisnahme und Manipulation
> besteht. Wir werden daher keine vertraulichen Daten unverschluesselt
> per E-Mail ueber das Internet versenden.
>
> The information contained in this email is intended solely for the
> addressee. Access to this email by anyone else is unauthorized. If you
> are not the intended recipient, any form of disclosure, reproduction,
> distribution or any action taken or refrained from in reliance on it,
> is prohibited and may be unlawful. Please notify the sender
> immediately. All statements of opinion or advice directed via this
> email to our clients are subject to the terms and conditions expressed
> in the governing KPMG client engagement letter. The content of this
> email is not legally binding unless confirmed by letter. The sending
> of emails to us will not constitute compliance with any time limits or
> deadlines. We also like to inform you that communication via email
> over the internet is insecure because third parties may have the
> possibility to access and manipulate emails. For this reason we will
> not send any confidential information via email over the internet,
> unless encrypted.
>
 
--
Sent through GMX FreeMail - http://www.gmx.net
 


More information about the SAP-WUG mailing list