Table of Contents

KVSKBASourceDocumentLines

Events

OnCalcDocLineFieldsCaseElse(Record KVSKBAWarehouseRequestLine, Text[100], Code[10], Decimal, Decimal) :

Summary: This event is raised when calculating the document line fields in the case when the Source Type is not any of the handled cases in the CalcDocLineFields procedure.

[IntegrationEvent(false, false)]
local procedure OnCalcDocLineFieldsCaseElse(KVSKBAWarehouseRequestLine: Record "KVSKBAWarehouseRequestLine"; var DocLineDescription: Text[100]; var DocLineUOMCode: Code[10]; var DocLineQty: Decimal; var DocLineOutstandingQty: Decimal): 

Parameters:

  • KVSKBAWarehouseRequestLine: The warehouse request line record for which the document line fields are being calculated.
  • DocLineDescription: The description of the document line that is being calculated.
  • DocLineUOMCode: The unit of measure code of the document line that is being calculated.
  • DocLineQty: The quantity of the document line that is being calculated.
  • DocLineOutstandingQty: The outstanding quantity of the document line that is being calculated.

Remarks: Subscribers can use this event to calculate the document line fields for Source Types that are not explicitly handled in the CalcDocLineFields procedure. If the event is handled, the standard calculation of the document line fields will be skipped.

OnRunOKButtonOnPushCaseElse(Record KVSKBAWarehouseRequestLine) :

Summary: This event is raised when the RunOKButtonOnPush procedure is called and the CalledBy variable is set to a value that is not handled in the case statement of the procedure.

[IntegrationEvent(true, false)]
local procedure OnRunOKButtonOnPushCaseElse(var KVSKBAWarehouseRequestLin: Record "KVSKBAWarehouseRequestLine"): 

Parameters:

  • KVSKBAWarehouseRequestLin: The warehouse request line record for which the OK button is being pushed.

Remarks: Subscribers can use this event to handle the OK button push for CalledBy values that are not explicitly handled in the RunOKButtonOnPush procedure. If the event is handled, the standard handling of the OK button push will be skipped.

OnShowDocumentCaseElse(Record KVSKBAWarehouseRequestLine) :

Summary: This event is raised when the ShowDocument procedure is called and the Source Type of the KVSKBAWarehouseRequestLine record is set to a value that is not handled in the case statement of the procedure.

[IntegrationEvent(false, false)]
local procedure OnShowDocumentCaseElse(KVSKBAWarehouseRequestLine: Record "KVSKBAWarehouseRequestLine"): 

Parameters:

  • KVSKBAWarehouseRequestLine: The warehouse request line record for which the document is being shown.

Remarks: Subscribers can use this event to handle the ShowDocument action for Source Types that are not explicitly handled in the ShowDocument procedure. If the event is handled, the standard handling of the ShowDocument action will be skipped.

Protected Variables

GlobalWhseRqstLine

Type: Record (KVSKBAWarehouseRequestLine)

WhseActHeaderInvtPick

Type: Record Warehouse Activity Header

WhseActHeaderInvtPutAway

Type: Record Warehouse Activity Header

WhseRcptHeader

Type: Record Warehouse Receipt Header

WhseShptHeader

Type: Record Warehouse Shipment Header

ExpectedReceiptDateVisible

Type: Boolean

LineIsFirstLine

Type: Boolean

LocationCodeHideValue

Type: Boolean

ShipmentDateVisible

Type: Boolean

SourceDocumentHideValue

Type: Boolean

SourceNoHideValue

Type: Boolean

SourceSubtypeHideValue

Type: Boolean

SourceTypeHideValue

Type: Boolean

GlobalDocLineUOMCode

Type: Code[10]

GlobalDocLineOutstandingQty

Type: Decimal

GlobalDocLineQty

Type: Decimal

CalledBy

Type: Option

GlobalDocLineDescription

Type: Text[100]