<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
<br>Hello Rick,<br><br>Actually my problem was that i forgot to include the &amp; around the variable. Was trying to save time and typed it out without it. Now it's working fine.<br><br>Thanks.<br><br><br>&gt; From: sap-wug-request@mit.edu<br>&gt; Subject: SAP-WUG Digest, Vol 73, Issue 9<br>&gt; To: sap-wug@mit.edu<br>&gt; Date: Thu, 16 Dec 2010 12:20:15 -0500<br>&gt; <br>&gt; Send SAP-WUG mailing list submissions to<br>&gt;         sap-wug@mit.edu<br>&gt; <br>&gt; To subscribe or unsubscribe via the World Wide Web, visit<br>&gt;         http://mailman.mit.edu/mailman/listinfo/sap-wug<br>&gt; or, via email, send a message with subject or body 'help' to<br>&gt;         sap-wug-request@mit.edu<br>&gt; <br>&gt; You can reach the person managing the list at<br>&gt;         sap-wug-owner@mit.edu<br>&gt; <br>&gt; When replying, please edit your Subject line so it is more specific<br>&gt; than "Re: Contents of SAP-WUG digest..."<br>&gt; <br>&gt; <br>&gt; Today's Topics:<br>&gt; <br>&gt;    1. Check For Initial Value inside a Mail Step (Ali Husain)<br>&gt;    2. Re: Check For Initial Value inside a Mail Step (Rick Bakker)<br>&gt; <br>&gt; <br>&gt; ----------------------------------------------------------------------<br>&gt; <br>&gt; Message: 1<br>&gt; Date: Wed, 15 Dec 2010 20:20:26 +0000<br>&gt; From: Ali Husain &lt;mr_mago40@hotmail.com&gt;<br>&gt; Subject: Check For Initial Value inside a Mail Step<br>&gt; To: SAP WUG &lt;sap-wug@mit.edu&gt;<br>&gt; Message-ID: &lt;BAY130-W25BAA7E9CBB1E8CC163AFF8F140@phx.gbl&gt;<br>&gt; Content-Type: text/plain; charset="iso-8859-1"<br>&gt; <br>&gt; <br>&gt; <br>&gt; Hello All,<br>&gt; <br>&gt; I have a mail step embedded in an activity task. Inside the message body i have a variable of type char01 and i want to check if it's initial. I switched to the SAPscript editor and entered /: in front of the IF condition. It always take the else part and not the initial one even though the variable is initial. I've tried many different things like: <br>&gt; if var = ' '.<br>&gt; if var EQ ' '.<br>&gt; if var = SPACE.<br>&gt; IF var EQ SPACE.<br>&gt; <br>&gt; None of those worked and it always take the else part. Also, i couldn't use IS INITIAL as it threw an error when i did that. I want to check if it doesn't have a value and not if it has a value.<br>&gt; <br>&gt; Any idea how would i check if the variable is initial inside the message body?<br>&gt; <br>&gt; Thanks a lot for the help.<br>&gt; Ali<br>&gt; <br>&gt;                                                <br>&gt; -------------- next part --------------<br>&gt; An HTML attachment was scrubbed...<br>&gt; URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20101215/5f84bf8a/attachment-0001.htm<br>&gt; <br>&gt; ------------------------------<br>&gt; <br>&gt; Message: 2<br>&gt; Date: Thu, 16 Dec 2010 09:23:49 +1100<br>&gt; From: Rick Bakker &lt;rbakker@gmail.com&gt;<br>&gt; Subject: Re: Check For Initial Value inside a Mail Step<br>&gt; To: "SAP Workflow Users' Group" &lt;sap-wug@mit.edu&gt;<br>&gt; Message-ID:<br>&gt;         &lt;AANLkTik+zckkYzy2xkLYaMw-en=UDSkb2NVdqkBxU49O@mail.gmail.com&gt;<br>&gt; Content-Type: text/plain; charset=ISO-8859-1<br>&gt; <br>&gt; Hello,<br>&gt; <br>&gt; Try:<br>&gt; /: IF &amp;VAR&amp; = ' '<br>&gt; (there is a single space between the quotes)<br>&gt; <br>&gt; regards<br>&gt; Rick Bakker<br>&gt; hanabi technology<br>&gt; <br>&gt; On Thu, Dec 16, 2010 at 7:20 AM, Ali Husain &lt;mr_mago40@hotmail.com&gt; wrote:<br>&gt; &gt;<br>&gt; &gt; Hello All,<br>&gt; &gt;<br>&gt; &gt; I have a mail step embedded in an activity task. Inside the message body i<br>&gt; &gt; have a variable of type char01 and i want to check if it's initial. I<br>&gt; &gt; switched to the SAPscript editor and entered /: in front of the IF<br>&gt; &gt; condition. It always take the else part and not the initial one even though<br>&gt; &gt; the variable is initial. I've tried many different things like:<br>&gt; &gt; if var = ' '.<br>&gt; &gt; if var EQ ' '.<br>&gt; &gt; if var = SPACE.<br>&gt; &gt; IF var EQ SPACE.<br>&gt; &gt;<br>&gt; &gt; None of those worked and it always take the else part. Also, i couldn't use<br>&gt; &gt; IS INITIAL as it threw an error when i did that. I want to check if it<br>&gt; &gt; doesn't have a value and not if it has a value.<br>&gt; &gt;<br>&gt; &gt; Any idea how would i check if the variable is initial inside the message<br>&gt; &gt; body?<br>&gt; &gt;<br>&gt; &gt; Thanks a lot for the help.<br>&gt; &gt; Ali<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; _______________________________________________<br>&gt; &gt; SAP-WUG mailing list<br>&gt; &gt; SAP-WUG@mit.edu<br>&gt; &gt; http://mailman.mit.edu/mailman/listinfo/sap-wug<br>&gt; &gt;<br>&gt; &gt;<br>&gt; <br>&gt; <br>&gt; ------------------------------<br>&gt; <br>&gt; _______________________________________________<br>&gt; SAP-WUG mailing list<br>&gt; SAP-WUG@mit.edu<br>&gt; http://mailman.mit.edu/mailman/listinfo/sap-wug<br>&gt; <br>&gt; <br>&gt; End of SAP-WUG Digest, Vol 73, Issue 9<br>&gt; **************************************<br>                                               </body>
</html>