Check For Initial Value inside a Mail Step

Ali Husain mr_mago40 at hotmail.com
Mon Dec 20 06:37:10 EST 2010



Hello Rick,

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.

Thanks.


> From: sap-wug-request at mit.edu
> Subject: SAP-WUG Digest, Vol 73, Issue 9
> To: sap-wug at mit.edu
> Date: Thu, 16 Dec 2010 12:20:15 -0500
> 
> Send SAP-WUG mailing list submissions to
> 	sap-wug at mit.edu
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://mailman.mit.edu/mailman/listinfo/sap-wug
> or, via email, send a message with subject or body 'help' to
> 	sap-wug-request at mit.edu
> 
> You can reach the person managing the list at
> 	sap-wug-owner at mit.edu
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of SAP-WUG digest..."
> 
> 
> Today's Topics:
> 
>    1. Check For Initial Value inside a Mail Step (Ali Husain)
>    2. Re: Check For Initial Value inside a Mail Step (Rick Bakker)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Wed, 15 Dec 2010 20:20:26 +0000
> From: Ali Husain <mr_mago40 at hotmail.com>
> Subject: Check For Initial Value inside a Mail Step
> To: SAP WUG <sap-wug at mit.edu>
> Message-ID: <BAY130-W25BAA7E9CBB1E8CC163AFF8F140 at phx.gbl>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> 
> 
> Hello All,
> 
> 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: 
> if var = ' '.
> if var EQ ' '.
> if var = SPACE.
> IF var EQ SPACE.
> 
> 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.
> 
> Any idea how would i check if the variable is initial inside the message body?
> 
> Thanks a lot for the help.
> Ali
> 
>  		 	   		  
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20101215/5f84bf8a/attachment-0001.htm
> 
> ------------------------------
> 
> Message: 2
> Date: Thu, 16 Dec 2010 09:23:49 +1100
> From: Rick Bakker <rbakker at gmail.com>
> Subject: Re: Check For Initial Value inside a Mail Step
> To: "SAP Workflow Users' Group" <sap-wug at mit.edu>
> Message-ID:
> 	<AANLkTik+zckkYzy2xkLYaMw-en=UDSkb2NVdqkBxU49O at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
> 
> Hello,
> 
> Try:
> /: IF &VAR& = ' '
> (there is a single space between the quotes)
> 
> regards
> Rick Bakker
> hanabi technology
> 
> On Thu, Dec 16, 2010 at 7:20 AM, Ali Husain <mr_mago40 at hotmail.com> wrote:
> >
> > Hello All,
> >
> > 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:
> > if var = ' '.
> > if var EQ ' '.
> > if var = SPACE.
> > IF var EQ SPACE.
> >
> > 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.
> >
> > Any idea how would i check if the variable is initial inside the message
> > body?
> >
> > Thanks a lot for the help.
> > Ali
> >
> >
> > _______________________________________________
> > SAP-WUG mailing list
> > SAP-WUG at mit.edu
> > http://mailman.mit.edu/mailman/listinfo/sap-wug
> >
> >
> 
> 
> ------------------------------
> 
> _______________________________________________
> SAP-WUG mailing list
> SAP-WUG at mit.edu
> http://mailman.mit.edu/mailman/listinfo/sap-wug
> 
> 
> End of SAP-WUG Digest, Vol 73, Issue 9
> **************************************
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20101220/111d33ac/attachment.htm


More information about the SAP-WUG mailing list