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

Forum Post: RE: Cannot Insert Second Record into Temp Table

$
0
0

You can create a global varialbe for Sales Header and find the record using GET function like

SalesHeader.Get("Sales Line"."Document Type","Sales Line"."Document No.");

You need a Date field in Sales Line table to insert Document Date fied of Sales Header as your temp table is based on Sales Line table.

ex: Shipment Date

then code sample will be

TempSalesLine."Shipment Date" := SalesHeader."Document Date";


Viewing all articles
Browse latest Browse all 64865

Trending Articles



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