2012 Jun 07 9:54 AM
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!
2012 Jun 07 11:06 AM
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.
2012 Jun 07 9:57 AM
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.
2012 Jun 07 10:08 AM
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.
2012 Jun 07 11:06 AM
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.
2012 Jun 07 11:44 AM
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?
2012 Jun 07 12:05 PM
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
2012 Jun 07 12:14 PM
You can try using transaction code MASS, object type KNA1.
Regards
RK
2012 Jun 07 1:40 PM
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