AW: PASSING OBJECT REFERENCE TO WORKFLOW START TRANSACTION

Nieder Martin Martin.Nieder at munich-airport.de
Tue Jul 17 02:44:28 EDT 2001


Hello Derek,
 
here a part of my coding for a similar problem:
 
DATA: wl_buzei    TYPE buzei,
      wl_workflow LIKE swr_struct-task,
      wl_key_bseg(21),
      wl_handle   LIKE  swotrtime-object.
 
DATA: il_list LIKE STANDARD TABLE OF soattlsti1,
      il_message LIKE STANDARD TABLE OF swr_messag
        WITH HEADER LINE,
      il_container LIKE STANDARD TABLE OF swr_cont
        WITH HEADER LINE.
 
DATA: BEGIN OF il_zeilen OCCURS 1,
        buzei TYPE buzei,
      END OF il_zeilen.
 
DATA: ol_bseg TYPE swc_object.
 
DATA: sl_object_key TYPE swotobjid.
 
   .......
 
    wl_workflow =3D 'WS99200014'.
 
*   process objekt for container
    CONCATENATE objkey il_zeilen-buzei INTO wl_key_bseg.
 
    swc_create_object ol_bseg 'ZFIBSEG1' wl_key_bseg.
 
    wl_handle =3D ol_bseg-handle.
 
    CALL FUNCTION 'SWO_OBJECT_ID_GET'
         EXPORTING
              object  =3D wl_handle
        IMPORTING
*            RETURN  =3D
             objid   =3D sl_object_key.
 
    REFRESH il_container.
    il_container-element =3D 'BELEGZEILEBUCHHALTUNGSBELEG'.
    il_container-value   =3D sl_object_key.
    APPEND il_container.
 
*   Start Workflow
    CALL FUNCTION 'SWU_START_WORKFLOW'
         EXPORTING
              task            =3D wl_workflow
*             LANGUAGE        =3D SY-LANGU
              user            =3D sy-uname
*             SENDER_ID       =3D
*        IMPORTING
*             RETURN_CODE     =3D
*             workitem_id     =3D wg_workitem_id
         TABLES
              container       =3D il_container
              message_lines   =3D il_message
              attachment_list =3D il_list.
 
   ......
 
Hope this helps.
 
Greetings from Munich
Martin Nieder
------------------------------------------------------------------------=
----
Martin Nieder                      =
mailto:martin.nieder at munich-airport.de
Systementwicklung Rechnungswesen   http://www.munich-airport.de
Flughafen M=FCnchen GmbH
Postfach 23 17 55                  Telefon: +49 89 975 32282
85326 M=FCnchen                      Telefax: +49 89 975 60882
 
 
-----Urspr=FCngliche Nachricht-----
Von: Cundasamy, Derek [mailto:DCundas at boecorp.co.za]
Gesendet: Dienstag, 17. Juli 2001 08:17
An: SAP-WUG at MITVMA.MIT.EDU
Betreff: PASSING OBJECT REFERENCE TO WORKFLOW START TRANSACTION
 
 
Hi,
 
I have created a workflow start transaction and would like to call this
transaction from an ABAP program.
 
How do I pass an object reference to this transaction, especially when =
the
object key is a concatenated key (VDARL-BUKRS & VDARL-SARCHIV & =
VDARL-RANL)?
 
Any assistance will be greatly appreciated.
 
Regards,
 
        Derek Cundasamy
 
 
 
WARNING:
Any unauthorised use or interception of this email is illegal. If this =
email
is not intended for you, you may not copy, distribute nor disclose the
contents to anyone. Save for bona fide company matters, the BoE Group =
does
not accept any responsibility for the opinions expressed in this email.
For further details please see: http://www.nbs.co.za/emaildisclaim.htm
 


More information about the SAP-WUG mailing list