Hi All,
I am subscribing event in "Purch.-Post" [90 codeunit ie. "OnBeforePostVendorEntry". see the below code
[EventSubscriber(ObjectType::Codeunit, Codeunit::"Purch.-Post", 'OnBeforePostVendorEntry', '', true, true)]
local procedure PostWHTCal(var GenJnlLine: Record "Gen. Journal Line"; var PurchHeader: Record "Purchase Header"; var TotalPurchLine: Record "Purchase Line"; var TotalPurchLineLCY: Record "Purchase Line"; PreviewMode: Boolean; CommitIsSupressed: Boolean; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line")
begin
end;
The issue is that I want to access some standard "Purch.-Post" [90 codeunit global record variables like "TempPurchLineGlobal" and "PurchInvHeader" but an "OnBeforePostVendorEntry" event subscriber having only below Parameter
[Var GenJnlLine: Record "Gen. Journal Line"; var PurchHeader: Record "Purchase Header"; var TotalPurchLine: Record "Purchase Line"; var TotalPurchLineLCY: Record "Purchase Line"; PreviewMode: Boolean; CommitIsSupressed: Boolean; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"
so how can access the standard global record variable while the Subscribing event?
Please help me with that issue.
Thanks in Advance