‎2013 May 14 1:20 PM
Hi All
Please could anyone of you who knows help me, below is my problem:
I am using a BAPI BAPI_MATERIAL_SAVEDATA to make changes to Material Master, now when I run a report to see what changes were made on the Material Master, SAP has stored the changes transaction in table CDHDR-TCODE as 'MM01(BAPI)' or 'MM02(BAPI)'.
I have tried to debug this BAPI to see where this changes transaction in the history table CDHDR is determined and I could not find it. Please see below:
Please anyone who has done or seen this please share, points will be awarded and your help will be highly appreciated.
Thanks
Ramo
‎2013 May 14 3:27 PM
‎2013 May 14 3:02 PM
Moderator Message: Please use proper subject line in future.
‎2013 May 14 3:14 PM
Hi Ramo,
You need to use function modules in order to retrieve the data and CHANGEDOCUMENT_READ_HEADERS should get the data that you need.
(Other useful function modules include:
CHANGEDOCUMENT_DISPLAY
CHANGEDOCUMENT_READ
CHANGEDOCUMENT_READ_HEADERS)
I hope that helps.
‎2013 May 14 3:27 PM
‎2013 May 15 7:49 AM
Hi Raymond
I did all you suggested but It does not seems to be on any of those MATERIAL_WRITE_DOCUMENT function calls.
Thanks though.
Any other ideas where SAP could be writing this info into the change documents tables?
‎2013 May 15 9:36 AM
Those documents are created (in update task !) in this FM (*), look at it once again.
What do you exactly want to know, is it Note 1050255 - Transaction code in change documents not actionable or Note 1682898 - Change Document: Detailed T-Code for BAPI_MATERIAL_SAVEDATA ?
Regards,
Raymond
(*) Look at transaction SCDO for change objects and there position at MATERIAL and navigate to FM.
(added OSS notes links)
‎2013 May 15 2:06 PM
Hi Raymond
The MATERIAL_WRITE_DOCUMENT wher-used-list did the trick thanks a lot...
Much appreciated.
‎2013 May 15 9:50 AM
Run the bapi with ST05 trace switched on. You should be able to drill down from the report on the updates to CDHDR and CDPOS to find the code.