For us old programmers, the ASCII characters will work as well CHR(13) + CHR(10)
Brenda
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of scottyk537
Sent: Tuesday, April 09, 2013 3:50 PM
To: vantage@yahoogroups.com
Subject: [Vantage] Re: ABL - Line Return?
I recently ran into the same problem and I think I found the answer in case anyone still has this problem. Changing '~n' to ' ~n' fixed the problem in my BPMs.
Scott
Brenda
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of scottyk537
Sent: Tuesday, April 09, 2013 3:50 PM
To: vantage@yahoogroups.com
Subject: [Vantage] Re: ABL - Line Return?
I recently ran into the same problem and I think I found the answer in case anyone still has this problem. Changing '~n' to ' ~n' fixed the problem in my BPMs.
Scott
--- In vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>, Ted Koch <tkoch77@...<mailto:tkoch77@...>> wrote:
>
> Coming back to this...
>
> I have been messing with this more this afternoon and am seeing some weird behavior. Here is the ABL code I am using to produce this email. The result I am getting looks like this if the part description is more than 21 characters, I'm not sure why it is behaving like this... any ideas why it then ignores the line returns after part description gets past a certain length?
>
> ----MESSAGE----
>
> PO #: 997
> Vendor: Computer Corporation
> Phone: 1-800-432-0000
>
> Line: 1
> Part #: tester
> Part Description: 1234567890123456789012 Qty Received: 5
> Qty Ordered: 2
>
>
> ----ABL----
>
> DEFINE VARIABLE VAPPROV AS CHARACTER NO-UNDO.
> DEFINE VARIABLE eBody AS CHARACTER NO-UNDO.
> For each ttrcvdtl where ttrcvdtl.Company = CUR-COMP AND TTRCVDTL.RowMod = 'A'.
> IF TTRCVDTL.OurQty > TTRCVDTL.OurRemQty THEN DO:
> ASSIGN eBody = eBody + '~n' + 'Line: ' + STRING(TTRCVDTL.POLine) + '~n' + 'Part #: ' + TTRCVDTL.PartNum + '~n' + 'Part Description: ' + TTRCVDTL.PartDescription + '~n' + 'Qty Received: ' + STRING(TTRCVDTL.OurQty) + '~n' + 'Qty Ordered: ' + STRING(TTRCVDTL.OurRemQty) + '~n'.
> END.
> END.
>
> FIND FIRST TTRCVDTL WHERE TTRCVDTL.Company = CUR-COMP AND TTRCVDTL.RowMod = 'A'.
> FIND FIRST POHEADER WHERE POHEADER.Company = TTRCVDTL.Company AND POHEADER.PONum = TTRCVDTL.PONum.
> FIND FIRST VENDOR WHERE VENDOR.Company = POHEADER.Company AND VENDOR.VendorNum = POHEADER.VendorNum.
> IF AVAILABLE POHEADER THEN DO:
> FIND FIRST PURAGENT WHERE PURAGENT.Company = POHEADER.Company AND PURAGENT.BuyerID = POHEADER.BuyerID.
> ASSIGN VAPPROV = PURAGENT.EMailAddress.
>
> IF VAPPROV <> '' AND eBody <> '' THEN DO:
> DEFINE VARIABLE vFrom AS CHARACTER NO-UNDO.
> DEFINE VARIABLE VTO AS CHARACTER NO-UNDO.
> DEFINE VARIABLE VCC 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 = 'TAITIT@...'.
> ASSIGN VTO = VAPPROV.
> ASSIGN VCC = ''.
> ASSIGN VSUBJECT = 'EXTRAS RECEIVED'.
> ASSIGN VBODY = 'PO #: ' + STRING(POHEADER.PONum) + '~n' + 'Vendor: ' + VENDOR.Name + '~n' + 'Phone: ' + VENDOR.PhoneNum + '~n' + eBody.
>
> RUN SendEmail in hEmailEx(
> false,
> CUR-COMP,
> VFROM,
> VTO,
> VCC,
> VSUBJECT,
> VBODY,
> ""
> ).
>
> /*IF valid-handle(hEmailEx) then delete procedure hEmailEx.
> leave.*/
> END.
> END.
>
>
>
> ________________________________
> From: Ted Koch <tkoch77@...<mailto:tkoch77@...>>
> To: "vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>" <vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>>
> Sent: Wednesday, March 28, 2012 8:06 AM
> Subject: Re: [Vantage] ABL - Line Return?
>
> Thanks Mark and John.
>
>
>
> ________________________________
> From: Mark Wonsil <mark_wonsil@...<mailto:mark_wonsil@...>>
> To: vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>
> Sent: Tuesday, March 27, 2012 7:40 PM
> Subject: Re: [Vantage] ABL - Line Return?
>
> "~n"
>
>
> On Tuesday, March 27, 2012 at 6:59 PM, tkoch77 wrote:
>
> >
> > Is there a line return variable I can use in ABL code? I am creating an email message and in the body I want to display two seperate amounts. Is there something I can put in between the two amounts so the second appears under the first?
> >
> > ASSIGN eBODY = 'QTY RECEIVED: ' + STRING(TTCALLCONTEXTBPMDATA.Number01) + 'QTY ORDERED: ' + STRING(TTCALLCONTEXTBPMDATA.Number02).
> >
> > Thanks,
> >
> > Ted
> >
> >
>
>
>
> [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/.<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/.<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]
>
[Non-text portions of this message have been removed]