I needed this for generating files into Movex ERP system. The file
format was csv-like with space field separators, backslash-zero record
separators, wrapped around every 80 characters. Wierd, I know!
This is specified in the grammar syntax as...
'quote_char':'',
'field_sep':' ',
'record_sep':'\\0 ',
'add_crlfafterrecord_sep':'',
'fixed_recordlength':80, # this is my modification
outmessage.py _records2file (line 296 onwards modified)
I'm actually planning to use Bots to bypass the standard Movex input
process incorporating TrustedLink EDI/400, which has a huge licensing
cost and is now over 10 years old.
Also I found a typo preventing an error message from working correctly.
In transform.py at line 337, tabel=ccodeid should be table=ccodeid
--
Kind Regards,
Mike
do you have an example of such a file?
henk-jan
I tried to put each record on a new line but the import failed, and
anyway the \BOT and \EOR records are longer than 80. So easiest way is
to just reverse-engineer what the old mapping does!
Kind Regards,
Mike
this is a funny format!
actually I know it quite well, a lot of edifact uses this (mainframes!).
an US X12 is is even very common.
bots can handle this incoming. but now bots can generate it!
this is so cool!
in edifact/x12 it woudl be look like you have a mainframe (or AS400)
the syntax parameter has name 'fixed_recordlength'. that might be
confusing, as bots already has a fixed format.
the name I know for this format is 'wrapped'. Ok if the parameter is
called something like 'wrap_to_fixed_recordlength'?
btw did I even mention that I worked with Movex for 3/4 of a year?
henk-jan
added this.
BikeMike wrote:
> Hi Henk-jan,
> Yes I have heard it called "wrapped' format too, so changing the
> parameter name is fine. Actually I think shorten it to "wrap_length",
> because it's a maximum length rather than a fixed length. You could
> still have Cr-Lf record separators as well, although I don't in this
> case.
>
> I didn't know you had worked with Movex before.
yes, but in a 'fashion/apparel' sector, a heavily customized (and
outdated) version of movex.
as I understood they had to customize it because Movex is for the
automotive sector.
add they kept on customizing....
> I have been working on
> it for around 11 years now, we installed it to be "Y2K ready". It is
> mostly being phased out and replaced by SAP next year (which is why I
> started looking for a good EDI solution and found Bots). The old EDI
> interface into Movex is TrustedLink EDI/400, with mappings provided by
> Movex, the rest of the interface is a very convoluted series of
> programs, control records and file copying. It's almost like they
> wrote 90% of their own EDI interface, then decided the final bit
> (mapping) was too hard and bolted EDI/400 on the end of it, but used
> only a fraction of it's capabilities. We're still on the same version
> we installed back then, Movex 10.6.
>
I have seen this sort of setup.
this can happen if they need extra functionality in the edi part....and
edi translator can not do this, or they do not watn to use translatior
for this.
and it will keep growing and growing. that can go pretty fast.
> I have found that with Bots I can eliminate EDI/400 and all the
> intermediate steps, and go straight to the application interface
> files. (wish I'd had this solution years ago!) I've since had a look
> at the Movex outputs, they are much more conventional "fixed" record
> formats. Only the input files are wrapped like this.
>
> One company previously tied closely with us is now separate and will
> be sticking with Movex, so this iwill be a simpler solution for them.
>
nice
> Kind Regards,
> Mike
>
>
in communication.py there are 'exits' for user defined scripting.
A good solution here would be to add a new exit for user defined scripting.
I will take a better look at this tonight.
henk-jan
of all changes for 2.0.3 being able to produce wrapped edifact is not the most important one,
but it is my favourite one!!
(never realized this could be this easy.)
henk-jan
about the wrapped format:
I think the wrapped format does not play nice with enveloping.
is that right?
henk-jan
Hey,