EDIFACT INVOIC: Problem reading PIA-Line

58 views
Skip to first unread message

Josef Peuermann

unread,
Mar 11, 2024, 3:38:50 AM3/11/24
to Bots Open Source EDI Translator
Hey all,

I have the following information in my file (for a certain invoice line):
LIN+1'
PIA+1+ABC12345:SA::91'
IMD+F++:::HelloWorldItem::DE'

I can read the "HelloWorldItem" like this:
inn.get({'BOTSID':'UNH'},{'BOTSID':'LIN'},{'BOTSID':'IMD','7077':'F','C273.7008#1':None})})

According to the EDIFACT specification, I should be able to read "ABC12345" like this:
inn.get({'BOTSID':'UNH'},{'BOTSID':'LIN'},{'BOTSID':'PIA','C212.7140':None})

But I can't get any value except for "1" (the first one after "PIA+") out of this line.
Can anyone lend a hand?

Regard,
Josef

Josef Peuermann

unread,
Mar 11, 2024, 4:01:05 AM3/11/24
to Bots Open Source EDI Translator
The same weirdly goes for the CUX-Line.

Henk-Jan Ebbers

unread,
Mar 11, 2024, 4:03:17 AM3/11/24
to bots...@googlegroups.com
there is a debug option in bots.
see part of wiki that explains how to do that.


kind regards
Henk-Jan Ebbers

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/botsmail/e6fe7564-377f-476b-b9e7-9ce3a59a2151n%40googlegroups.com.

Josef Peuermann

unread,
Mar 11, 2024, 4:26:58 AM3/11/24
to Bots Open Source EDI Translator
This worked:
inn.get({'BOTSID':'UNH'},{'BOTSID':'LIN'},{'BOTSID':'PIA','C212#1.7143':'SA','C212#1.7140':None})

The '#1' was missing. I found this in the edifact grammar. Is there a sure way to know which segment IDs need a #1, #2, etc. and which do not (without checking the grammar everytime)?

Regards,
Josef

Wojciech Kazimierczak

unread,
Mar 11, 2024, 4:58:19 AM3/11/24
to Bots Open Source EDI Translator
It is necessary always when in the guidelines a data element or composite is repeated several times, like on the two examples below.

ftx.png
cux.png

Josef Peuermann

unread,
Mar 11, 2024, 6:23:09 AM3/11/24
to Bots Open Source EDI Translator
OK, so something I have to know by heart (because in our supplier's specification there is, unfortunately, no indicator for this and those segments which are duplicate, are not near each other in the document).
Thanks!

Henk-Jan Ebbers

unread,
Mar 11, 2024, 6:56:10 AM3/11/24
to bots...@googlegroups.com

Wojciech Kazimierczak

unread,
Mar 11, 2024, 7:09:56 AM3/11/24
to bots...@googlegroups.com
You can find the same information in a very convinient EDIFACT directory: https://www.truugo.com/edifact/d96a/invoic/


Josef Peuermann

unread,
Mar 14, 2024, 3:35:33 AM3/14/24
to Bots Open Source EDI Translator
Thanks, guys.
Reply all
Reply to author
Forward
0 new messages