cancel
Showing results for 
Search instead for 
Did you mean: 

Controlling Data Replication by CR Type

Former Member
0 Kudos

MDG Gurus,

The  requirement is to auto-replicate (on activation) for the below scenarios

  • Change Vendor
  • Block/Unblock Vendor
  • Flag/Un-flag vendor for Deletion

but should NOT auto-replicate for the below scenario

  • Create Vendor


The auto-replication works fine for the first 3 scenarios mentioned above (BRF+ config has replication steps). The replication steps are not part of the Create Vendor (SUPPl1P1) but the auto replication is still triggered . The system behavior is surprising as it gives a feeling that the replication steps in the BRF+ have no role to play.


One of the options to prevent this is to change the Method Activate_2 of the object type BUS2250. This method has the parameter 'no_distribute'. But this would come across as a change to SAP software which may have future support ability issues.

Are there any other options ?


Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

First of all, the first three scenarios are working NOT because of BRF+ but because the activation step actually distributes data. Try removing the distribution step and you will see that the record is still being distributed. Now, to be able to control the distribution via BRF+ only, you can create a sub-object in transaction SWO1 for object BUS2250. In this sub-object, redefine method ACTIVATE_2 to always set the value of NO_DISTRIBUTE to 'X'. This means that no distribution will be done automatically upon activation. Keep in mind that redefining methods in SWO1 means that you need to add the same logic in the original method in addition to making the changes you need. In case of method ACTIVATE_2, you need to remove this statement:


swc_get_element 'NO_DISTRIBUTE' no_distribute.


Instead, add this statement:


no_distribute = 'X'.


Everything else should be pretty much the same. You will need to define a new variable that replaces the object-private-mo_service variable because it is not going to visible in the BOR sub-object. See how object-private-mo_service is defined in the original program and just define the new variable in the sub-object.

Former Member
0 Kudos

Ah !! .. Ok ..So whats the point of having the replication steps in  BRF+ if replication is triggered on activation.

Former Member
0 Kudos

Let me know when you figure out why.

Answers (0)