Skip to content

KVSPSACreateRequistionFromPSP#

Procedures#

DefVendor(Code[20], Enum KVSPSAPurchDocTypeCreatePSP, Boolean, Code[20], Code[20]) :#

Obsolete

This Element will be removed or changed with a future Version of the App.

Summary: Set some Parameters for call of the Report Create Req. Wksh. from WBS

[Obsolete('Use SetCreateJobPurchParameters with Parameter Table', '23.2')]
procedure DefVendor(DefJobNo: Code[20]; DefDocType: Enum "KVSPSAPurchDocTypeCreatePSP"; DefJobAdress: Boolean; ReqWhseTemplate: Code[20]; ReqWhseName: Code[20]): 

SetCreateJobPurchParameters(Record KVSPSACreateJobPurchParameters) :#

Summary: Set some Parameters for call of the Report KVSPSACreateRequistionFromPSP

procedure SetCreateJobPurchParameters(var CreateJobPurchParameters: Record "KVSPSACreateJobPurchParameters"): 

Events#

KVSPSAOnAfterCreateRequisitionLineForBudgetLine(Record Requisition Line, Record KVSPSA Job Budget Line, Record KVSPSACreateJobPurchParameters) :#

Summary: Allows actions after inserting the requisition line.

[IntegrationEvent(false, false)]
local procedure KVSPSAOnAfterCreateRequisitionLineForBudgetLine(var RequisitionLine: Record "Requisition Line"; KVSPSAJobBudgetLine: Record "KVSPSA Job Budget Line"; var GlobalCreateJobPurchParameters: Record "KVSPSACreateJobPurchParameters"): 
[EventSubscriber(ObjectType::Report, Report::"KVSPSACreateRequistionFromPSP", 'KVSPSAOnAfterCreateRequisitionLineForBudgetLine', '', false, false)]
local procedure DoSomethingKVSPSAOnAfterCreateRequisitionLineForBudgetLine(var RequisitionLine: Record "Requisition Line"; KVSPSAJobBudgetLine: Record "KVSPSA Job Budget Line"; var GlobalCreateJobPurchParameters: Record "KVSPSACreateJobPurchParameters")
begin
end;

Parameters:

  • RequisitionLine: RequisitionLine can be modified
  • KVSPSAJobBudgetLine:
  • GlobalCreateJobPurchParameters: Contains the parameters for creating the requisition line

KVSPSAOnBeforeInsertRequisitionLineCreateRequisitionLineForBudgetLine(Record Requisition Line, Record KVSPSA Job Budget Line, Record KVSPSACreateJobPurchParameters) :#

Summary: Allows transfer of own fields from budget line to requisition line. the requisition line will be inserted after this publisher.

[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeInsertRequisitionLineCreateRequisitionLineForBudgetLine(var RequisitionLine: Record "Requisition Line"; KVSPSAJobBudgetLine: Record "KVSPSA Job Budget Line"; var GlobalCreateJobPurchParameters: Record "KVSPSACreateJobPurchParameters"): 
[EventSubscriber(ObjectType::Report, Report::"KVSPSACreateRequistionFromPSP", 'KVSPSAOnBeforeInsertRequisitionLineCreateRequisitionLineForBudgetLine', '', false, false)]
local procedure DoSomethingKVSPSAOnBeforeInsertRequisitionLineCreateRequisitionLineForBudgetLine(var RequisitionLine: Record "Requisition Line"; KVSPSAJobBudgetLine: Record "KVSPSA Job Budget Line"; var GlobalCreateJobPurchParameters: Record "KVSPSACreateJobPurchParameters")
begin
end;

Parameters:

  • RequisitionLine: RequisitionLine can be modified
  • KVSPSAJobBudgetLine:
  • GlobalCreateJobPurchParameters: Contains the parameters for creating the requisition line

Protected Variables#

GlobalCreateJobPurchParameters#

Type: Record (KVSPSACreateJobPurchParameters)