Table of Contents

KVSKBACLLCallPositionLib

Procedures

InitCallPosition(Code[20], Record KVSKBACLLCallPosition) :

Summary: Initializes a call position record with the specified call number.

procedure InitCallPosition(callNo: Code[20]; var callPosition: Record "KVSKBACLLCallPosition"): 

Parameters:

  • callNo: The call number.
  • callPosition: The call position record to initialize.

Remarks: This procedure retrieves the call header information based on the provided call number and initializes the call position record accordingly. It sets the "Call No." and "Contact No." fields of the call position record based on the retrieved call header information.

NextCallPosition(Record KVSKBACLLCallPosition) :

Summary: Determines the next line number for a call position record based on the existing line numbers for the same call number.

procedure NextCallPosition(var callPosition: Record "KVSKBACLLCallPosition"): 

Parameters:

  • callPosition: The call position record for which to determine the next line number.

Remarks: This procedure finds the last existing line number for the specified call number and increments it by 10000 to determine the next line number for the call position record.

CheckIfCopyDocumentLine(Code[20], Code[20], Integer) : Boolean

Summary: Checks if a document line can be copied to a call position.

procedure CheckIfCopyDocumentLine(callNo: Code[20]; documentNo: Code[20]; documentLineNo: Integer): Boolean

Parameters:

  • callNo: The call number.
  • documentNo: The document number.
  • documentLineNo: The document line number.

Returns: True if the document line can be copied; otherwise, false.

Remarks: This procedure checks if a document line already exists in the current or other call positions. If the line is already used in the same call, it returns false. If the line is used in a different call, it prompts the user for confirmation.

ItemLedgerEntry2CallPosition(Record Item Ledger Entry, Record KVSKBACLLCallPosition) :

Summary: Transfers values from an item ledger entry to a call position record.

procedure ItemLedgerEntry2CallPosition(itemLedgerEntry: Record "Item Ledger Entry"; var callPosition: Record "KVSKBACLLCallPosition"): 

Parameters:

  • itemLedgerEntry: The item ledger entry record.
  • callPosition: The call position record to be updated.

Remarks: This procedure transfers relevant values from an item ledger entry to a call position record, including quantity, unit of measure, unit price, location, and serial/lot information.

Events

ItemLedgerEntry2CallPositionOnBeforeInsertCallPosition(Record KVSKBACLLCallPosition, Record Item Ledger Entry) :

Summary: Integration event raised before inserting a call position based on an item ledger entry.

[IntegrationEvent(false, false)]
local procedure ItemLedgerEntry2CallPositionOnBeforeInsertCallPosition(var callPosition: Record "KVSKBACLLCallPosition"; itemLedgerEntry: Record "Item Ledger Entry"): 

Parameters:

  • callPosition: The call position record to be inserted.
  • itemLedgerEntry: The item ledger entry record being copied.

Remarks: Subscribers can implement custom logic before a call position is inserted during the copy operation from an item ledger entry. This allows for modifying the call position or performing additional validations.

ItemLedgerEntry2CallPositionOnAfterInsertCallPosition(Record KVSKBACLLCallPosition, Record Item Ledger Entry) :

Summary: Integration event raised after inserting a call position based on an item ledger entry.

[IntegrationEvent(false, false)]
local procedure ItemLedgerEntry2CallPositionOnAfterInsertCallPosition(var callPosition: Record "KVSKBACLLCallPosition"; itemLedgerEntry: Record "Item Ledger Entry"): 

Parameters:

  • callPosition: The inserted call position record.
  • itemLedgerEntry: The item ledger entry record that was copied.

Remarks: Subscribers can implement custom logic after a call position has been inserted during the copy operation from an item ledger entry. This allows for post-insertion processing or related updates.

CopySalesShptLineToCallPositionOnBeforeInsertCallPosition(Record KVSKBACLLCallPosition, Record Sales Shipment Line) :

Summary: Integration event raised before inserting a call position based on a sales shipment line.

[IntegrationEvent(false, false)]
local procedure CopySalesShptLineToCallPositionOnBeforeInsertCallPosition(var callPosition: Record "KVSKBACLLCallPosition"; var TempSalesShipmentLine: Record "Sales Shipment Line" temporary): 

Parameters:

  • callPosition: The call position record to be inserted.
  • TempSalesShipmentLine: The temporary sales shipment line record being copied.

Remarks: Subscribers can implement custom logic before a call position is inserted during the copy operation from a posted sales shipment line. This allows for modifying the call position or performing additional validations.

CopySalesShptLineToCallPositionOnAfterInsertCallPosition(Record KVSKBACLLCallPosition, Record Sales Shipment Line) :

Summary: Integration event raised after inserting a call position based on a sales shipment line.

[IntegrationEvent(false, false)]
local procedure CopySalesShptLineToCallPositionOnAfterInsertCallPosition(var callPosition: Record "KVSKBACLLCallPosition"; var TempSalesShipmentLine: Record "Sales Shipment Line" temporary): 

Parameters:

  • callPosition: The inserted call position record.
  • TempSalesShipmentLine: The temporary sales shipment line record that was copied.

Remarks: Subscribers can implement custom logic after a call position has been inserted during the copy operation from a posted sales shipment line. This allows for post-insertion processing or related updates.

CopySalesRcptLineToCallPositionOnBeforeInsertCallPosition(Record KVSKBACLLCallPosition, Record Return Receipt Line) :

Summary: Integration event raised before inserting a call position based on a return receipt line.

[IntegrationEvent(false, false)]
local procedure CopySalesRcptLineToCallPositionOnBeforeInsertCallPosition(var callPosition: Record "KVSKBACLLCallPosition"; var TempReturnReceiptLine: Record "Return Receipt Line" temporary): 

Parameters:

  • callPosition: The call position record to be inserted.
  • TempReturnReceiptLine: The temporary return receipt line record being copied.

Remarks: Subscribers can implement custom logic before a call position is inserted during the copy operation from a posted return receipt line. This allows for modifying the call position or performing additional validations.

CopySalesRcptLineToCallPositionOnAfterInsertCallPosition(Record KVSKBACLLCallPosition, Record Return Receipt Line) :

Summary: Integration event raised after inserting a call position based on a return receipt line.

[IntegrationEvent(false, false)]
local procedure CopySalesRcptLineToCallPositionOnAfterInsertCallPosition(var callPosition: Record "KVSKBACLLCallPosition"; var TempReturnReceiptLine: Record "Return Receipt Line" temporary): 

Parameters:

  • callPosition: The inserted call position record.
  • TempReturnReceiptLine: The temporary return receipt line record that was copied.

Remarks: Subscribers can implement custom logic after a call position has been inserted during the copy operation from a posted return receipt line. This allows for post-insertion processing or related updates.

CopySalesInvLineToCallPositionOnBeforeInsertCallPosition(Record KVSKBACLLCallPosition, Record Sales Invoice Line) :

Summary: Integration event raised before inserting a call position based on a sales invoice line.

[IntegrationEvent(false, false)]
local procedure CopySalesInvLineToCallPositionOnBeforeInsertCallPosition(var callPosition: Record "KVSKBACLLCallPosition"; var TempSalesInvoiceLine: Record "Sales Invoice Line" temporary): 

Parameters:

  • callPosition: The call position record to be inserted.
  • TempSalesInvoiceLine: The temporary sales invoice line record being copied.

Remarks: Subscribers can implement custom logic before a call position is inserted during the copy operation from a posted sales invoice line. This allows for modifying the call position or performing additional validations.

CopySalesInvLineToCallPositionOnAfterInsertCallPosition(Record KVSKBACLLCallPosition, Record Sales Invoice Line) :

Summary: Integration event raised after inserting a call position based on a sales invoice line.

[IntegrationEvent(false, false)]
local procedure CopySalesInvLineToCallPositionOnAfterInsertCallPosition(var callPosition: Record "KVSKBACLLCallPosition"; var TempSalesInvoiceLine: Record "Sales Invoice Line" temporary): 

Parameters:

  • callPosition: The inserted call position record.
  • TempSalesInvoiceLine: The temporary sales invoice line record that was copied.

Remarks: Subscribers can implement custom logic after a call position has been inserted during the copy operation from a posted sales invoice line. This allows for post-insertion processing or related updates.

CopySalesCrMLineToCallPositionOnBeforeInsertCallPosition(Record KVSKBACLLCallPosition, Record Sales Cr.Memo Line) :

Summary: Integration event raised before inserting a call position based on a sales credit memo line.

[IntegrationEvent(false, false)]
local procedure CopySalesCrMLineToCallPositionOnBeforeInsertCallPosition(var callPosition: Record "KVSKBACLLCallPosition"; var TempSalesCrMemoLine: Record "Sales Cr.Memo Line" temporary): 

Parameters:

  • callPosition: The call position record to be inserted.
  • TempSalesCrMemoLine: The temporary sales credit memo line record being copied.

Remarks: Subscribers can implement custom logic before a call position is inserted during the copy operation from a posted sales credit memo line. This allows for modifying the call position or performing additional validations.

CopySalesCrMLineToCallPositionOnAfterInsertCallPosition(Record KVSKBACLLCallPosition, Record Sales Cr.Memo Line) :

Summary: Integration event raised after inserting a call position based on a sales credit memo line.

[IntegrationEvent(false, false)]
local procedure CopySalesCrMLineToCallPositionOnAfterInsertCallPosition(var callPosition: Record "KVSKBACLLCallPosition"; var TempSalesCrMemoLine: Record "Sales Cr.Memo Line" temporary): 

Parameters:

  • callPosition: The inserted call position record.
  • TempSalesCrMemoLine: The temporary sales credit memo line record that was copied.

Remarks: Subscribers can implement custom logic after a call position has been inserted during the copy operation from a posted sales credit memo line. This allows for post-insertion processing or related updates.

CopyPurchRcptLineToCallPositionOnBeforeInsertCallPosition(Record KVSKBACLLCallPosition, Record Purch. Rcpt. Line) :

Summary: Integration event raised before inserting a call position based on a purchase receipt line.

[IntegrationEvent(false, false)]
local procedure CopyPurchRcptLineToCallPositionOnBeforeInsertCallPosition(var callPosition: Record "KVSKBACLLCallPosition"; var TempPurchRcptLine: Record "Purch. Rcpt. Line" temporary): 

Parameters:

  • callPosition: The call position record to be inserted.
  • TempPurchRcptLine: The temporary purchase receipt line record being copied.

Remarks: Subscribers can implement custom logic before a call position is inserted during the copy operation from a posted purchase receipt line. This allows for modifying the call position or performing additional validations.

CopyPurchRcptLineToCallPositionOnAfterInsertCallPosition(Record KVSKBACLLCallPosition, Record Purch. Rcpt. Line) :

Summary: Integration event raised after inserting a call position based on a purchase receipt line.

[IntegrationEvent(false, false)]
local procedure CopyPurchRcptLineToCallPositionOnAfterInsertCallPosition(var callPosition: Record "KVSKBACLLCallPosition"; var TempPurchRcptLine: Record "Purch. Rcpt. Line" temporary): 

Parameters:

  • callPosition: The inserted call position record.
  • TempPurchRcptLine: The temporary purchase receipt line record that was copied.

Remarks: Subscribers can implement custom logic after a call position has been inserted during the copy operation from a posted purchase receipt line. This allows for post-insertion processing or related updates.

CopyPurchShptLineToCallPositionOnBeforeInsertCallPosition(Record KVSKBACLLCallPosition, Record Return Shipment Line) :

Summary: Integration event raised before inserting a call position based on a purchase return shipment line.

[IntegrationEvent(false, false)]
local procedure CopyPurchShptLineToCallPositionOnBeforeInsertCallPosition(var callPosition: Record "KVSKBACLLCallPosition"; var TempPurchShptLine: Record "Return Shipment Line" temporary): 

Parameters:

  • callPosition: The call position record to be inserted.
  • TempPurchShptLine: The temporary purchase return shipment line record being copied.

Remarks: Subscribers can implement custom logic before a call position is inserted during the copy operation from a posted purchase return shipment line. This allows for modifying the call position or performing additional validations.

CopyPurchShptLineToCallPositionOnAfterInsertCallPosition(Record KVSKBACLLCallPosition, Record Return Shipment Line) :

Summary: Integration event raised after inserting a call position based on a purchase return shipment line.

[IntegrationEvent(false, false)]
local procedure CopyPurchShptLineToCallPositionOnAfterInsertCallPosition(var callPosition: Record "KVSKBACLLCallPosition"; var TempPurchShptLine: Record "Return Shipment Line" temporary): 

Parameters:

  • callPosition: The inserted call position record.
  • TempPurchShptLine: The temporary purchase return shipment line record that was copied.

Remarks: Subscribers can implement custom logic after a call position has been inserted during the copy operation from a posted purchase return shipment line. This allows for post-insertion processing or related updates.

OnCopyPurchInvLineToCallPositionOnBeforeInsertCallPosition(Record KVSKBACLLCallPosition, Record Purch. Inv. Line) :

Summary: Integration event raised before inserting a call position based on a purchase invoice line.

[IntegrationEvent(false, false)]
local procedure OnCopyPurchInvLineToCallPositionOnBeforeInsertCallPosition(var callPosition: Record "KVSKBACLLCallPosition"; var TempPurchInvLine: Record "Purch. Inv. Line" temporary): 

Parameters:

  • callPosition: The call position record to be inserted.
  • TempPurchInvLine: The temporary purchase invoice line record being copied.

Remarks: Subscribers can implement custom logic before a call position is inserted during the copy operation from a posted purchase invoice line. This allows for modifying the call position or performing additional validations.

OnCopyPurchInvLineToCallPositionOnAfterInsertCallPosition(Record KVSKBACLLCallPosition, Record Purch. Inv. Line) :

Summary: Integration event raised after inserting a call position based on a purchase invoice line.

[IntegrationEvent(false, false)]
local procedure OnCopyPurchInvLineToCallPositionOnAfterInsertCallPosition(var callPosition: Record "KVSKBACLLCallPosition"; var TempPurchInvLine: Record "Purch. Inv. Line" temporary): 

Parameters:

  • callPosition: The inserted call position record.
  • TempPurchInvLine: The temporary purchase invoice line record that was copied.

Remarks: Subscribers can implement custom logic after a call position has been inserted during the copy operation from a posted purchase invoice line. This allows for post-insertion processing or related updates.

CopyPurchCrMLineToCallPositionOnBeforeInsertCallPosition(Record KVSKBACLLCallPosition, Record Purch. Cr. Memo Line) :

Summary: Integration event raised before inserting a call position based on a purchase credit memo line.

[IntegrationEvent(false, false)]
local procedure CopyPurchCrMLineToCallPositionOnBeforeInsertCallPosition(var callPosition: Record "KVSKBACLLCallPosition"; var TempPurchCrMemoLine: Record "Purch. Cr. Memo Line" temporary): 

Parameters:

  • callPosition: The call position record to be inserted.
  • TempPurchCrMemoLine: The temporary purchase credit memo line record being copied.

Remarks: Subscribers can implement custom logic before a call position is inserted during the copy operation from a posted purchase credit memo line. This allows for modifying the call position or performing additional validations.

CopyPurchCrMLineToCallPositionOnAfterInsertCallPosition(Record KVSKBACLLCallPosition, Record Purch. Cr. Memo Line) :

Summary: Integration event raised after inserting a call position based on a purchase credit memo line.

[IntegrationEvent(false, false)]
local procedure CopyPurchCrMLineToCallPositionOnAfterInsertCallPosition(var callPosition: Record "KVSKBACLLCallPosition"; var TempPurchCrMemoLine: Record "Purch. Cr. Memo Line" temporary): 

Parameters:

  • callPosition: The inserted call position record.
  • TempPurchCrMemoLine: The temporary purchase credit memo line record that was copied.

Remarks: Subscribers can implement custom logic after a call position has been inserted during the copy operation from a posted purchase credit memo line. This allows for post-insertion processing or related updates.

OnCopyProdOrderLineToCallPositionOnBeforeInsertCallPosition(Record KVSKBACLLCallPosition, Record Prod. Order Line) :

Summary: Integration event raised before inserting a call position based on a production order line.

[IntegrationEvent(false, false)]
local procedure OnCopyProdOrderLineToCallPositionOnBeforeInsertCallPosition(var callPosition: Record "KVSKBACLLCallPosition"; var TempProdOrderLine: Record "Prod. Order Line" temporary): 

Parameters:

  • callPosition: The call position record to be inserted.
  • TempProdOrderLine: The temporary production order line record being copied.

Remarks: Subscribers can implement custom logic before a call position is inserted during the copy operation from a production order line. This allows for modifying the call position or performing additional validations.

OnCopyProdOrderLineToCallPositionOnAfterInsertCallPosition(Record KVSKBACLLCallPosition, Record Prod. Order Line) :

Summary: Integration event raised after inserting a call position based on a production order line.

[IntegrationEvent(false, false)]
local procedure OnCopyProdOrderLineToCallPositionOnAfterInsertCallPosition(var callPosition: Record "KVSKBACLLCallPosition"; var TempProdOrderLine: Record "Prod. Order Line" temporary): 

Parameters:

  • callPosition: The inserted call position record.
  • TempProdOrderLine: The temporary production order line record that was copied.

Remarks: Subscribers can implement custom logic after a call position has been inserted during the copy operation from a production order line. This allows for post-insertion processing or related updates.