Application Development and Automation 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: 
Read only

reading change pointers

former_member188791
Participant
0 Likes
3,865

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.

7 REPLIES 7
Read only

Former Member
0 Likes
2,365

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

Read only

Jelena_Perfiljeva
Active Contributor
0 Likes
2,365

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?

Read only

0 Likes
2,365

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

Read only

0 Likes
2,365

Hi Group,

Can any body suggest on my query

Read only

0 Likes
2,365

Hi Group,

Can any body suggest how I can get created/Changed user name , is there any user exit or BADI,

Read only

0 Likes
2,365

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

Read only

Jelena_Perfiljeva
Active Contributor
0 Likes
2,365

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.