On 05/17/2013 11:34 AM, Jakub wrote:
> Hello,
> I'm having a problem with changing S003.0010 field in UNB. Generally EAN code should be placed there but my partner requires a name.
> I cannot change their EAN to the name, because then the NAD+SE would also use that value.
>
> What I tried at first was to use out.ta_info['topartner'] = 'PartnerName' and I thought it worked. It did the trick for one item in Order, but when there are 2 or more the error occurs:
> MessageError: [S04]: Record "[['UNH'], ['UNT']]" occurs 2 times, max is 1.
this looks like another issue.
you are somehow writing the UNT segemtn twice.
when I read what you say, it looks like you re writing the UNT for every item?
henk-jan
>
> I also tried using partner dependent syntax:
> syntax = {
> 'UNB.S003.0007':'ZZZ', # partner qualifier
> 'UNB.S003.0010':'Name',
> }
>
> but it only changes the 0007 field...
>
> Do you have any suggestions?