Warehouse Management - Receipts
Nuno
Member Posts: 18
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
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
-
This is purely a development issue. Check for the modifications especially in the posting codeunit for purchase receipts.0
-
Looks like the object behind SetWhseRcptHeader is not compiled ? The one who has permissions to Object Designer should know how to find uncompiled objects and how to compile it.®obi
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯0 -
Hi,
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,
Nuno0 -
Make sure you have the latest improvements from Microsoft.Confessions of a Dynamics NAV Consultant = my blog
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book0 -
PurchPost.SetWhseRcptHeader(WhseRcptHeader);
remove the color=red and /color
Your color will not display red but,...it will run.0 -
The line that's giving you the error does not appear in my CU 5760 (ver. NAVW13.60). If you tell us what version of Navision (and what version of CU 5760) you have, those people who have that version might be able to help you.
AlastairAlastair Farrugia0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 611 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 253 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions