Skip to Content
0
Jun 07, 2018 at 10:11 AM

Distribution Rules Via Java API - Cannot update a locked loading factor

48 Views

Good morning,

For my work I need to add/update/delete/modify distribution rules from an external java application, in order to do so I use a Java API (com.sap.smb.sbo.api).

My big problem (it seriously has been weeks around that very specific problem) is that I cannot do such operation. For the life of me it is not working, and I hit a wall, this community is my last resort.

What I do is look for a distribution rule by its code, and I find it.

Then I want to delete this rule so I do:

void com.sap.smb.sbo.api.DistributionRulesService.deleteDistributionRule(IDistributionRuleParams arg0)

But this operation ALWAYS returns me:

com.sap.smb.sbo.wrapper.com.ComFailException: Invoke of: DeleteDistributionRule Source: Description: Cannot update a locked loading factor

ALWAYS.

I tried another rule, I tried an active rule, I tried a non existing rule, I tried several SAP DB, I tried calling it from a different program, I tried LITERALLY everything and NOTHING works

I really hope you can see my HUGE level of frustration and let's be clear this is a cry for help, I am literally at the edge right now due to this so please, please help me find a solution... I am desperate.