Overview
All output batches generated in the MES from production orders for inventory material maintained in the
ERP system are transferred to the ERP system via the interface.
The tree of generation and the user-defined fields (from the producing operation) are transferred as detail
information for each batch.
This data is read from the MES table EVENT_MLB.
MES provides this data cyclically to the ERP system. The IDoc is of the type ZWEI02. This leads to the
following specification:
Message type: ZWEI
File name (for file transfers) : Z2WEI000X000
File extension (for file transfers): Depending on the configuration (by default .dat“)
IDOC type (with tRFC communication): ZWEI02
Segments: Z2WEI000X000 (goods receipt)
Z2CNRATT_C000X000 (alphanumeric batch attributes part 1)
Z2CNRATT_C001X000 (alphanumeric batch attributes part 2 )
Z2CNRATT_N000X000 (numeric batch attributes) - OBSOLETE6
Z2CNRATT_N001X000 (numeric batch attributes)7
Z2CNRBAUM000X000 (optionally: tree of generation)
Z2TOLO000X000 (optionally: sub-batches)
Z2CNR_USRFLD000X000 (optionally: user fields)8
Movement types
Goods receipt is transferred from MES to the ERP system using the IDoc and message types described
below. The corresponding action (goods receipt, stock transfer, etc.) must be triggered in the ERP system
in line with the movement type.
The following table describes which movement type is used in order to transfer goods receipt postings to
the ERP system
Goods receipt (Z2WEI000X000)
The goods receipt is transferred by the data record described below. The detailed information:
- user-specific fields
- tree of generation
- sub-batches for pallets
is transferred in sub-segments.
Please note: Batch-related fields will also only be completed in case of movements that are batch-related.
Information on the fields CHARGE / CHARGE_LONG
The field CHARGE_LONG is only available as of MPL 8.2.
If MPL 8.2 is used the fields CHARGE and CHARGE_LONG will be completed as follows:
CHARGE includes the ERP batch number including the characters 1-10.
CHARGE_LONG includes the ERP batch number including the characters 1-20.
It is recommended to use the value of the CHARGE_LONG field for new implementations
Alphanumeric attributes (Z2CNRATT_C000X000)
The following segment is used to transmit the (first 20) alphanumeric batch attributes.
Alphanumeric attributes (Z2CNRATT_C001X000)
The following segment is used to transmit the (first 20) alphanumeric batch attributes.
Numeric attributes (Z2CNRATT_N000X000) - OBSOLETE
The following segment is used to transmit the numeric batch attributes.
Numeric attributes (Z2CNRATT_N001X000)
From version 1.72946 (2015/SP7) on of the script mle_rckmestyp_zwei_out.hsc it is possible to confirm/upload the numeric attributes of a batch via segment Z2CNRATT_N001X000.
Depending on the product version in use, the segment has to be activated manually:
MPL/TRT 8.1
Uploads via segment Z2CNRATT_N001X000 must be enabled manually.
MPL/TRT 8.2
For new installations after SP7/2015 the segment is used by default.
For installations prior to that date the segment has to be enabled manually.
The transfer of the segment has to be activated in HYDRA INI configuration.
Data is read from the HYDRA table los_bestand
Tree of generation (Z2CNRBAUM000X000)
The following data record is part of the tree of generation of a batch. These are "OPTIONAL“ segments,
i.e. they are only then included in an IDoc if they exist.
This data is read from the HYDRA table LOS_ZUORDNUNGEN.
Please note:
This information should be managed in a user-specific table "ZCNRBAUM“ in ERP, the structure of which should be identical to that of the segment.
Sub-batches (Z2TOLO000X000)
For pallets (TRT-PPK) the described sub-segment transfers the included sub-batches that are assigned to the pallets. These are "OPTIONAL“ segments, i.e. they are only then included in an IDoc if they exist.
This data is read from the HYDRA table ZTOLO.
User fields (Z2CNR_USRFLD000X000)
Provided with version 1.8 of the script mle_rckmestyp_zwei_out.hsc there is the option to transfer/upload
the user fields of a batch as well. Data is transferred in the segment Z2CNR_USRFLD000X000.
The transfer of the segment has to be activated in HYDRA INI configuration.
Data is read from the HYDRA table los_bestand