Creating grammar for inner messages (inside a composite of an segment)

136 views
Skip to first unread message

Pedro Sarmento

unread,
Oct 27, 2012, 1:13:56 PM10/27/12
to bots...@googlegroups.com
Hi,
 
I need to create the grammar for an EDIFACT message like this:
 
UNH+1+MHISRR:05:0:1A+999999'
APL+::BMT'
SDI+++2010:12:13:0:0:0'
SDI+++2010:12:7:7:14:8:562'
UID+:OPOTP00CM:9149AS++ANSETAS'
CPY++++TP'
STX+:::BGG'
ATR++V'
LTS+2'
ATR++T'
LTS+AEvFJqpzti0GuyOh'
ATR++E'
LTS+BMTBAGU'
ATR++I'
LTS+10000000045A2622'
ATR++C'
LTS+BGG'
ATR++S'
LTS+BGG'
BLB+241+E+UNH+1+CHISGR:05:1:1A+999999'
ANI+OPO+++A/OPO/T//CKI/22'
DCD++TP000E61:J'
IRV++++:::UCI::::::::004444CCAF27621D+:::RCSS::::::::CANARIO+:::RCSF::::::::MARIA+:::RCST::::::::MRS'
ATR+NEW+HOBN:2+HOBW:27+UNIT:kg'
ATR+OLD+HOBN:1+HOBW:23+UNIT:kg'
UNT+7+1'
'
...
UNT+135+1'
 
I receive a message CHISGR inside the composite of the segment BLB.
 
 
How can I configure the grammar of boots?
 
Thanks

henk-jan ebbers

unread,
Oct 27, 2012, 6:56:20 PM10/27/12
to bots...@googlegroups.com
mmmh,
never heard of MHISRR:05:0:1A
or CHISGR:05:1:1A
where do they come form?
these are not UN-messages?

kind regards,
henk-jan


On 10/27/2012 07:13 PM, Pedro Sarmento wrote:
> Hi,
> I need to create the grammar for an EDIFACT message like this:
> UNH+1+*MHISRR*:05:0:1A+999999'
> APL+::BMT'
> SDI+++2010:12:13:0:0:0'
> SDI+++2010:12:7:7:14:8:562'
> UID+:OPOTP00CM:9149AS++ANSETAS'
> CPY++++TP'
> STX+:::BGG'
> ATR++V'
> LTS+2'
> ATR++T'
> LTS+AEvFJqpzti0GuyOh'
> ATR++E'
> LTS+BMTBAGU'
> ATR++I'
> LTS+10000000045A2622'
> ATR++C'
> LTS+BGG'
> ATR++S'
> LTS+BGG'
> BLB+241+E+UNH+1+*CHISGR*:05:1:1A+999999'
> ANI+OPO+++A/OPO/T//CKI/22'
> DCD++TP000E61:J'
> IRV++++:::UCI::::::::004444CCAF27621D+:::RCSS::::::::CANARIO+:::RCSF::::::::MARIA+:::RCST::::::::MRS'
> ATR+NEW+HOBN:2+HOBW:27+UNIT:kg'
> ATR+OLD+HOBN:1+HOBW:23+UNIT:kg'
> UNT+7+1'
> '
> ...
> UNT+135+1'
> I receive a message CHISGR inside the composite of the segment BLB.
> How can I configure the grammar of boots?
> Thanks
> --
>
>

Pedro Sarmento

unread,
Oct 28, 2012, 6:46:42 AM10/28/12
to bots...@googlegroups.com
I don't believe that they are UN messages.
 
I you know Amadeus? It's a huge german airline systems company with a core airline systems that use EDIFACT for information dump with its airline clients companies.
 
Do you know how to configure Bots? So far what i have done is:
 
1 - introduce a UNA
2 - introduce a UNB
3 - introduce a UNZ calculating the correct UNH segments
4 - find and replace BLB segment and insert a segment termination in place of the element separator that existed
5 - insert a UNS segment between the two UNT segments
6 - change bots core code not to verify UNT total segments
 
And asking Amadeus to change their Edifact implementation is not possible at this time :) 
 
Pedro.

henk-jan ebbers

unread,
Oct 28, 2012, 6:57:03 AM10/28/12
to bots...@googlegroups.com
you will need their edifact specifications.
you will need to make grammar for the segment directory, and the messages.
there are examples in the plugins or the downloads of UN-message directories.


On 10/28/2012 11:46 AM, Pedro Sarmento wrote:
>
> UNH+1+*MHISRR*:05:0:1A+999999'
> APL+::BMT'
> SDI+++2010:12:13:0:0:0'
> SDI+++2010:12:7:7:14:8:562'
> UID+:OPOTP00CM:9149AS++ANSETAS'
> CPY++++TP'
> STX+:::BGG'
> ATR++V'
> LTS+2'
> ATR++T'
> LTS+AEvFJqpzti0GuyOh'
> ATR++E'
> LTS+BMTBAGU'
> ATR++I'
> LTS+10000000045A2622'
> ATR++C'
> LTS+BGG'
> ATR++S'
> LTS+BGG'
> BLB+241+E+UNH+1+*CHISGR*:05:1:1A+999999'
> ANI+OPO+++A/OPO/T//CKI/22'
> DCD++TP000E61:J'
> IRV++++:::UCI::::::::004444CCAF27621D+:::RCSS::::::::CANARIO+:::RCSF::::::::MARIA+:::RCST::::::::MRS'
> ATR+NEW+HOBN:2+HOBW:27+UNIT:kg'
> ATR+OLD+HOBN:1+HOBW:23+UNIT:kg'
> UNT+7+1'
> '
> ...
> UNT+135+1'
>
is this serious?
is this production stuff, an not some garbled stuff?

henk-jan


> I receive a message CHISGR inside the composite of the segment BLB.
> How can I configure the grammar of boots?
> Thanks
>
> --
>
>

Reply all
Reply to author
Forward
0 new messages