cancel
Showing results for 
Search instead for 
Did you mean: 

Executing a distribution rule programmatically

Former Member
0 Kudos

We are developing an application on DOE to assign specific CDS records to individual devices by updating a non backend field within the DO header node with device name. A rule will then pick up the device name and send the data to its outbound queue.

We have DO_SYNC_EXTRACT set up for our MBOs.

The update of the field in CDS works fine from our custom ABAP report (runs on DOE box). The problem is that after we update the node field with target device name, the rule-based extract is not getting posted to the outbound queue of the device.

Is there any kind of DOE APIs (function module, report) that will re-evaluate CDS data based on the assigned distribution rule? Our scenario works if we de-activate and re-activate the rule. However, we would like to find a way of "running" the rule programmatically, so that we can implement that into our application.

Regards,

Roman

Accepted Solutions (0)

Answers (1)

Answers (1)

sivasatyaprasad_yerra
Active Contributor
0 Kudos

Is this update of CDS not done using SDOE_LOAD transaction? If yes, Rule will be calculated automatically.

Is it custom report which does this?

Regards,

Siva.

Former Member
0 Kudos

Hi Siva,

Thanks for your response. Actually, the correct way is not to "run" the rule, but to perform the CDS record update via generated service class for DO. That way, the updated data instance is posted to DOE flow and rule evaluation is performed automatically.

Regards,

Roman