Prepayment No. Series in Purchase Header

Dear Experts

i have got this problem in all my txn i.e sale ,purchase,prepayment,

You must specify Prepayment No. Series in Purchase Header Document Type=‘Order’,No.=

Please help me

Use the debugger to find out the reason of this error.

Are you using Pre-payment functionality of the product? Check if “Posted Prepayment No. Series” is defined in Sales & Marketing , Purchase Setup

Thanks Dhan sir

I am using Navision 2009 Sp1 and i also defined in both setup still problem is same

SalesHeader.COPY(SalesHeader2);
WITH SalesHeader DO BEGIN
IF NOT CONFIRM(Text001,FALSE,“Document Type”,“No.”) THEN
EXIT;

SalesPostPrepayments.CreditMemo(SalesHeader);

IF Print THEN
GetReport(SalesHeader,1);

COMMIT;
SalesHeader2 := SalesHeader;
END;

In addition to wat danraj said

just check whether the Prepayment No. Series field is filled in or not in

Purchase Order Form → Prepayment tab.

hii

Ravi thanks for reply it work ,can u told me plz how this situation occur .It is due to No series relationship or some other ,please specify

Regards

Hi Vikas

Actually it doesn’t happen. it automatically fills against the Prepayment invoice no.series in Purchase & Payables setup.

so its better to check the field is filled in or not before posting. so put a test field over ther.

hii Ravi

in my case here also i mannully filled and after that it post not gentrate automatically i want as default feature of Navision ,please guide me to do same

In the purchase header table ON INSERT Trigger just get the purchase setup table…

i.e PurchaseSetuptable.GET;

enough.

Purchases & Payables Setup.GET (Table 312.GET)

hii

Ravi thanks for reply bt sorry it not worked

Hi

It seems the setup parameter and number sequence problem