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: 

How to get change documents (field changes) after BAPI_CUSTOMER_CHANGEFROMDATA1?

Former Member
0 Kudos
703

Hello,

I'm using FM BAPI_CUSTOMER_CHANGEFROMDATA1 to change some customer data, but no change documents (SCDO) records appeared. Everything is working properly when changes are made from the transaction FD02.

Is it possible to record document changes during BAPI updates? What customization could be missing?

Thanks in advance!

1 ACCEPTED SOLUTION

raymond_giuseppi
Active Contributor
0 Kudos
316

AFAIK this "BAPI" does not manage the change documents for customer fields, Read its documentation for restriction on its usage (1), or Note 390045 - Usage of BAPI_CUSTOMER_* of function group V02D (2)

(I'm not sure a call to DEBI_WRITE_DOCUMENT is a good idea)

Regards,

Raymond

(1) Only for ONLINE Store!!!

(2) you can only do this using ALE or Batch Input.

7 REPLIES 7

Former Member
0 Kudos
316

hi,

  First I would suggest you to use BAPI_DOCUMENT_GETDETAIL2 which reads out the current data for a document info record. This data can then be modified by you and handed over to BAPI_DOCUMENT_CHANGE2. After the CHANGE2 BAPI was executed please use BAPI_TRANSACTION_COMMIT to realise the changes also in the database tables.

0 Kudos
316

Hi,

I do not need to change DMS documents, I'm changing customers (business object KNA1), but I need to have change documents for my remote operations, but found nothing after call to BAPI. During dialog transaction all is working.

raymond_giuseppi
Active Contributor
0 Kudos
317

AFAIK this "BAPI" does not manage the change documents for customer fields, Read its documentation for restriction on its usage (1), or Note 390045 - Usage of BAPI_CUSTOMER_* of function group V02D (2)

(I'm not sure a call to DEBI_WRITE_DOCUMENT is a good idea)

Regards,

Raymond

(1) Only for ONLINE Store!!!

(2) you can only do this using ALE or Batch Input.

0 Kudos
316

Thank you for information, Raymond!

I do not want to use ALE. Is there any other BAPI to change customers master records (KNA1 table) with change documents?

0 Kudos
316

AFAIK there is no such BAPI released.

you could perform some search at scn on method UPDATE_CUSTOMER of class VMD_EI_API or perform some where-used on FM DEBI_WRITE_DOCUMENT.

Regards,

Raymond

Former Member
0 Kudos
316

You can try using transaction code MASS, object type KNA1.

Regards

RK

0 Kudos
316

Hi,

if the business partner is active in your system, you may use function BAPI_BUPA_CENTRAL_CHANGE which will replicate to KNA1 and write change documents.

Regards

Clemens