Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Access CDHDR/CDPOS via BAPI/RFC to capture changed data

Former Member
0 Kudos

Hi everyone,

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.

1 REPLY 1

Former Member
0 Kudos

Hi,

I am not sure if there is an RFC function that does that already but you can use FM CHANGEDOCUMENT_READ and develop a custom RFC FM that calls that function module and then use that custom RFC to fetch chaneg documents.

Regards,

Himanshu Verma