Altering ISA05 ISA07 in x12 headers

178 views
Skip to first unread message

Neybar

unread,
May 18, 2009, 12:52:30 PM5/18/09
to Bots Open Source EDI Translator
I'm trying to alter the ISA segment in my messages, but when ever I
try to alter the ISA segment I get errors. The odd part is if I try
to update ISA, then I get errors concerning the next out.put line.

Anyway, I need to be able to change the Interchange ID Qualifier for
the sender and reciever. Bots currently stores both the sender and
receiver, but not their respective qualifiers. Ex:

ISA*00* *00* *01*482903760 *01*123456
*090501*1003*U*00401*000000016*1*P*>~

The Qualifier for the sender and receiver is 01, the problem is that
the sender can specify their own qualifier which is usually 01,10, or
ZZ. I'm not sure if there are other options, but I've seen these
three.

I tried setting the syntax variable in my grammar, but that had no
effect. I was poking around and saw that grammar.py on line 585 is
where ISA05 is being set, but I couldn't find if there was a way to
override that value.

My gut feeling is that I'm going to need to update the database and
allow the qualifier to be saved in the same location as the partner's
ID, then use ta_info to set that field. Perhaps allow a fall back to
'01' if it isn't set so nothing breaks going forward.

Thanks,

James

hjeb...@gmail.com

unread,
May 18, 2009, 6:12:45 PM5/18/09
to bots...@googlegroups.com
James,

in bots/usersys/partners
you can set up configuration per partner (as is so often needed in X12).
use directory x12 for outgoing x12 messages.
name of file <partnerid>.py
attached is an example of such a file.

kind regards,
henk-jan

partner5.py
Reply all
Reply to author
Forward
0 new messages