KVSKBACLLCallPositionMgt
Procedures
CopyCrMemoToCallPosition(Record KVSKBACLLCallHeader) :
Summary: Copies credit memo lines to call positions for both sales and purchase credit memos.
procedure CopyCrMemoToCallPosition(callHeader: Record "KVSKBACLLCallHeader"):
Parameters:
callHeader: The call header record that determines whether to copy from sales or purchase credit memos.
Remarks: For customer calls: Copies posted sales credit memo lines. For vendor calls: Copies posted purchase credit memo lines. The call must have status Open. Contact type calls are ignored.
CopyReturnToCallPosition(Record KVSKBACLLCallHeader) :
Summary: Copies return receipt lines to call positions for both sales and purchase returns.
procedure CopyReturnToCallPosition(callHeader: Record "KVSKBACLLCallHeader"):
Parameters:
callHeader: The call header record that determines whether to copy from sales or purchase returns.
Remarks: For customer calls: Copies posted sales return receipt lines. For vendor calls: Copies posted purchase return shipment lines. The call must have status Open. Contact type calls are ignored.
CopyInvoiceToCallPosition(Record KVSKBACLLCallHeader) :
Summary: Copies invoice lines to call positions for both sales and purchase invoices.
procedure CopyInvoiceToCallPosition(callHeader: Record "KVSKBACLLCallHeader"):
Parameters:
callHeader: The call header record that determines whether to copy from sales or purchase invoices.
Remarks: For customer calls: Copies posted sales invoice lines. For vendor calls: Copies posted purchase invoice lines. Contact type calls are ignored. No status check required.
CopyShipmentToCallPosition(Record KVSKBACLLCallHeader) :
Summary: Copies shipment lines to call positions for both sales and purchase shipments.
procedure CopyShipmentToCallPosition(callHeader: Record "KVSKBACLLCallHeader"):
Parameters:
callHeader: The call header record that determines whether to copy from sales or purchase shipments.
Remarks: For customer calls: Copies posted sales shipment lines. For vendor calls: Copies posted purchase receipt lines. The call must have status Open. Contact type calls are ignored.
CopyFinCCMCallToCallPosition(Record KVSKBACLLCallHeader) :
Summary: Copies call position archive lines to call positions.
procedure CopyFinCCMCallToCallPosition(callHeader: Record "KVSKBACLLCallHeader"):
Parameters:
callHeader: The call header record containing the contact information.
Remarks: Copies finished call positions from the contact's archive into new call positions for the current call. The call must have status Open.
CopyProdOrderToCallPosition(Record KVSKBACLLCallHeader) :
Summary: Copies production order lines to call positions.
procedure CopyProdOrderToCallPosition(callHeader: Record "KVSKBACLLCallHeader"):
Parameters:
callHeader: The call header record.
Remarks: Copies production order lines into call positions for the current call. The call must have status Open.
TestStatusOpen(Record KVSKBACLLCallPosition) :
Summary: Tests if the status of the call associated with the given call position is Open.
procedure TestStatusOpen(var callPosition: Record "KVSKBACLLCallPosition"):
Parameters:
callPosition: The call position record for which to test the call status.
Remarks: This procedure retrieves the call header record associated with the given call position using the "Call No." field. It then tests if the status of the call header is Open. If the call header cannot be found or if the status is not Open, an error will be raised.
Events
OnBeforeCopyPositions(Record KVSKBACLLCallHeader) :
Summary: The OnBeforeCopyPositions event is triggered in all instances where call positions are created from source documents.
[IntegrationEvent(false, false)]
local procedure OnBeforeCopyPositions(callHeader: Record "KVSKBACLLCallHeader"):
Parameters:
callHeader: Record to be created
Remarks: This event is triggered in all instances where call positions are created from source documents, such as when creating call positions from sales credit memos, purchase credit memos, invoices, shipments, production orders, etc. The event allows subscribers to implement custom logic before the call positions are created, such as modifying the call header record, validating certain conditions, or even canceling the creation of call positions by throwing an exception.
OnCaseElseInDrillDownDocumentNo(Enum KVSKBACLLCallPositionDocType, Code[20]) :
Summary: The event is triggered within the DrillDownDocumentNo function, specifically in the Else case. It allows the function to be extended to support new "Document Type"
[IntegrationEvent(false, false)]
local procedure OnCaseElseInDrillDownDocumentNo(CLLCallPositionDocType: Enum "KVSKBACLLCallPositionDocType"; DocumentNo: Code[20]):
Parameters:
CLLCallPositionDocType: Document Type of the recordDocumentNo: Document No of the record
Remarks: This event is triggered within the DrillDownDocumentNo function, specifically in the Else case. It allows the function to be extended to support new "Document Type". For example, if an ISV has a custom document type that they want to support drilling down to, they can subscribe to this event and implement the drill down logic for their custom document type.
OnAfterDrillDownDocumentLineNo(Enum KVSKBACLLCallPositionDocType, Code[20], Integer) :
Summary: The event is triggered at the end of the DrillDownDocumentLineNo function. It allows the function to be extended to support new "Document Type"
[IntegrationEvent(false, false)]
local procedure OnAfterDrillDownDocumentLineNo(CLLCallPositionDocType: Enum "KVSKBACLLCallPositionDocType"; DocumentNo: Code[20]; DocumentLineNo: Integer):
Parameters:
CLLCallPositionDocType: Document Type of the recordDocumentNo: Document No of the recordDocumentLineNo: Document Line No of the record
Remarks: This event is triggered at the end of the DrillDownDocumentLineNo function. It allows the function to be extended to support new "Document Type". For example, if an ISV has a custom document type that they want to support drilling down to, they can subscribe to this event and implement the drill down logic for their custom document type.
OnCaseElseInGetSourceType(Record KVSKBACLLCallPosition) :
Summary: The event is triggered within the GetSourceType function, specifically in the Else case. It allows the function to be extended to support new "Document Type"
[IntegrationEvent(false, false)]
local procedure OnCaseElseInGetSourceType(var CLLCallPosition: Record "KVSKBACLLCallPosition"):
Parameters:
CLLCallPosition:
Remarks: This event is triggered within the GetSourceType function, specifically in the Else case. It allows the function to be extended to support new "Document Type". For example, if an ISV has a custom document type that they want to support, they can subscribe to this event and implement the logic to set the appropriate "Source Type" and "Source Subtype" for their custom document type.
OnCaseElseInLookupDocumentNo(Record KVSKBACLLCallPosition) :
Summary: The event is triggered within the LookupDocumentNo function, specifically in the Else case. It allows the function to be extended to support new "Document Type"
[IntegrationEvent(false, false)]
local procedure OnCaseElseInLookupDocumentNo(var CLLCallPosition: Record "KVSKBACLLCallPosition"):
Parameters:
CLLCallPosition: The source record of the function
Remarks: This event is triggered within the LookupDocumentNo function, specifically in the Else case. It allows the function to be extended to support new "Document Type". For example, if an ISV has a custom document type that they want to support lookup for, they can subscribe to this event and implement the lookup logic for their custom document type.