Problem Related to Apllies to Doc No. in Navision 4

hardikithardikit Member Posts: 20
Hi all,

I am trying to apply a payment to that order. Purchase Order where Applies to Doc. Type is Payment and when i try to Select Applies to doc no. it gives error that Form. runmodal is not allowed but for some other purchase orders it is not giving any error.

The error comes on the code of Purchase Header Table, Applies To Doc No (On Lookup) trigger.
It is written like

ApplyVendEntries.SetPurch(Rec,VendLedgEntry,PurchHeader.FIELDNO("Applies-to Doc. No."));
ApplyVendEntries.SETTABLEVIEW(VendLedgEntry);
ApplyVendEntries.SETRECORD(VendLedgEntry);
ApplyVendEntries.LOOKUPMODE(TRUE);
IF ApplyVendEntries.RUNMODAL = ACTION::LookupOK THEN BEGIN

Please help me to solve this problem

Regards
Regards
HardikNav
Sign In or Register to comment.