Hi,
Can anybody help me with the following problem:
After posting an order on 'Purchases & Payables' and using the function 'Create Whse. Receipt' (Create Warehouse Receipt) this happens:
- the warehouse receipt is created and the field 'Quantity to Receive' is filled automatically
- but when I try to register the receipt with 'Posting - Post Receipt F11' this error appears:
"Reference to the member SetWhseRcptHeader of the variable could not be solved".
Anyone has a clue what kind of error this is or what is missing in my configuration?
Thanks a lot.
Best Regards
Nuno Pedro
0
Comments
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
first of all thanks for the replies.
But it isn't enough to help me...
The thing is:
when debugging I can identify the source of the error, but I can´t see how to solve it (Development is not my specialty!). The transaction, when debugging, goes like this: form 5768, then form 5769, then codeunit 5761, then codeunit 5760 and then Error.
The code where the error occurs is (codeunit 5760 - Whse. -Post Receipt):
"
PostSourceDocument(WhseRcptLine)
WhseSetup.GET;
WITH WhseRcptLine DO BEGIN
WhseRcptHeader.GET("No.");
CASE "Source Type" OF
DATABASE::"Purchase Line":
BEGIN
IF "Source Document" = "Source Document"::"Enc. Compra" THEN
PurchHeader.Receive := TRUE
ELSE
PurchHeader.Ship := TRUE;
PurchHeader.Invoice := FALSE;
PurchPost.SetWhseRcptHeader(WhseRcptHeader);
CASE WhseSetup."Receipt Posting Policy" OF
WhseSetup."Receipt Posting Policy"::"Erros de registo não são processados":
BEGIN
PurchPost.RUN(PurchHeader);
CounterSourceDocOK := CounterSourceDocOK + 1;
END;
WhseSetup."Receipt Posting Policy"::"Pára e mostra o primeiro erro de registo":
BEGIN
PurchPost.RUN(PurchHeader);
CounterSourceDocOK := CounterSourceDocOK + 1;
END;
END;
CLEAR(PurchPost);
END;
DATABASE::"Sales Line": // Return Order
BEGIN
"
the line error is: "PurchPost.SetWhseRcptHeader(WhseRcptHeader)". And the error is: "Reference to the member SetWhseRcptHeader of the variable could not be solved".
I'm a bit lost in all this code and can't find the source of the error!
Thanks.
Best regards,
Nuno
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book
remove the color=red and /color
Your color will not display red but,...it will run.
Alastair