on 11-12-2014 6:08 PM
MDG Gurus,
The requirement is to auto-replicate (on activation) for the below scenarios
but should NOT auto-replicate for the below scenario
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 ?
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.