O agrupamento de embarque ou ShipmentGroup, é uma forma de relacionar diversos embarques em um só grupo. Ele será feito através da tag 'ShipmentHeader2' junto ao embarque, nessa tag deverá conter o 'ShipmentGroupGid', que irá relacionar o embarque a um determinado grupo.
Exemplo
CODE
<otm:ShipmentHeader2>
...
<otm:ShipmentGroupHeader>
<otm:TransactionCode>NP</otm:TransactionCode>
<otm:ShipmentGroupGid>
<otm:Gid>
<otm:DomainName>EMBDEV</otm:DomainName>
<otm:Xid>AGRU</otm:Xid>
</otm:Gid>
</otm:ShipmentGroupGid>
<otm:SourceLocationRef>
<otm:LocationRef>
<otm:LocationGid>
<otm:Gid>
<otm:DomainName>EMBDEV</otm:DomainName>
<otm:Xid>TESTE0123</otm:Xid>
</otm:Gid>
</otm:LocationGid>
</otm:LocationRef>
</otm:SourceLocationRef>
<otm:DestinationLocationRef>
<otm:LocationRef>
<otm:LocationGid>
<otm:Gid>
<otm:DomainName>EMBDEV</otm:DomainName>
<otm:Xid>0123741852</otm:Xid>
</otm:Gid>
</otm:LocationGid>
</otm:LocationRef>
</otm:DestinationLocationRef>
<otm:TotalWeightVolume>
<otm:WeightVolume>
<otm:Weight>
<otm:WeightValue>10.0017</otm:WeightValue>
<otm:WeightUOMGid>
<otm:Gid>
<otm:Xid>KG</otm:Xid>
</otm:Gid>
</otm:WeightUOMGid>
</otm:Weight>
<otm:Volume>
<otm:VolumeValue>0.1000</otm:VolumeValue>
<otm:VolumeUOMGid>
<otm:Gid>
<otm:Xid>CUMTR</otm:Xid>
</otm:Gid>
</otm:VolumeUOMGid>
</otm:Volume>
</otm:WeightVolume>
</otm:TotalWeightVolume>
<otm:FlexFieldStrings/>
<otm:FlexFieldNumbers/>
<otm:FlexFieldDates/>
</otm:ShipmentGroupHeader>
...
</otm:ShipmentHeader2>
{{component-feedback-article}}