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.
Showing results for 
Search instead for 
Did you mean: 

Change Document generated by BAPI_CUSTOMERCONTRACT_CHANGE

Former Member
0 Kudos

We are developing an automated tool to create/change Customer contracts in SAP.

Specifically, for Change Requests, we ultimately use BAPI_CUSTOMERCONTRACT_CHANGE. All works fine.

I also need to create an Audit Report that will display all changes for a given contract (what was changed, who.and when the change occurred, etc.)

The report would be much simpler if the Change Document number was able to be associated with the specific change submitted by BAPI_CUSTOMERCONTRACT_CHANGE, but thus far I cannot find the Change Document Number associated with the change. I'm currently "guessing", based on the date/time the change is submitted, compared to the date/time on CDHDR. This is obviously not fool proof, and can be open to errors.

Does anyone have a way to determine the Change Document number associated with a specific call to BAPI_CUSTOMERCONTRACT_CHANGE?

Thanks in advance.