<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" 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"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16608" name=GENERATOR><o:SmartTagType 
name="place" 
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><o:SmartTagType 
name="PersonName" 
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><!--[if !mso]>
<STYLE>st1\:* {
        BEHAVIOR: url(#default#ieooui)
}
</STYLE>
<![endif]-->
<STYLE>@font-face {
        font-family: Tahoma;
}
@font-face {
        font-family: Rage Italic;
}
@font-face {
        font-family: Webdings;
}
@page Section1 {size: 612.0pt 792.0pt; margin: 72.0pt 90.0pt 72.0pt 90.0pt; }
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
P {
        FONT-SIZE: 12pt; MARGIN-LEFT: 0cm; MARGIN-RIGHT: 0cm; FONT-FAMILY: "Times New Roman"; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto
}
SPAN.EmailStyle17 {
        COLOR: windowtext; FONT-FAMILY: Arial; mso-style-type: personal-compose
}
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 vLink=purple link=blue>
<DIV dir=ltr align=left><SPAN class=559542114-04032008><FONT face=Arial 
color=#0000ff size=2>You could do this with 'Z' material types - speak to your 
MM consultant and see what they think.</FONT></SPAN></DIV>
<DIV>&nbsp;</DIV><FONT face="Arial Black" color=#000080 size=1></FONT><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> sap-wug-bounces@mit.edu 
[mailto:sap-wug-bounces@mit.edu] <B>On Behalf Of </B>Devireddy Swathi 
(Dataflo)<BR><B>Sent:</B> Tuesday, March 04, 2008 12:10 PM<BR><B>To:</B> 
sap-wug@mit.edu<BR><B>Subject:</B> Re:Transaction Variants<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV class=Section1>
<P class=MsoNormal><FONT face=Arial size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Hi,<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I cannot copy the transaction into 
another one.<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN 
style="FONT-SIZE: 10pt; 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 face=Arial size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Is there any way I can get from 
change ocuments.<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;</SPAN></FONT> <o:p></o:p></P>
<DIV>
<P class=MsoNormal><FONT face=Arial size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Thanks &amp; 
Regards</SPAN></FONT><o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal><STRONG><B><FONT face="Rage Italic" size=4><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 face=Arial size=1><SPAN 
style="FONT-SIZE: 7.5pt; FONT-FAMILY: Arial">Coke 
SCALE</SPAN></FONT><o:p></o:p></P></DIV>
<DIV>
<P class=MsoNormal><FONT face=Arial size=1><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 face=Webdings color=black size=4><SPAN 
style="FONT-SIZE: 13pt; COLOR: black; FONT-FAMILY: Webdings">&Egrave;</SPAN></FONT><FONT 
face=Webdings color=#333399 size=4><SPAN 
style="FONT-SIZE: 13pt; COLOR: #333399; FONT-FAMILY: Webdings"> 
</SPAN></FONT><FONT face=Arial color=black size=1><SPAN 
style="FONT-SIZE: 7.5pt; COLOR: black; FONT-FAMILY: Arial">: +27 
745024070</SPAN></FONT><o:p></o:p></P></DIV>
<P class=MsoNormal style="MARGIN-BOTTOM: 12pt"><B><FONT face=Tahoma size=2><SPAN 
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">From:</SPAN></FONT></B><FONT 
face=Tahoma size=2><SPAN style="FONT-SIZE: 10pt; 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: 12pt"><FONT face="Times New Roman" size=2><SPAN 
style="FONT-SIZE: 10pt">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: "Devireddy Swathi (Dataflo)" 
&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; "<A 
href="http://www.dataflo.co.za/emaildisclaimer.htm">http://www.dataflo.co.za/emaildisclaimer.htm</A>"<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 face="Times New Roman" size=3><SPAN 
style="FONT-SIZE: 12pt"><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:<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>