On a Form I need to look at a Warehouse shipment line and pull the Item No. to compare whether that Item No. has an Item Packing Rule or not. So far I want to use IF WhseShptLine."Item No." = ItemPackingRule."Item No." THEN BEGIN... but I am not getting an Item No. Any suggestions on how to get the Item No.?
0
Comments
Item.Get(WhseShptLine."Item No."); //I hope you have value in WhseShptLine."Item No."
then you have to check like
IF Item."Item Packing Rule" <> '' THEN
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
Do you want to check whether Item Packing Rule field on Item table has a value or not?
Or please provide more details about the requirement
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
ItemPackingRule.SETRANGE("Item No.",WhseShptLine."Item No.");
IF ItemPackingRule.FINDFIRST THEN
...
you have to repeat the WhseShptLine to check for all records.
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav