Hi dear forum mates..
Hope everyone doing good inspite of the world being in recession period as we are all into dynamics group.
Have one query from me. Zst wanted to know the best way to find all the list of tables which get inserted(filled in) when a complete purchase process or complete sales process is done right from creation of the order till invoice posting. All the tables if any struture related also needed to be known.
I used to do this using Code coverage but I think this is not 100% correct as this covers only the tables where the system reads the code but not the tables in which data gets inserted.
Hope I could get some better solution for this :-k .
Thanks and regards in advance
Comments
Tip : Use the advanced Client monitor from the Navision Tools CD, it makes everything much easier to read.
If you only want to know into which tables records have been inserted you could write a little piece of code, which saves the number of records in each table before the transaction (you can extract that information from the system table 2000000028 "Table Information" and save it to some new table). Then you have to run your transaction. At last you need another piece of code which checks, in which table the number of records has changed...
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
Can you provide me some link where I can download the Right Manager Tool. I have tried finding it but I didnot find it
Would be very thankful to you.
Falling down is not a defeat..defeat is when you refuse to get up.
what I wanted to say is: The method you may chose depends on the question, and I understood the question as: "How many records have been added?" and not as "How many times has the INSERT function been called?".
But there is yet another difficulty, which makes both methods more or less invalid in a (very) special case, when the transaction inserts and deletes record(s) of the same table and it is not clear whether one or more of the deleted records have been inserted before in the current transaction or not, but in that case the question has to be put more precisely...
Last but not least there is another aspect, which perhaps makes Client monitor the right tool. Consider the posting of a sales order, e.g. - There is at least one COMMIT in the posting routine (after the Posting No." has been determined) - With the method of comparing the number of records per table before and after the posting routine, it cannot be determined in which transaction the record(s) have been inserted or added. So if the question is to be answered for a single transaction, in general only client monitor (not Code Coverage) can give you the answer (without additional code).
i didn't want to say that my method is accurate.
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog