Transaction Variants-Workflow

Griffiths, Mark mark.griffiths at sap.com
Tue Mar 4 06:20:23 EST 2008


Hi Swathi,

Copying transactions is really a means of last resort.

Is there no other information on the material you could use? E.g. create
a new "Z" Material type etc. and evaluate this in your Check function.

Regards,


Mark


-----Original Message-----
From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf
Of Florin Wach
Sent: Tuesday, March 04, 2008 7:31 AM
To: SAP Workflow Users' Group
Subject: Re: Transaction Variants-Workflow

Hello Devireddy,

maybe you'd like to give some more information about what you'd want to
achieve with that (e.g. removing a certain user group from workflow or
something), so there might come up some more alternatives to the one
that I have found:

The Transaction variant will keep the current sy-TCODE and furthermore,
probably the function that writes the change document sets that tcode
hard to MM02. So you cannot switch by the change document, but you can
still create a new transaction (not a variant):
- Create a new dialog transaction and copy/paste the definition from
MM01
- Use transaction SE16 or the appropriate customizing steps (which I
don't know) to copy the template entries of MM01 in the db tables T130M
and T135A to your newly defined tcode.
- Test the execution of your transaction
In the debugger you'll now see, that the field sy-tcode is properly set
to your new tcode.

Now you have to option (where the latter one is the one I would prefer):
- Switch on sy-tcode in your check-FM (possibly won't work, but most
easiest)
- Create a container-exit within the creation of the change document
event creation SWEC (there're templates). Create an additional event
parameter TCODE and pass the sy-tcode via thie parameter to the check
function module, where you'll have to read the TCODE from the container.

Best wishes,
Florin




-------- Original-Nachricht --------
> Datum: Tue, 4 Mar 2008 08:01:10 +0200
> Von: "Devireddy Swathi (Dataflo)" <devireddy.swathi at dataflo.co.za>
> An: sap-wug at mit.edu
> Betreff: Transaction Variants-Workflow

> Hi,
> 
> I am triggering my workflow through change documents for Material .I
> have 2 transaction variants created for MM01.For one of it I don't
want
> to trigger workflow.
> 
> I want to control this in my Check Function Module by raising an
> exception.Problem is the transaction variants sy-tcode is MM02 for
> both.in change document history.
> 
> Is there any way to check from my check function module.
> 
>  
> 
>   
> 
> Thanks & Regards
> 
> Swathi Devireddy
> 
> Coke SCALE
> 
> Satyam Computer Services Ltd
> 
> * : +27 745024070
> 
>  
> 
> 
>
------------------------------------------------------------------------
--------
> 
> This email and all contents are subject to the following disclaimer:
> 
> "http://www.dataflo.co.za/emaildisclaimer.htm"
> 
> 
>
------------------------------------------------------------------------
--------
_______________________________________________
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