Quantcast
Channel: Microsoft Dynamics NAV
Viewing all articles
Browse latest Browse all 64865

Forum Post: How to insert in my NAV table column from Shipment columns value when I post Invoice ?

$
0
0

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

         

 


Viewing all articles
Browse latest Browse all 64865

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>