Adding ++++++EANCOM to ordrsp edifact UNB

121 views
Skip to first unread message

marialui...@gmail.com

unread,
Feb 17, 2014, 11:28:23 AM2/17/14
to bots...@googlegroups.com
Hello ,
 
My Edi partner expects the following interchage header :
 

UNB+UNOA:2+<SUPPLIER_GLN>:14+5450534000000:14+010331:1000+99+++++EANCOM

 

I sent this header :

UNB+UNOA:2+5450534000345:14+5450534000000:14+140217:1606+10'

I'm not able to add the last part ++++++EANCOM.

 

I have read another discussion about changing UNB but I haven't understand the solution suggested .

Could anyone help me?

Thanks, Luisa

 

 

 

Abhishek Ram

unread,
Feb 17, 2014, 12:12:57 PM2/17/14
to bots...@googlegroups.com
I guess you must be setting up connectivity with amazon, I know this because even I am doing the same for a client and I recognize the receiver ID.
In order to add "EANCOM" to the envelope just create/update the file edifact.py in the folder "usersys/envelopescripts" with the below contents.

def envelopecontent(ta_info,out):
   
out.put({'BOTSID':'UNB','0032': 'EANCOM'})


Do note that this will affect all partners, so if you have other partners then do an if on the partner ID before putting the value to the envelope.

marialui...@gmail.com

unread,
Feb 17, 2014, 12:32:58 PM2/17/14
to bots...@googlegroups.com
Thanks for your immediate response ! Tomorrow I'll try to modify my source.
Luisa. 

BikeMike

unread,
Feb 17, 2014, 8:50:29 PM2/17/14
to bots...@googlegroups.com
Hi Luisa,
The correct way to do this "per partner" is with a partner dependent syntax.
http://code.google.com/p/bots/wiki/GrammarsPartnerSyntax

You just create partners/edifact/5450534000000.py containing this code
syntax = {
         
'UNB.0032':'EANCOM',
         
}

Just tested this, it works. I will update the wiki as some syntax parameters are not mentioned. If you look in bots/grammar/py (class edifact) you'll see all the supported values.

Kind Regards,
Mike
Message has been deleted

Abhishek Ram

unread,
Feb 17, 2014, 11:32:54 PM2/17/14
to bots...@googlegroups.com
Thanks mike, I went ahead and updated my configurations.
Reply all
Reply to author
Forward
0 new messages