Access CDHDR/CDPOS via BAPI/RFC to capture changed data
We´ve setup an interface between SAP R/3 and external Oracle CRM interface, using JCo . It works fine with BAPI_CUSTOMER_CREATEFROMDATA1 to create a customer within SAP R/3. Even the transfer back from SAP R/3 to the CRM works fine except that we only want to synchronize the changed records within customer master (KNA1) that changed since the last synchronization. If someone changes customer master data with (XD02 or VD02 or FD02) we only want to trigger the changed data within R/3 to other system through Web Services..We have been told to use CDHDR (change document Header) and CDPOS (change document position) .
Is there a RFC (like RFC_readtable) or BAPI from which we can access and query the CDHDR or CDPOS to get only the changed customer master data within R/3.
Can someone help or give a hint how to solve this problem or even show us a better or easier way or method. Thanks in advance for your help and guidance.