Hi, there is a problem with finalizing POs that we see with certain POs. After some debugging, it looks like it is tied to SourceDocument framework - to be specific, an absence of the matching record from PurchTable, in SourceDocumentHeaderTable. There is very little, if any, documentation about source documentation framework online. Can anyone help with some details in terms how does it work.. how the records are inserted in Header and Line table...
So the exact error, when i go to finalize the invoiced PO, is -
Function SourceDocumentStateModel.getValidTargetSourceDocAccountingStatus has been incorrectly called.
thats because accounting status of NONE is not allowed, and thats exactly whats happening when there is no matching record in SourceDocumentHeaderTable...