how to stop posting of the bom journal when there is No inventory (or) Negative inventory

Dear Experts,

i m having the issue like posting of bom journal without inventory (or)negative inventory can possible in navision. but i need to prevent this posting of bom journal.

example as follows,

a)i have created the Item card for Finished goods and raw material and packing material.

b)i have assigned the bill of material for FG with this raw material and packing material.

c)There is no inventory for raw material and packing material at this moment.

d)now i have created the purchase order for Raw material and Packing material on 22/04/11.

e)so the raw material and packing material inventory has entered into the system now(on 22/04/11)

f)Now i have changed the working date as 21/04/11.(as per my knowledge there was no raw material and packing material in the inventory because i have created the purchase order on 22/04/11 only).

g)now i try to post the bom journal for that FG on 21/04/11.

I)Navision has allowed me to post the bom journal.

so this is my issue, here i dont want to post the bom journal without inventory or negative inventory.

so can anyone tell me the solution, how can i stop this posting bom journal without inventory or negative inventory.

Thanks,

N.Senthil kumar.

You need to try something like this

http://dynamicsuser.net/forums/t/40883.aspx

add ItemRec.SETRANGE(“Date Filter”,0D,ItemJnlLine.“Posting Date”); after

ItemRec.SETFILTER(“Location Filter”,’=%1’,ServiceLine.“Location Code”);

hi mohana,

Thanks for your reply.