Some Data Missing in JDBC-Sender Adapter? Urgent!
How are you?!
I have a urgent Problem with JDBC Adapter.
This is a Sender JDBC Channel, which reads data from 3 tables.
These 3 tables are joined with internal time stamp (TID).
After reading the protocal table would be updated.
These are select and update SQL-Statements:
FROM ISAP_WMTOCO_HEAD_EXPORT INNER JOIN ISAP_WMTOCO_POSITION_EXPORT ON ISAP_WMTOCO_HEAD_EXPORT.TANUM = ISAP_WMTOCO_POSITION_EXPORT.TANUM AND ISAP_WMTOCO_HEAD_EXPORT.TID = ISAP_WMTOCO_POSITION_EXPORT.TID INNER JOIN ISAP_PROTOCOL ON ISAP_WMTOCO_HEAD_EXPORT.TID = ISAP_PROTOCOL.TID
WHERE (ISAP_PROTOCOL.OBJTYP = 'WMTOCO') AND (ISAP_PROTOCOL.ISENDER = 'MF') AND (ISAP_PROTOCOL.ISTATE = 'RDY')
UPDATE ISAP_PROTOCOL SET ISTATE='FIN'
WHERE TID IN ( SELECT TID FROM ISAP_PROTOCOL WHERE ISENDER='MF' AND ISTATE='RDY' AND OBJTYP='WMTOCO'
But there is a Problem: during selecting there are some new Position data could be insert into Position table. whose ISTATE would be updated to FIN without being selected.
Could you help me out?
Thanks and Regards