KVSPSASubscriptionHeader
Extends #3099ffc74cf74df69b967e4bc2bb587c#Subscription Header
Fields
| Name | Type | Note |
|---|---|---|
| KVSPSAJobNo | Code[20] | |
| KVSPSABillToCode | Code[10] | |
| KVSPSABudgetLineNo | Integer | |
| KVSPSAToDoNo | Code[20] | |
| KVSPSAWorkPackageCode | Code[20] | |
| KVSPSAPhaseCode | Code[20] | |
| KVSPSATaskCode | Code[20] | |
| KVSPSAStepCode | Code[20] |
Procedures
KVSPSAGetActivity() : Boolean
Summary: Get Activity from the project for the subscription header Line
procedure KVSPSAGetActivity(): Boolean
Returns: Indicates whether an activity was chosen
KVSPSAUpdateLines(Integer) :
Summary: Updates all subsription Lines for this subscription header with the field no. if you implement your own field no, you have to handle the update logic for that field in the subscription lines.
procedure KVSPSAUpdateLines(FieldNoToUpdate: Integer):
Parameters:
FieldNoToUpdate:
Events
KVSPSAOnBeforeCheckCustomerInJob(Record Subscription Header, Boolean) :
Summary: Allows Skipping the customer in the project
[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeCheckCustomerInJob(var SubscriptionHeader: Record "Subscription Header"; var IsHandled: Boolean):
Parameters:
SubscriptionHeader:IsHandled:
KVSPSAOnBeforeCheckJob(Record Subscription Header, Boolean) :
Summary: Allows skipping the check if the project is blocked or closed.
[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeCheckJob(var SubscriptionHeader: Record "Subscription Header"; var IsHandled: Boolean):
Parameters:
SubscriptionHeader:IsHandled:
KVSPSAOnBeforeUpdateSubscriptionLine(Record Subscription Header, Record Subscription Line, Integer, Boolean) :
Summary: This Event allows you to skip or extend the update of the subscription line.
[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeUpdateSubscriptionLine(SubscriptionHeader: Record "Subscription Header"; var SubscriptionLine: Record "Subscription Line"; FieldNoToUpdate: Integer; var IsHandled: Boolean):
Parameters:
SubscriptionHeader:SubscriptionLine:FieldNoToUpdate:IsHandled:
KVSPSAOnGetActivityAfterAutoConnectWithTargetWBSLine(Record Subscription Header, Boolean, Boolean) :
Summary: This integration event is called after the autoconnect-feature might have found a unique wbs line based on the target work package code. It allows to skip the standard activity selection and set the activity choosen to true. you can reactivate the chosing of the user by resetting activitychoosen to false.
[IntegrationEvent(false, false)]
local procedure KVSPSAOnGetActivityAfterAutoConnectWithTargetWBSLine(var SubscriptionHeader: Record "Subscription Header"; var ActivityChoosen: Boolean; var IsHandled: Boolean):
Parameters:
SubscriptionHeader:ActivityChoosen:IsHandled:
KVSPSAOnGetUnhandledSubscriptionContext(Record Subscription Header, Enum KVSPSAJobBudgetLineType, Boolean) :
Summary: This integration event is called when the subscription type does not map to a known job budget line type, allowing custom types to be handled.
[IntegrationEvent(false, false)]
local procedure KVSPSAOnGetUnhandledSubscriptionContext(var Rec: Record "Subscription Header"; var JobBudgetLineType: Enum "KVSPSAJobBudgetLineType"; var Result: Boolean):
Parameters:
Rec: The current subscription header record.JobBudgetLineType: The job budget line type to set for the unhandled subscription type.Result: Set to true if the job budget line type was resolved.
KVSPSAOnUpdateSubscriptionLineUnknownFieldNo(Record Subscription Header, Record Subscription Line, Integer, Boolean) :
Summary: This integration event allows you to implement the update logic for your own field in the subscription line.
[IntegrationEvent(false, false)]
local procedure KVSPSAOnUpdateSubscriptionLineUnknownFieldNo(SubscriptionHeader: Record "Subscription Header"; var SubscriptionLine: Record "Subscription Line"; FieldNoToUpdate: Integer; var IsHandled: Boolean):
Parameters:
SubscriptionHeader:SubscriptionLine:FieldNoToUpdate:IsHandled: