Is COH a value or a field? If it is a value then it is a string and should
be enclosed in quotes.
IF Rmarcpt.Plant<> "COH" THEN DO:
Is it necessary to have " " + "has been added or changed" + "."?
Could it be " has been added or changed."?
You already have and IF THEN statement. Check the syntax to see if you need
an END IF.
Just some thoughts
Russ Dover
_____
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of
how2wow
Sent: Monday, October 01, 2007 11:46 AM
To: vantage@yahoogroups.com
Subject: [Vantage] Re: BAM- Progress Question- RMA Receipts- Vantage
8.00.811A
Sorry for the dumb reply... but are you asking, telling, ?
--- In vantage@yahoogroups <mailto:vantage%40yahoogroups.com> .com,
"bw2868bond" <bwalker@...> wrote:
be enclosed in quotes.
IF Rmarcpt.Plant<> "COH" THEN DO:
Is it necessary to have " " + "has been added or changed" + "."?
Could it be " has been added or changed."?
You already have and IF THEN statement. Check the syntax to see if you need
an END IF.
Just some thoughts
Russ Dover
_____
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of
how2wow
Sent: Monday, October 01, 2007 11:46 AM
To: vantage@yahoogroups.com
Subject: [Vantage] Re: BAM- Progress Question- RMA Receipts- Vantage
8.00.811A
Sorry for the dumb reply... but are you asking, telling, ?
--- In vantage@yahoogroups <mailto:vantage%40yahoogroups.com> .com,
"bw2868bond" <bwalker@...> wrote:
>"how2wow" <mhow@> wrote:
> Quote marks around strings?
>
> --- In vantage@yahoogroups <mailto:vantage%40yahoogroups.com> .com,
> >need
> > I am trying to write the commands to send a notification e-mail
> when
> > certain RMA receipts are made. I only want to send the
> notification
> > if the receipt is made in one particular plant (in this
> > case, "COH"). I am getting errors with the following... do I
> to[Non-text portions of this message have been removed]
> > add the "THEN" side of the statement? Can anyone help?
> > Here is what I have:
> >
> > {ud/GlbAlert.i &TableName = "Rmarcpt"}
> >
> > IF Rmarcpt.Plant<>COH THEN DO:
> > RETURN "Cancel Send":U.
> > END.
> >
> > /* Set the FROM address */
> > ASSIGN Email-From = "asv@;Cat Receipt Notification":U.
> >
> > /* Add the RMA number to the subject line */
> > ASSIGN Email-Subject = Email-Subject + " ASV RMA Number " + STRING
> > (rmarcpt.RMANum) + " " + "has been added or changed" + ".".
> >
> > /* Set the email type to be HTML */
> > ASSIGN Email-Mime-Header = {&HTML-Mime}.
> >
>