Hi,
One important thing to note is that the EDIDC table will fill up very fast as every IDoc loaded by anyone or any process in SAP gets recorded on this table. It is better to hence use options like MEssage Variants on your partner profile so that you can filter on the relevant message variant when looking for your IDocs. Even in case of Sales orders, there will be IDocs for Sales Orders from different channels. So it is better to define a message variant in the partner profile so that it can be used when generating IDocs which will prevent acidental processing of other IDocs that aren't creted by you.
The Column in EDIDC table that holds the message variant value is MESCOD. after defining it in the partner profile, make sure to mention this in your mapping for EDIDC.MESCOD column.
kind regards
Raghu