BPM Send Email Blank Title 100477

Try using a ~n (tilde n) to separate your part numbers. This is a newline
character in the ABL code (similarly, ~t is tab).



So, your line of code below becomes:

assign vBody = vBody + "~n" + ttorderdtl.PartNum.



That should do it..



Kevin Simon



From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of
VantageUser13
Sent: Thursday, May 12, 2011 2:46 PM
To: vantage@yahoogroups.com
Subject: [Vantage] BPM Send Email





With the BPM I will need to send an email. If I the the action the template
Epicor, I don't like because, I will need to send an email the part number.
But with the template epicor, the partnum side by side, me I will need one
below the order.

example for good solution:
03420
05824

template epicor (not good)
03420;05824

I check on the groups and I find a code for send email with a BPM, but
doesn't works. I don't know what is my mistakes ? Thansk for you help.

for each ttorderdtl no-lock.

repeat:

for each part where part.Company = cur-comp
and part.partnum = ttorderdtl.partnum
and part.CheckBox08 = true no-lock.

end.

if avail part then do :
define variable vFrom as character no-undo.
define variable vTo as character no-undo.
define variable vSubject as character no-undo.
define variable vBody as character no-undo.
define variable hEmailEx as Handle no-undo.
run BPM/BpmEmail.p persistent set hEmailEx.
assign vFrom = 'nmercier@... <mailto:%27nmercier%40phtech.ca> '.
assign vTo = 'nmercier@... <mailto:%27nmercier%40phtech.ca> '.
assign vSubject = vSubject + string(ttorderhed.ordernum).
assign vBody = vBody + ttorderdtl.PartNum.

run SendEmail in hEmailEx(
false,
cur-comp,
vFrom,
vTo,
vsubject,
vBody
).


end.
if not avail part then return.

end.

end. /*for each ttorderdtl*/





[Non-text portions of this message have been removed]
With the BPM I will need to send an email. If I the the action the template Epicor, I don't like because, I will need to send an email the part number. But with the template epicor, the partnum side by side, me I will need one below the order.

example for good solution:
03420
05824

template epicor (not good)
03420;05824

I check on the groups and I find a code for send email with a BPM, but doesn't works. I don't know what is my mistakes ? Thansk for you help.

for each ttorderdtl no-lock.

repeat:

for each part where part.Company = cur-comp
and part.partnum = ttorderdtl.partnum
and part.CheckBox08 = true no-lock.

end.


if avail part then do :
define variable vFrom as character no-undo.
define variable vTo as character no-undo.
define variable vSubject as character no-undo.
define variable vBody as character no-undo.
define variable hEmailEx as Handle no-undo.
run BPM/BpmEmail.p persistent set hEmailEx.
assign vFrom = 'nmercier@...'.
assign vTo = 'nmercier@...'.
assign vSubject = vSubject + string(ttorderhed.ordernum).
assign vBody = vBody + ttorderdtl.PartNum.

run SendEmail in hEmailEx(
false,
cur-comp,
vFrom,
vTo,
vsubject,
vBody
).



end.
if not avail part then return.

end.


end. /*for each ttorderdtl*/