Error from Codeunit 22

navuser1navuser1 Member Posts: 1,329
When I post a Item Reclass. Journal Entry , a error msg is occured-
Item XXX Not in Inventory.Where the Item has sufficient inventory in the from Location.

CAL Code details given below.

Codeunit 22

InsertItemLedgEntry() //Function

WITH ItemJnlLine DO BEGIN
IF ItemLedgEntry.Open THEN BEGIN
IF (((ItemLedgEntry."Entry Type" IN
[ItemLedgEntry."Entry Type"::"Negative Adjmt.",
ItemLedgEntry."Entry Type"::Consumption]) AND
("Source Type" = "Source Type"::Item)) OR
(ItemLedgEntry."Entry Type" = ItemLedgEntry."Entry Type"::Transfer)) AND
(ItemLedgEntry.Quantity < 0)
THEN
ERROR(Text005,ItemLedgEntry."Item No.");


(ItemLedgEntry.Quantity is less than Zero, but why sir)
Now or Never

Comments

  • pri_1_ranjanpri_1_ranjan Member Posts: 67
    Probably you do not have enough qty to reclassify/transfer. Could u check that ?
    /PDR
  • nromainnromain Member Posts: 57
    Have you chec the reserve qty on your item ledger entries? this could be the problem
  • navuser1navuser1 Member Posts: 1,329
    Thank you All.
    When I have commented the error(//ERROR(Text005,ItemLedgEntry."Item No.");

    Cost Amount(Actual) is flowing to the To Location but the quantity does not go to the "To Location".

    Is it possible????
    Now or Never
Sign In or Register to comment.