Options

Inventory Put-aways

NunoNuno Member Posts: 18
Hi,

I'm having a bit of trouble with my inventory put-aways.

The problem is:
- I create a purchase order under 'Purchases & Payables'. I release the order.

- I go to 'Inventory' and to inventory put-aways to post the received items.

- I fill in the Nº, Location Code, Source document, posting date and vendor shipment number fields.

- When selecting the Source Nº (the source document) the system gives the following error message:

"Overflow under type conversion of Code to Code." and shows the value representing the purchase order I've tried to get.

My location only has the 'require put-away' and 'require pick' check marks.

Does anyone have any ideia of what this is?

Thanks a lot.

Best Regards,
Nuno

Comments

  • Options
    ArhontisArhontis Member Posts: 667
    Hello Nuno,

    Try enabling the debugger to see where it stops.
    Then, if you can't figure out the problem, post the error, and the position it occured here...
  • Options
    NunoNuno Member Posts: 18
    Hi Arhontis,

    I've executed the debugger but I can't understand the reason of the error (I'm not a developer).

    Here's the code where the error occurs:

    UpdateWhseActivHeader(WhseRequest)
    WITH WhseRequest DO BEGIN
    IF WhseActivHeader."Source Document" = 0 THEN BEGIN
    WhseActivHeader."Source Document" := "Source Document";
    WhseActivHeader."Source Type" := "Source Type";
    WhseActivHeader."Source Subtype" := "Source Subtype";
    END ELSE
    WhseActivHeader.TESTFIELD("Source Document","Source Document");
    IF WhseActivHeader."Source No." = '' THEN BEGIN
    WhseActivHeader."Source No." := "Source No.";
    END ELSE


    It stops exactly in this line:

    IF WhseActivHeader."Source No." = '' THEN BEGIN


    and returns the message: Break on error.

    I've seen this same process work on another computer with a new installation (In cronus, with none of the configurations done here). What I don't know is what do I have defined that forbids me to execute this process.

    Hope this will help you understand the reason...

    Thanks.

    Best Regards,
    Nuno
  • Options
    ArhontisArhontis Member Posts: 667
    Listen,

    the variable WhseActivHeader is the table:
    5766.Warehouse Activity Header

    The field Source 7306,"Source No." is of type code 20.

    The original field No. of Purchase Header (thre order you use on purchases) is of type code 20 too.

    So, does your configuration changed the length of the no field of Purchase Header to something larger?

    You can see it by designing the table 38, Purchase Header and see at the No. field type if it is Code20 or not...
  • Options
    NunoNuno Member Posts: 18
    PROBLEM SOLVED!!!

    the problem was the source field 7306 of table 5766 that only allowed a length of 10 characters.

    that was a big load off my back!

    Thanks a lot.

    Best Regards,
    Nuno
Sign In or Register to comment.