Warehouse Management - Receipts

NunoNuno 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

Comments

  • aryaputhraaryaputhra Member Posts: 12
    This is purely a development issue. Check for the modifications especially in the posting codeunit for purchase receipts.
  • RobertMoRobertMo Member Posts: 484
    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           
    ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
  • NunoNuno Member Posts: 18
    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,
    Nuno
  • Alex_ChowAlex_Chow Member Posts: 5,063
  • csimoneauxcsimoneaux Member Posts: 168
    PurchPost.SetWhseRcptHeader(WhseRcptHeader);

    remove the color=red and /color
    Your color will not display red but,...it will run.
  • afarrafarr Member Posts: 287
    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.

    Alastair
    Alastair Farrugia
Sign In or Register to comment.