Hi expert ,
I have added a Boolean field(field1) in Navision shipment table . I have a table 'MyTable' (ShipmentNo,WNo,UDf1) .I want to insert value in this table where Navision Shipment No value will be set in ShipmentNo and shipment two udf value will be set in WNo ,UDF1 field when i post any sales invoice and Boolean field value is true. Where I can write code for this ? How to get shipmentheader no ? below is my code ? Please give me suggession if any wrong in my code .
IF field1 THEN
BEGIN
MyTable.INIT;
MyTable.ShipmentNo:= SalesShptHeader."No.";
MyTable.WNo:= SalesShptHeader."MyNo.";
MyTable.WNo:= 'F';
MyTable.INSERT;
END;
Thanks
Surajit