APRF missing in tradacoms output

85 views
Skip to first unread message

HC

unread,
Sep 18, 2017, 10:57:07 AM9/18/17
to Bots Open Source EDI Translator
Hi all,

First time poster, be gentle!

I am using trying to use bots to convert a fixed file to tradacoms orders v9 format.

This looks good apart from I can't seem to get the APRF field to output on the STX record.

This is not available in the input file, so will need set / taken from somewhere else.


Expected output -
STX=ANA:1+9999999999999+8888888888888+170918:110111+21++ORDHDR'

Actual output -
STX=ANA:1+9999999999999+8888888888888+170918:110111+21'


So far I have tried the following in the mapping script -

def main(inn,out):
   out.put({'BOTSID':'STX'})   #for tradacoms: dummy root node is created (is not used!! for eg envelope)
 
  ## below does not seem to work
   out.ta_info['STX.APRF']='ORDHDR'
   ## below does not seem to work either
   out.put({'BOTSID':'STX','APRF':'ORDHDR'})


Any help would be much appreciated.


Thanks
HC

henk-jan ebbers

unread,
Sep 18, 2017, 11:13:26 AM9/18/17
to 'HC' via Bots Open Source EDI Translator
hi HC,

APRF is part of envelope.

in bots this is done during enveloping.

which means that APRF is not filled from mapping.

(not saying that is smart, it is the way I set it up in bots. I have never gotten much feedback about TRADACOM usage)


so put it in syntax.

that can be on envelope level (for all tradacoms out),

message level (in ORDHDR9.py)

or per partner (partner file in bots/usersys/partners/tradacoms)


kind regards,

henk-jan
> --
> You received this message because you are subscribed to the Google Groups "Bots Open Source EDI Translator" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to botsmail+u...@googlegroups.com <mailto:botsmail+u...@googlegroups.com>.
> Visit this group at https://groups.google.com/group/botsmail.
> For more options, visit https://groups.google.com/d/optout.

HC

unread,
Sep 18, 2017, 1:01:47 PM9/18/17
to Bots Open Source EDI Translator
henk-jan,

Added 
syntax={'STX.APRF':'ORDHDR',}
to ORDHDR9.py and it works great now!


Thanks
HC

henk-jan ebbers

unread,
Sep 18, 2017, 1:04:38 PM9/18/17
to 'HC' via Bots Open Source EDI Translator
good!
the enveloping idea is more of edifact and x12.
first generate the messages than envelope.
most envelope data are quite static.

kind regards,
henk-jan
Reply all
Reply to author
Forward
0 new messages