Hi,
PHBEST is an edi "standard" in the German pharmaceutical industry. It has elements like EDIFACT (UNB, UNZ, UNT, UNH segments). However it has more in common with ODETTE messages.
If you compare an PHBEST message with an ODETTE and an EDIFACT you will get the differences between them:
PHBEST: UNH+4711+PHBEST:2::PH'
ODETTE: UNH+4711+ORDERR:2::OD'
EDIFACT: UNH+4711+ORDERS:D:96A:UN'
This is why the Edifact converter will have problems to find the "right" tables - even if you create an PHBEST message within the Edifact message editor with the PHB, PHT and PHP segments. PHBEST has simply the version in the wrong field for the Edifact tables.
Unfortunately b2b addon has not a message editor for Odette.
So one way is to create the PHBEST message within the odette tables. CAUTION: Please edit the tables only if you know what you are doing! Even experienced b2b addon developers make mistakes there and malform complete tables. If you try this, backup often.
In one of my projects I used an adapter module before the EdifactConverterModule and exchanged the PHBEST:2::PH' pattern with PHBEST:2:PHB:PH' . I created an edifact message called PHBEST with the PHB,PHT and PHP segments with the message version PHB. The converter was working fine with this.
Disadvatage is, that we did not integrate the original message due the changes of the StringReplacementModule.
Third alternative would be the PlainConverterModule with several tricky problems to use the composites and the field separators.
So you have three ways to integrate PHBEST with the b2b addon.
The fastest way is the combination of the EdifactEditor and a string replacement module.
The most accurate and detailed way would be the editing of the odette tables.
Kind regards
Konrad