hi all , i create i report to import to sales header and sales line (1 file inserted to these 2 tables)
my code is first insert into sales header off course
and then i inserted to sales line... using Sales Header."No." become Sales Line."Document No."
but sometimes if i want to add Sales Line, it got an error because we haven't input the item
but it still create the header....
if we import once again, it will create sales header and sales line, which is will be redundant
so... what should i do, to prevent it create sales header before it check that sales line is correct
thanks
0
Comments
Temporary table may be useful.
I think first insert in temporary table of Sales Header and line .If no error after all records passed then insert temporary into real tables.
Hemant
They can conquer who believe they can.
Regards,
Raveendran.BS
2) The commit is not in standard I assume. It seems like bad concept.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Nav, T-SQL.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
This will save me a lot of time the next time I have to search for a commit.
Object Manager
=D>
WOW that is brilliant.
It makes you think two things. First, D'oh why didn't I think of that. And Second, isn't it great that after all these years in Navision I can still learn something new.