No subject

Flavio Oliveira oliveiraflavio at hotmail.com
Thu May 10 07:43:30 EDT 2001


Just do not forget to put an explicit "commit work" after the transaction
call. Otherwise the event will not be created.
 
Flavio.
 
 
>From: "McKenney, Bill" <Bill.McKenney at anheuser-busch.com>
>Reply-To: SAP Workflow Users' Group <SAP-WUG at MITVMA.MIT.EDU>
>To: SAP-WUG at MITVMA.MIT.EDU
>Date: Wed, 9 May 2001 16:43:56 -0500
>
>When you have determined that you want to trigger the workflow, insert the
>following in your ABAP program:
>
>DATA: OBJTYPE LIKE SWETYPECOU-OBJTYPE VALUE 'Z_BUS2012',          <===
>enter
>your object type
>       OBJKEY  LIKE SWEINSTCOU-OBJKEY,
>       EVENT   LIKE SWETYPECOU-EVENT
>                   VALUE 'SAVEDANDRELEASED',"               <=== enter a
>event
>you will create
>       EVENTID LIKE SWEDUMEVID-EVTID.
>DATA: BEGIN OF EVENT_CONTAINER OCCURS 0.
>         INCLUDE STRUCTURE SWCONT.
>DATA: END OF EVENT_CONTAINER.
>
>
>  OBJKEY = TAB_RLS-PO_NO.                              <=== enter the key
>of your
>object
>  CALL FUNCTION 'SWE_EVENT_CREATE'
>      EXPORTING
>           OBJTYPE           = OBJTYPE
>           OBJKEY            = OBJKEY
>           EVENT             = EVENT
>      IMPORTING
>           EVENT_ID          = EVENTID
>      TABLES
>           EVENT_CONTAINER   = EVENT_CONTAINER
>      EXCEPTIONS
>           OBJTYPE_NOT_FOUND = 1.
>
>
>
>Create a workflow task/template and in 'triggering events' enter the
>business
>object and event that you entered above.
>
>
>In transaction SWETYPV enter your object type(from above), event(from
>above) and
>the workflow task that you have created.
>
>Make sure that the 'Type linkage' is active and you should be ready to
>test.
>
>
>
>Bill McKenney
>B2B Team
>PPR - 1CC-10 [mailto:bill.mckenney at anheuser-busch.com]
> > * (314)589-7917         * (314)589-7787
> >
>
>
>-----Original Message-----
>From: Ram Nathan [mailto:ram_naras at yahoo.com]
>Sent: Wednesday, May 09, 2001 3:49 PM
>To: SAP-WUG at MITVMA.MIT.EDU
>Subject:
>
>
>How to Trigger Workflow from User exit/from ABAP
>program.
>I would like to trigger an workflow that will notify
>HR admin if the Basic pay exceeds above some anount
>
>__________________________________________________
>Do You Yahoo!?
>Yahoo! Auctions - buy the things you want at great prices
>http://auctions.yahoo.com/
 
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
 


More information about the SAP-WUG mailing list