Betr.: RE: sap_wapi_start_workflow

Jane Simonetti JSimone at smud.org
Fri Jul 7 10:29:29 EDT 2006


Maarten,

Perhaps this will work for you: 


  DATA: INT_TAB LIKE SWR_CONT OCCURS 0 WITH HEADER LINE.

    INT_TAB-ELEMENT      = 'ABSENCE'.     "Name of Absence object in workflow
    INT_TAB-VALUE+10(10) = 'ABSENCE'.     "Object name
    INT_TAB-VALUE+20(70) = ABSENCEKEY.    "Concatenation of all 7 elements in Absence Key
    INT_TAB-VALUE+90(10) = '*<OBJECT>*'.  "Very important to include this
    APPEND INT_TAB.
    CLEAR INT_TAB.

  CALL FUNCTION 'SAP_WAPI_START_WORKFLOW'
       EXPORTING
            TASK            = WORKFLOW_VALUE    "Workflow #, WSnnnnnnnn
       TABLES
            INPUT_CONTAINER = INT_TAB
       EXCEPTIONS
            OTHERS          = 1.



Jane Simonetti
Technical Developer - Workflow
Business Technology Projects
Sacramento Municipal Utility District 
916.732.5234 

 -----Original Message-----
From: 	sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu]  On Behalf Of gm.duits at belastingdienst.nl
Sent:	Friday, July 07, 2006 4:58 AM
To:	SAP Workflow Users' Group
Subject:	Betr.: RE: sap_wapi_start_workflow

Hi Jocelyn,

Thx for you reply. I hope you, or somebody else, still can help me with my
problem. I read your reply, but don't really understand how i apply your
solution. So i was wondering if you could give me an example of how a apply
your solution for the ABSENCE object.

Thx in advance

Regards,

Maarten



                                                                           
             "Dart, Jocelyn"                                               
             <jocelyn.dart at sap                                             
             .com>                                                     Aan 
             Verzonden door:             "SAP Workflow Users' Group"       
             sap-wug-bounces at m           <sap-wug at mit.edu>                 
             it.edu                                                     Cc 
                                                                           
                                                                 Onderwerp 
             07-07-2006 02:03            RE: sap_wapi_start_workflow       
                                                                           
                                                                           
              Antwoord a.u.b.                                              
                    aan                                                    
               "SAP Workflow                                               
               Users' Group"                                               
             <sap-wug at mit.edu>                                             
                                                                           
                                                                           




Well you can... but the data format is very specific.

You can use...
type SWOTOBJID or type SIBFLPORB - for BOR objects
type SIBFLPOR - for Class objects

If the SIB... types don't exist in your system it's because you are in a
release before SAP NetWeaver 6.20.



Regards,
Jocelyn Dart
Senior Consultant
SAP Australia Pty Ltd.
Level 1/168 Walker St.
North Sydney
NSW, 2060
Australia
T   +61 412 390 267
M   + 61 412 390 267
E   jocelyn.dart at sap.com
http://www.sap.com

The information contained in or attached to this electronic transmission
is confidential and may be legally privileged. It is intended only for
the person or entity to which it is addressed. If you are not the
intended recipient, you are hereby notified that any distribution,
copying, review, retransmission, dissemination or other use of this
electronic transmission or the information contained in it is strictly
prohibited. If you have received this electronic transmission in error,
please immediately contact the sender to arrange for the return of the
original documents.
Electronic transmission cannot be guaranteed to be secure and
accordingly, the sender does not accept liability for any such data
corruption, interception, unauthorized amendment, viruses, delays or the
consequences thereof.
Any views expressed in this electronic transmission are those of the
individual sender, except where the message states otherwise and the
sender is authorized to state them to be the views of SAP AG or any of
its subsidiaries. SAP AG, its subsidiaries, and their directors,
officers and employees make no representation nor accept any liability
for the accuracy or completeness of the views or information contained
herein. Please be aware that the furnishing of any pricing information/
business proposal herein is indicative only, is subject to change and
shall not be construed as an offer or as constituting a binding
agreement on the part of SAP AG or any of its subsidiaries to enter into
any relationship, unless otherwise expressly stated.


-----Original Message-----
From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf
Of Markus Klein
Sent: Thursday, 06 July 2006 8:50 PM
To: SAP Workflow Users' Group
Subject: RE: sap_wapi_start_workflow

Hello Maarten,

you cant pass a Object reference via this container table. I would raise
an event to start the workflow (FM SAP_WAPI_CREATE_EVENT). As event ID
you have to pass the key of the object reference. With this ID the
Workflow does build a object at runtime.

Hope this helps.

regards,
Markus


______________________________________

ABS Team GmbH
SAP-Consulting, Human Capital Management
Muehlenweg 65
37120 Bovenden
Markus Klein
SAP Consultant
eMail:   klein at abs-team.de
Tel.:      +49 551 820 33 0
Mobil:   +49 151 126 23 047
Fax:      +49 551 820 33 99
            www.abs-team.com

-----Original Message-----
From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf
Of gm.duits at belastingdienst.nl
Sent: Thursday, July 06, 2006 12:11 PM
To: sap-wug at mit.edu
Subject: FM: sap_wapi_start_workflow


Hi all,

I want to use the FM sap_wapi_start_workflow, but i don't get it work
correctly. I created i test workflow wich displays an absence record
(BOR-Object: Absence - Display). When i test the FM the problem is the
INPUT_CONTAINER. What do i need to fill in here to start the workflow
with the object Absence filled correctly?

What i did fill in now in the INPUT_CONTAINER is: element: ABSENCE
value:
the key of the absence object. When i submit this request i get the
following messages in MESSAGE_LINES:

E The container passed has errors
E Current value of element 'ABSENCE' is not an object reference

I hope somebody can help me with this problem.

Thx in advance.

Kind regards,

Maarten


------------------------------------------------------------------------
------
De Belastingdienst gebruikt e-mail niet voor de uitwisseling van
vertrouwelijke informatie met de burger of voor de bekendmaking van
beslissingen. De Belastingdienst hanteert conventies voor het gebruik
van e-mail. Deze zijn te vinden op www.belastingdienst.nl.
========================================================================
======

_______________________________________________
SAP-WUG mailing list
SAP-WUG at mit.edu
http://mailman.mit.edu/mailman/listinfo/sap-wug

_______________________________________________
SAP-WUG mailing list
SAP-WUG at mit.edu
http://mailman.mit.edu/mailman/listinfo/sap-wug

_______________________________________________
SAP-WUG mailing list
SAP-WUG at mit.edu
http://mailman.mit.edu/mailman/listinfo/sap-wug




------------------------------------------------------------------------------
De Belastingdienst gebruikt e-mail niet voor de uitwisseling van vertrouwelijke informatie met de burger of voor de bekendmaking van beslissingen. De Belastingdienst hanteert conventies voor het gebruik van e-mail. Deze zijn te vinden op www.belastingdienst.nl.
==============================================================================

_______________________________________________
SAP-WUG mailing list
SAP-WUG at mit.edu
http://mailman.mit.edu/mailman/listinfo/sap-wug







More information about the SAP-WUG mailing list