Question & Answer
Question
Consider the below scenario-
1. The feature Dynamic charge transaction is enabled- https://www.ibm.com/support/knowledgecenter/SS6PEW_10.0.0/productconcepts/c_DynamicChargeRequestTransactionDistributiona.html
2. An Order is created with two lines (Store ship).
Line1 is for Store # 36
Line2 is for Store # 50
Line1 is for Store # 36
Line2 is for Store # 50
3. Store User logs in from Store 50 and completes the shipment pick for line 2 . The store user triggers a call to processOrderPayments from the front end, A shipment invoice is further created as part of the same transaction
4. Store User logs in from Store 36 and processes the shipment pick for line 1. While processing payment using processOrderPayments, an error is thrown -Data Security Violation.
Why is this so?
Cause
This error is thrown due to the invoice is created by Store User for Store 50.
When the Store User from Store 36 runs processOrderPayments , this user would not have necessray permissions to update the invoice created for Store 50
Answer
Payment related APIs are not user specific. The suggested solution is to defer the invoice creation till both the Store users have finished processing the shipments.
[{"Line of Business":{"code":"LOB59","label":"Sustainability Software"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SS6PEW","label":"Sterling Order Management"},"ARM Category":[{"code":"a8m0z000000cy02AAA","label":"Payments"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Version(s)"}]
Was this topic helpful?
Document Information
Modified date:
10 December 2020
UID
ibm16379930