‎2015 Oct 12 4:58 PM
Hi Group,
I configured change pointers to create customer master for every customer master data change(DEBMAS), now I need to capture created by /changed by user name by reading change pointers, I know there is a FM to read change pointers, but not sure on user exit/badi to call this FM so that I can read for each changed or create record, can any body suggest.
‎2015 Oct 12 5:12 PM
Hello Rajiv,
There is program - RBDMIDOC(of course - you have to feed your Message type- i think DEBMAS to the Program), & then you have to run this program(via background or foreground, based on your business requirement), this will internally - read respective FM and then read your changes and creates IDocs with the Changes recorded in Table - CDHDR/CDPOS & BDCP*.
Assuming, you have already done Change Pointers Configuration (BD50,BD52 ...) correctly.
I hope this helps.
Cheers,
PR
‎2015 Oct 12 8:22 PM
You don't need change pointers just to know who made a change. This can be found in the change documents. Standard transaction AUT10 shows this information.
What are you trying to achieve exactly?
‎2015 Oct 13 7:11 AM
Hi ,
Thank you for your response, I am trying to populate changed by/created by in IDOC field, can any body suggest where I can do this
‎2015 Oct 13 1:33 PM
‎2015 Oct 13 3:06 PM
Hi Group,
Can any body suggest how I can get created/Changed user name , is there any user exit or BADI,
‎2015 Oct 15 3:36 PM
Hello Rajiv,
I really don't know, why(Business Purpose) you want to use Change Pointers & IDoc to check, who had created/Changed the Customer, when you have other easy ways to check that .. report - RFDABL00.
However, at IDoc Level in Basic Type: DEBMAS07, I can't see any field that can give you information about Created By/Changed By Information Via an Outbound IDoc.
If you still want to use IDoc to find Customer Change/Create By Information, you need to extend this Basic Type: DEBMAS07 --> Z*** and add the Fields you want to see in your IDoc.
In this case, Logic should be added in the FM, which is triggering this IDoc, you can check that in Table: TBDME, other enhance the existing FM or copy and create custom FM.
I hope this helps.
Thanks,
PR
‎2015 Oct 15 3:59 PM
Change pointers are not triggered immediately and multiple changes can be combined into a single change pointer and, consequently, one IDoc. The 'changed by' user ID is simply irrelevant to this process and cannot be determined accurately. Several people could make multiple changes and it would generate just one IDoc. So what would you do about this?
Give this information to the person requesting this change and ask them what were they going to do with this information (which cannot be 100% accurate) and what decision will this drive. I bet they didn't even think about it. In all honesty, I can't imagine any business scenario where this information would have any value, even if it was available. If there is an issue they can always check in the source SAP system.