As a Developer you should know the concept and idea behind the change pointers. I know when i say change pointers 40% readers mind will trigger two words:
BDCPS (or BDCP2).
Ya you are right all the change pointers stored inside these tables. The main hero behind this is SMD(Shared Master Data)
The SMD tool is connected to the change document interface. If the master data changes are to be distributed, the application writes a change document. The contents of this are passed to the SMD tool. The tool writes change pointers, reads the application data and creates the master IDoc.
In simple word if you change anything in SAP, like material master, vendor info… etc.. it will create an entry in change pointers table (BDCP,BDCPS).After that We mostly run RBDMIDOC to pick up these change pointers and send the IDOC to other systems so that the changes can be reflected properly.
Sometimes you might come across reuirement wherein you need to manually make entries into these tables which can be achieved by standard function module For this check out the Function group BD01 where you will find Function modules like CHANGE_POINTERS_READ, CHANGE_POINTERS_DELETE, CHANGE_POINTERS_CREATE etc…
Hye…. Wait i am getting a call from my Girl Friend…
My GF : “Hye..Sweetie Pie”
(She only talks such a sweet when she needs a help).
Me: Ya Tell me Dear.
My GF : i need to de-activate the creation of change pointers for message type MATMAS what should i do?
Me: To activate or deactivate a change pointer you can use transaction BD50:
You can also activate or deactivate the change pointers at single go using transaction code : BD61 (Don’t play with this Transaction code else your managers will play with you )
Huuhhhhhh… this was a simple question she asked else i would have stucked for the whole day…
Ohhhh man…she is calling again…
My GF: i want to kick your ass…
Me : Oh please… What did i do ??
My GF : You told me you can use transaction code BD50 to restrict the change pointer creation.
ME : Ya i said you can de-activate the change pointers for the perticular message type using it.
My GF: Let me Tell you clearly what is the requirement :
“I want that, for the MATMAS massage type it should not create a change pointers when material number is starting with “NON”.
Me : Darling you did not inform me this.
My GF : I did.now shut your mouth and give me the solution for this…
(Don’t smile i know you also have the same problem.And that is why we called such creature as sweet poison )
Luckily we have a Business addins called BDCP_BEFORE_WRITE .
This Badi will be called just before the creation of the change pointers. So if someone wants to restrict the change pointer creation for a particular condition he/she can create a implementation of this Badi with the required message type as a filter condition e.g. MATMAS.
So now what one need to do is create a Badi implementation using MATMAS as a filter criteria.
Put a condition to check whether material is starting with the “NON” or not.if it is non just delete that entry from the change_pointers internal table.
You can use change_document_header to find out the material number.and you can put the filter as per your requirement.
So now the Question is how the IDOC is generated using change pointers ???
For this We use Report program RBDMIDOC
This will pick up the Change pointers from the BDCP(2) tables and mark it as processed if IDOCs are created for the same.
Unfortunately this is the End of life for our change pointers.Mostly basis people deletes all the processed change pointers as it is of no use from the BDCP ,BDCP2/BDCPs tables.
Check the Below Image to see the Birdseye view of whole process: