ERPpals
30th November 2015, 22:27
Hello All,

I have used utc.num() to display the current date, I have used this in Report Script, but my output with numbers only and not getting current date. Could some one explain me where I'm doing wrong.

Here is my report script.

declaration:

extern domain tcmcs.str60 itemcode
extern domain tctxtn barcode
extern domain tcmcs.str11 serialnumber
extern domain tcdate d1,curr_date

before.program:
lattr.textexpand = TRUE

detail.1:
before.layout:

d1 = utc.num()
barcode = 5829277|5829265 | Testing text code for barcodes.
itemcode = strip$(shiftl$(sn_item))
serialnumber = sn_serial_num


Thanks.

ERPpals
30th November 2015, 22:30
Here is the output.

OWNLOAD F,"SERIALNO.BAS"
OPEN "SERIALNO.DAT" FOR INPUT AS 1
FOUT 0,1,447
CLOSE 1
EOP
DOWNLOAD F,"SERIALNO.DAT",447,
^XA
^FO261,76
^BY4,2.5^B3N,N,128,N,N^FDHYH2^FS
^FT413,250
^CI0
^A0N,51,69^FDHYH2^FS
^FT185,107
^A0N,17,14^FDSerial No:^FS
^FO0,283
^GB1177,0,4^FS
^FO563,285
^GB0,323,4^FS
^FO223,304
^BY2,2.5^B3N,N,52,N,N^FDRE335493^FS
^FT231,402
^A0N,51,69^FDRE335493^FS
^FT166,315
^A0N,13,16^FDPart No^FS
^FT584,316
^A0N,17,21^FDDate^FS
^FO622,304
^B3N,N,52,N,N^FD0^FS
^FT678,389
^A0N,34,46^FD0^FS
^PQ1,0,1,Y
^XZ

mark_h
1st December 2015, 17:42
First question is - is tcdate a utc date in your version? Next - do you create what looks like zebra code yourself or are you using a tool? I am wondering if you could just convert the date to a string - then put that on your barcode.

ERPpals
2nd December 2015, 16:15
Thank you all, I have resolved this issue by coveting utc.num().