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