<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="place"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Rage Italic";
        panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Webdings;
        panose-1:5 3 1 2 1 5 9 6 7 3;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Hi,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I cannot copy the transaction into another one.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>As the main purpose of transaction variants is to restrict access
to some views.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Is there any way I can get from change ocuments.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font> <o:p></o:p></p>

<div>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Thanks &amp; Regards</span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><strong><b><font size=4 face="Rage Italic"><span
style='font-size:13.5pt;font-family:"Rage Italic"'>Swathi Devireddy</span></font></b></strong><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=1 face=Arial><span style='font-size:7.5pt;
font-family:Arial'>Coke SCALE</span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=1 face=Arial><span style='font-size:7.5pt;
font-family:Arial'>Satyam Computer Services Ltd</span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=4 color=black face=Webdings><span
style='font-size:13.0pt;font-family:Webdings;color:black'>&Egrave;</span></font><font
size=4 color="#333399" face=Webdings><span style='font-size:13.0pt;font-family:
Webdings;color:#333399'> </span></font><font size=1 color=black face=Arial><span
style='font-size:7.5pt;font-family:Arial;color:black'>: +27 745024070</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal style='margin-bottom:12.0pt'><b><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;font-weight:bold'>From:</span></font></b><font
size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> <st1:PersonName
w:st="on">sap-wug-bounces@mit.edu</st1:PersonName> on behalf of Florin Wach<br>
<b><span style='font-weight:bold'>Sent:</span></b> Tue 3/4/2008 1:01 PM<br>
<b><span style='font-weight:bold'>To:</span></b> SAP Workflow Users' Group<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: Transaction
Variants-Workflow</span></font><o:p></o:p></p>

<p style='margin-bottom:12.0pt'><font size=2 face="Times New Roman"><span
style='font-size:10.0pt'>Hello Devireddy,<br>
<br>
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:<br>
<br>
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):<br>
- Create a new dialog transaction and copy/paste the definition from MM01<br>
- 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.<br>
- Test the execution of your transaction<br>
In the debugger you'll now see, that the field sy-tcode is properly set to your
new tcode.<br>
<br>
Now you have to option (where the latter one is the one I would prefer):<br>
- Switch on sy-tcode in your check-FM (possibly won't work, but most easiest)<br>
- 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.<br>
<br>
Best wishes,<br>
<st1:place w:st="on">Florin</st1:place><br>
<br>
<br>
<br>
<br>
-------- Original-Nachricht --------<br>
&gt; Datum: Tue, 4 Mar 2008 08:01:10 +0200<br>
&gt; Von: &quot;Devireddy Swathi (Dataflo)&quot;
&lt;devireddy.swathi@dataflo.co.za&gt;<br>
&gt; An: <st1:PersonName w:st="on">sap-wug@mit.edu</st1:PersonName><br>
&gt; Betreff: Transaction Variants-Workflow<br>
<br>
&gt; Hi,<br>
&gt;<br>
&gt; I am triggering my workflow through change documents for Material .I<br>
&gt; have 2 transaction variants created for MM01.For one of it I don't want<br>
&gt; to trigger workflow.<br>
&gt;<br>
&gt; I want to control this in my Check Function Module by raising an<br>
&gt; exception.Problem is the transaction variants sy-tcode is MM02 for<br>
&gt; both.in change document history.<br>
&gt;<br>
&gt; Is there any way to check from my check function module.<br>
&gt;<br>
&gt;&nbsp;<br>
&gt;<br>
&gt;&nbsp;&nbsp;<br>
&gt;<br>
&gt; Thanks &amp; Regards<br>
&gt;<br>
&gt; Swathi Devireddy<br>
&gt;<br>
&gt; Coke SCALE<br>
&gt;<br>
&gt; Satyam Computer Services Ltd<br>
&gt;<br>
&gt; * : +27 745024070<br>
&gt;<br>
&gt;&nbsp;<br>
&gt;<br>
&gt;<br>
&gt;
--------------------------------------------------------------------------------<br>
&gt;<br>
&gt; This email and all contents are subject to the following disclaimer:<br>
&gt;<br>
&gt; &quot;<a href="http://www.dataflo.co.za/emaildisclaimer.htm">http://www.dataflo.co.za/emaildisclaimer.htm</a>&quot;<br>
&gt;<br>
&gt;<br>
&gt;
--------------------------------------------------------------------------------<br>
_______________________________________________<br>
SAP-WUG mailing list<br>
SAP-WUG@mit.edu<br>
<a href="http://mailman.mit.edu/mailman/listinfo/sap-wug">http://mailman.mit.edu/mailman/listinfo/sap-wug</a></span></font><o:p></o:p></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>


<DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT 
face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">
<HR align=center width="100%" SIZE=2>
</SPAN></FONT></DIV>
<P><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">This email 
and all contents are subject to the following disclaimer:<?xml:namespace prefix 
= o ns = "urn:schemas-microsoft-com:office:office" 
/><o:p></o:p></SPAN></FONT></P>
<P><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">"<A 
title="http://www.dataflo.co.za/emaildisclaimer.htm&#10;blocked::http://www.dimensiondata.com/emaildisclaimer.htm" 
href="http://www.dataflo.co.za/emaildisclaimer.htm">http://www.dataflo.co.za/emaildisclaimer.htm</A>"<o:p></o:p></SPAN></FONT></P>
<DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT face=Arial 
size=2><SPAN lang=EN-ZA style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">
<HR align=center width="100%" SIZE=2>
</SPAN></FONT></DIV>
</body>

</html>