Vantage 8.03.409C: How can I write to the log file inside a BPM

Thanks guys.

-----Original Message-----
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Jose Gomez
Sent: Thursday, August 30, 2012 9:58 AM
To: vantage@yahoogroups.com
Subject: Re: [Vantage] Vantage 8.03.409C: How can I write to the log file inside a BPM

L:og

*Jose C Gomez*
*Software Engineer*
*
*
*
*T: 904.469.1524 mobile
E: jose@...
http://www.josecgomez.com
<http://www.linkedin.com/in/josecgomez> <http://www.facebook.com/josegomez>
<http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
<http://www.josecgomez.com/professional-resume/>
<http://www.josecgomez.com/feed/>
<http://www.usdoingstuff.com>

*Quis custodiet ipsos custodes?*



On Thu, Aug 30, 2012 at 12:55 PM, Dan Godfrey <dgodfrey@...> wrote:

> **
>
>
> So ' Message "Your text here". ' will be in the log file or will it
> pop up to the user. I want it to ONLY show in the log file.
>
>
> -----Original Message-----
> From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On
> Behalf Of Martin Horton
> Sent: Thursday, August 30, 2012 8:58 AM
> To: vantage@yahoogroups.com
> Subject: RE: [Vantage] Vantage 8.03.409C: How can I write to the log
> file inside a BPM
>
> You just need to add Message "text here" to the BPM
>
> Regards
>
> Martin Horton
> Business Systems Manager
> direct line: +44(0)1889 272250 mobile: +44 (0)7875 404841
> Skype: marthorton Skype number: +44 (0) 121 288 3133
>
> [cid:image001.jpg@01CD86D0.9F62BC20]
>
> Broadcrown Ltd. Airfield Industrial Estate, Hixon, Stafford, Staffs
> ST18 0PF, England
> tel: +44(0)1889 272200 fax: +44(0)1889 272220 www.broadcrown.com<
> http://www.broadcrown.com/>
>
> ----- This email and the information it contains is confidential and
> may be legally privileged. It may be read, copied and used only by the
> intended recipient. Internet communications cannot be guaranteed to be
> secure or indeed error free as information can be intercepted,
> corrupted, lost, destroyed, delayed and or contain viruses. Broadcrown
> Ltd has scanned the email for viruses but does not accept
> responsibility once the email has been transmitted. The receiving
> company should scan the email and attachments (if any) for viruses.
> Any views or opinions expressed within this email are not necessarily
> the views or opinions of Broadcrown Limited except where the sender
> specifically states that they are. If you have received this document
> in error please email the sender and delete the message from your
> computer without taking copies -----
>
> From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On
> Behalf Of dgodfrey_amc
> Sent: 30 August 2012 16:54
> To: vantage@yahoogroups.com
> Subject: [Vantage] Vantage 8.03.409C: How can I write to the log file
> inside a BPM
>
> We are getting errors which look like it is coming from a BPM. I can
> not identify WHICH BPM it is though. So I want to be able to write to
> the log file and enter a string that will identify which BPM it is
> coming from. Can someone show me how to write to the log file within a BPM?
>
> [Non-text portions of this message have been removed]
>
> ------------------------------------
>
>
> Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must
> have already linked your email address to a yahoo id to enable access.
> )
> (1) To access the Files Section of our Yahoo!Group for Report Builder
> and Crystal Reports and other 'goodies', please goto:
> http://groups.yahoo.com/group/vantage/files/.
> (2) To search through old msg's goto:
> http://groups.yahoo.com/group/vantage/messages
> (3) To view links to Vendors that provide Vantage services goto:
> http://groups.yahoo.com/group/vantage/linksYahoo! Groups Links
>
>
>


[Non-text portions of this message have been removed]



------------------------------------

Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must have already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder and Crystal Reports and other 'goodies', please goto: http://groups.yahoo.com/group/vantage/files/.
(2) To search through old msg's goto: http://groups.yahoo.com/group/vantage/messages
(3) To view links to Vendors that provide Vantage services goto: http://groups.yahoo.com/group/vantage/linksYahoo! Groups Links
We are getting errors which look like it is coming from a BPM. I can not identify WHICH BPM it is though. So I want to be able to write to the log file and enter a string that will identify which BPM it is coming from. Can someone show me how to write to the log file within a BPM?
You just need to add Message "text here" to the BPM

Regards

Martin Horton
Business Systems Manager
direct line: +44(0)1889 272250 mobile: +44 (0)7875 404841
Skype: marthorton Skype number: +44 (0) 121 288 3133


[cid:image001.jpg@01CD86D0.9F62BC20]

Broadcrown Ltd. Airfield Industrial Estate, Hixon, Stafford, Staffs ST18 0PF, England
tel: +44(0)1889 272200 fax: +44(0)1889 272220 www.broadcrown.com<http://www.broadcrown.com/>

----- This email and the information it contains is confidential and may be legally privileged. It may be read, copied and used only by the intended recipient. Internet communications cannot be guaranteed to be secure or indeed error free as information can be intercepted, corrupted, lost, destroyed, delayed and or contain viruses. Broadcrown Ltd has scanned the email for viruses but does not accept responsibility once the email has been transmitted. The receiving company should scan the email and attachments (if any) for viruses. Any views or opinions expressed within this email are not necessarily the views or opinions of Broadcrown Limited except where the sender specifically states that they are. If you have received this document in error please email the sender and delete the message from your computer without taking copies -----


From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of dgodfrey_amc
Sent: 30 August 2012 16:54
To: vantage@yahoogroups.com
Subject: [Vantage] Vantage 8.03.409C: How can I write to the log file inside a BPM



We are getting errors which look like it is coming from a BPM. I can not identify WHICH BPM it is though. So I want to be able to write to the log file and enter a string that will identify which BPM it is coming from. Can someone show me how to write to the log file within a BPM?



[Non-text portions of this message have been removed]
Advise Please: Can you guys tell if the following two BPM actions could cause the error at the bottom. Both actions are separate BPMS on the SalesOrder.Update Method.

/*************************************************/
/*********ShipQtyOnRequestDateOrderHed************/
/*************************************************/
DEFINE VARIABLE Total Like OrderDtl.OrderQty.
DEFINE VARIABLE count AS INTEGER.
DEFINE VARIABLE msg AS CHARACTER NO-UNDO.

count = 0.
Total = 0.
for each ttOrderHed where ttOrderHed.RowMod = 'U' OR (ttOrderHed.RowMod = 'A') no-lock ,
each OrderDtl where ( OrderDtl.Company = ttOrderHed.Company AND
OrderDtl.RequestDate = ttOrderHed.RequestDate AND
OrderDtl.OpenLine = True AND
OrderDtl.OrderQty > 0 ) no-lock.
Total = Total + OrderDtl.OrderQty.
count = count + 1.
msg = "There are currently " + STRING(Total) + " units to ship on " + STRING(OrderDtl.RequestDate) + " from " + STRING(count) + " line items.".
End.

IF Total > 600 Then
{lib/PublishInfoMsg.i &InfoMsg = msg }.


/*************************************************/
/*********ShipQtyOnRequestDateOrderDtl************/
/*************************************************/


DEFINE VARIABLE Total Like OrderDtl.OrderQty.
DEFINE VARIABLE count AS INTEGER.
DEFINE VARIABLE msg AS CHARACTER NO-UNDO.

count = 0.
Total = 0.
for each ttOrderDtl where (ttOrderDtl.RowMod = 'U' or ttOrderDtl.RowMod = 'A') no-lock ,
each OrderDtl where ( OrderDtl.Company = ttOrderDtl.Company AND
OrderDtl.RequestDate = ttOrderDtl.RequestDate AND
OrderDtl.OpenLine = True AND
OrderDtl.OrderQty > 0 ) no-lock.
IF(OrderDtl.OrderNum <> ttOrderDtl.OrderNum OR
(OrderDtl.OrderNum = ttOrderDtl.OrderNum AND
OrderDtl.OrderLine <> ttOrderDtl.OrderLine)) Then
DO:
Total = Total + OrderDtl.OrderQty.
count = count + 1.
msg = "There are currently " + STRING(Total) + " units to ship on " + STRING(OrderDtl.RequestDate) + " from " + STRING(count) + " line items.".
End.
End.

IF Total > 600 Then
{lib/PublishInfoMsg.i &InfoMsg = msg }.




/*************************************************/
/********* The ERROR LOG ************/
/*************************************************/


[12/08/30@08:42:39.341-0700] P-103296 T-101912 1 AS -- ** No ttOrderDtl record is available. (91)
[12/08/30@08:42:39.341-0700] P-103296 T-101912 1 AS -- ** 4GL Debug-Alert Stack Trace **
[12/08/30@08:42:39.341-0700] P-103296 T-101912 1 AS -- --> UpdatePost12_A1 bo/SalesOrder.p (d:\epicor\mfgsys803400\bpm\bo\SalesOrder.r) at line 6155
[12/08/30@08:42:39.341-0700] P-103296 T-101912 1 AS -- Update bo/SalesOrder.p (d:\epicor\mfgsys803400\bpm\bo\SalesOrder.r) at line 6481
[12/08/30@08:42:39.341-0700] P-103296 T-101912 4 AS AS -- TRACE: SINGLE-RUN Procedure END SUCCESS. (8458)
[12/08/30@08:42:39.341-0700] P-114988 T-081900 3 AS AS requestID= NULL
If you are seeing lines like UpdatePre240_A1 bo/labor/Labor.p in your error log, then you can navigate to a location like
\\Epicor appserver \ version \ BPMExec\LiveBPM\bo\Labor\ on your appserver and open Labor.p file in notepad and see the bpms content.

If you were 9.0x then you would also see a db directory for data directives in addition to the bo directory for methods.

HTH

Greg Payne

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of dgodfrey_amc
Sent: Thursday, August 30, 2012 11:54 AM
To: vantage@yahoogroups.com
Subject: [Vantage] Vantage 8.03.409C: How can I write to the log file inside a BPM



We are getting errors which look like it is coming from a BPM. I can not identify WHICH BPM it is though. So I want to be able to write to the log file and enter a string that will identify which BPM it is coming from. Can someone show me how to write to the log file within a BPM?


________________________________
CONFIDENTIALITY NOTICE

The information contained in this communication, including attachments, is privileged and confidential. It is intended only for the exclusive use of the addressee. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us at (727) 578-6258 and immediately delete the communication.

"This (document/presentation) may contain technical data as defined in the International Traffic In Arms Regulations (ITAR) 22 CFR 120.10. Export of this material is restricted by the Arms Export Control Act (22 U.S.C. 2751 et seq.) and may not be exported to foreign persons without prior approval form the U.S. Department of State."


[Non-text portions of this message have been removed]
So ' Message "Your text here". ' will be in the log file or will it pop up to the user. I want it to ONLY show in the log file.

-----Original Message-----
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Martin Horton
Sent: Thursday, August 30, 2012 8:58 AM
To: vantage@yahoogroups.com
Subject: RE: [Vantage] Vantage 8.03.409C: How can I write to the log file inside a BPM

You just need to add Message "text here" to the BPM

Regards

Martin Horton
Business Systems Manager
direct line: +44(0)1889 272250 mobile: +44 (0)7875 404841
Skype: marthorton Skype number: +44 (0) 121 288 3133


[cid:image001.jpg@01CD86D0.9F62BC20]

Broadcrown Ltd. Airfield Industrial Estate, Hixon, Stafford, Staffs ST18 0PF, England
tel: +44(0)1889 272200 fax: +44(0)1889 272220 www.broadcrown.com<http://www.broadcrown.com/>

----- This email and the information it contains is confidential and may be legally privileged. It may be read, copied and used only by the intended recipient. Internet communications cannot be guaranteed to be secure or indeed error free as information can be intercepted, corrupted, lost, destroyed, delayed and or contain viruses. Broadcrown Ltd has scanned the email for viruses but does not accept responsibility once the email has been transmitted. The receiving company should scan the email and attachments (if any) for viruses. Any views or opinions expressed within this email are not necessarily the views or opinions of Broadcrown Limited except where the sender specifically states that they are. If you have received this document in error please email the sender and delete the message from your computer without taking copies -----


From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of dgodfrey_amc
Sent: 30 August 2012 16:54
To: vantage@yahoogroups.com
Subject: [Vantage] Vantage 8.03.409C: How can I write to the log file inside a BPM



We are getting errors which look like it is coming from a BPM. I can not identify WHICH BPM it is though. So I want to be able to write to the log file and enter a string that will identify which BPM it is coming from. Can someone show me how to write to the log file within a BPM?



[Non-text portions of this message have been removed]



------------------------------------

Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must have already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder and Crystal Reports and other 'goodies', please goto: http://groups.yahoo.com/group/vantage/files/.
(2) To search through old msg's goto: http://groups.yahoo.com/group/vantage/messages
(3) To view links to Vendors that provide Vantage services goto: http://groups.yahoo.com/group/vantage/linksYahoo! Groups Links
L:og

*Jose C Gomez*
*Software Engineer*
*
*
*
*T: 904.469.1524 mobile
E: jose@...
http://www.josecgomez.com
<http://www.linkedin.com/in/josecgomez> <http://www.facebook.com/josegomez>
<http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
<http://www.josecgomez.com/professional-resume/>
<http://www.josecgomez.com/feed/>
<http://www.usdoingstuff.com>

*Quis custodiet ipsos custodes?*



On Thu, Aug 30, 2012 at 12:55 PM, Dan Godfrey <dgodfrey@...> wrote:

> **
>
>
> So ' Message "Your text here". ' will be in the log file or will it pop up
> to the user. I want it to ONLY show in the log file.
>
>
> -----Original Message-----
> From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
> Of Martin Horton
> Sent: Thursday, August 30, 2012 8:58 AM
> To: vantage@yahoogroups.com
> Subject: RE: [Vantage] Vantage 8.03.409C: How can I write to the log file
> inside a BPM
>
> You just need to add Message "text here" to the BPM
>
> Regards
>
> Martin Horton
> Business Systems Manager
> direct line: +44(0)1889 272250 mobile: +44 (0)7875 404841
> Skype: marthorton Skype number: +44 (0) 121 288 3133
>
> [cid:image001.jpg@01CD86D0.9F62BC20]
>
> Broadcrown Ltd. Airfield Industrial Estate, Hixon, Stafford, Staffs ST18
> 0PF, England
> tel: +44(0)1889 272200 fax: +44(0)1889 272220 www.broadcrown.com<
> http://www.broadcrown.com/>
>
> ----- This email and the information it contains is confidential and may
> be legally privileged. It may be read, copied and used only by the intended
> recipient. Internet communications cannot be guaranteed to be secure or
> indeed error free as information can be intercepted, corrupted, lost,
> destroyed, delayed and or contain viruses. Broadcrown Ltd has scanned the
> email for viruses but does not accept responsibility once the email has
> been transmitted. The receiving company should scan the email and
> attachments (if any) for viruses. Any views or opinions expressed within
> this email are not necessarily the views or opinions of Broadcrown Limited
> except where the sender specifically states that they are. If you have
> received this document in error please email the sender and delete the
> message from your computer without taking copies -----
>
> From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
> Of dgodfrey_amc
> Sent: 30 August 2012 16:54
> To: vantage@yahoogroups.com
> Subject: [Vantage] Vantage 8.03.409C: How can I write to the log file
> inside a BPM
>
> We are getting errors which look like it is coming from a BPM. I can not
> identify WHICH BPM it is though. So I want to be able to write to the log
> file and enter a string that will identify which BPM it is coming from. Can
> someone show me how to write to the log file within a BPM?
>
> [Non-text portions of this message have been removed]
>
> ------------------------------------
>
>
> Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must have
> already linked your email address to a yahoo id to enable access. )
> (1) To access the Files Section of our Yahoo!Group for Report Builder and
> Crystal Reports and other 'goodies', please goto:
> http://groups.yahoo.com/group/vantage/files/.
> (2) To search through old msg's goto:
> http://groups.yahoo.com/group/vantage/messages
> (3) To view links to Vendors that provide Vantage services goto:
> http://groups.yahoo.com/group/vantage/linksYahoo! Groups Links
>
>
>


[Non-text portions of this message have been removed]