ShipIT 365

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

There are two ways to populate the Additional References:

The first solution can be used when the additional references are stored on a source document (line).

The second one is a generic approach when the additional references are generic.

When the additional references are derived from a source document (line), like a sales order (line), then the OnBeforeFinalizeFrom* events in the IDYS Publisher codeunit (11147685) can be used. These events have the source document line as a parameter and the transport worksheet line as a var parameter. In this scenario the Additional References field should be copied from the source document line to the transport worksheet line. Later on the information on the transport worksheet line is copied to the transport order.

The following events exists:

  • procedure OnBeforeFinalizeFromSalesOrderLine(SalesLine: Record "Sales Line"; var TransportWorksheetLine: Record "IDYS Transport Worksheet Line")

  • procedure OnBeforeFinalizeFromSalesReturnOrderLine(SalesLine: Record "Sales Line"; var TransportWorksheetLine: Record "IDYS Transport Worksheet Line")

  • procedure OnBeforeFinalizeFromPurchaseReturnOrderLine(PurchaseLine: Record "Purchase Line"; var TransportWorksheetLine: Record "IDYS Transport Worksheet Line")

  • procedure OnBeforeFinalizeFromServiceOrderLine(ServiceLine: Record "Service Line"; var TransportWorksheetLine: Record "IDYS Transport Worksheet Line")

  • procedure OnBeforeFinalizeFromTransferOrderLine(TransferLine: Record "Transfer Line"; var TransportWorksheetLine: Record "IDYS Transport Worksheet Line")

  • procedure OnBeforeFinalizeFromWarehouseShipmentLine(WarehouseShipmentLine: Record "Warehouse Shipment Line"; var TransportWorksheetLine: Record "IDYS Transport Worksheet Line")

  • procedure OnBeforeFinalizeFromPostedSalesShipmentLine(SalesShipmentLine: Record "Sales Shipment Line"; var TransportWorksheetLine: Record "IDYS Transport Worksheet Line")

  • procedure OnBeforeFinalizeFromReturnShipmentLine(ReturnShipmentLine: Record "Return Shipment Line"; var TransportWorksheetLine: Record "IDYS Transport Worksheet Line")

  • procedure OnBeforeFinalizeFromServiceShipmentLine(ServiceShipmentLine: Record "Service Shipment Line"; var TransportWorksheetLine: Record "IDYS Transport Worksheet Line")

  • procedure OnBeforeFinalizeFromTransferShipmentLine(TransferShipmentLine: Record "Transfer Shipment Line"; var TransportWorksheetLine: Record "IDYS Transport Worksheet Line")

  • procedure OnBeforeFinalizeFromPostedReturnReceiptLine(ReturnReceiptLine: Record "Return Receipt Line"; var TransportWorksheetLine: Record "IDYS Transport Worksheet Line")

If you create transport orders automatically during the posting of source documents, then you’ll need the events that are based on posted document lines.
If transport orders are manually manually from unposted documents, then the first set of events can be used.

When you are not relying on information from the source lines, then you can simply use the OnAfterInsert event of the “IDYS Transport Order Header” table or the OnBeforeCreateTransportOrder event of the IDYS Publisher codeunit.

  • No labels