I am writing some dex code to validate whether or not an SOP Number for a specific Document ID that I want to create has already been used or not. In trying to determine the best way to do this I was looking at using the RM_Keys_MSTR (RM00401) table. While looking at the data in this table I found the Document Status (DCSTATUS) field. It would appear that a value of 3 would mean the sop document has been posted and can be found in the SOP_HDR_HIST (SOP30200) table. Likewise a value of 2 would mean the sop document has not been posted and can be found in the SOP_HDR_WORK (SOP10100) table. What I am finding however is that 295 of the over 15000 records in the RM_Keys_MSTR table for the records I am looking at are in the SOP_HDR_HIST table but still have a Document Status of 2. Are there any cases where a posted SOP document would still have a Document Status of 2 in the RM_Keys_MSTR table?
Thanks,
Lonnie
*This post is locked for comments