I don't know a documentation about this.
If you want to know all the table you need for this operation. Use code coverage and made a transaction in navision. This tools match all table, form, codeunit etc used for the transaction.
I hope it's a good answer.
He press enter to leave the primary key field so Navision will fill the Order No.
PurchOrder."Document Type" := PurchOrder."Document Type"::Order;
PurchOrder."No." := ''; // leave it blank so Navision will fill this field
PurchOrder.INSERT(TRUE);
Comments
Don't think it worls like this
You will have to speak to somebody who knows Navision.
If it was hard to write, it should be hard to understand."
If you want to know all the table you need for this operation. Use code coverage and made a transaction in navision. This tools match all table, form, codeunit etc used for the transaction.
I hope it's a good answer.
What does a user do if he creates an order?
- He press F3
- He press enter to leave the primary key field so Navision will fill the Order No.
- He enters the Vendor No.
- He fills some other fields in the Header
- He goes to the Purchase Lines (Here you must initialise the Primary Key fields by yourself)
- He enters the type
- He enters the Item No.
- He enters the quantity
- He enters some other fields
- He leave the line and inserts the record
As you can see, I simulate the users input with "INIT", "VALIDATE" and "INSERT(TRUE)"Microsoft Dynamics NAV Developer since 1997
MSDynamics.de - German Microsoft Dynamics Community - member of [clip]