Symptom
To deploy a solution to approve changes to supplier master data, your request is to get the Supplier BO > PaymentAgreementNode > PaymentBlockedIndicator field PSM write enabled.
- You are unable to update, delete, and submit the data for approval for all fields except for the field Payment Block Reason.
- You are trying to update the PaymentBlockReasonCode in supplier master data (payment data) with empty value using web service ManageSupplierIn. But it is not updating the PaymentBlockReasonCode with empty value.
- You are trying to do the same thing with ABSL script. In this case, you are getting payment block reason missing error.
- When attempting to update the PaymentBlockReasonCode with empty value, the PaymentBlockedIndicator is not assigned to false automatically.
Environment
SAP Business ByDesign
Cause
It was confirmed that the error message exists without PaymentReasonCode when attempting to clear the PaymentBlockingReasonCode from PDI. So, the request of releasing the PaymentBlockedIndicator would not appear to solve the issue.
Resolution
We suggest deleting the PaymentBlock node instance from PDI to solve the problem. A sample code of this would be:
var suppInternalID : BusinessPartnerInternalID;
suppInternalID = "(insert the suppinternalIDHere)"
var SupplierInst = Supplier.Retrieve(suppInternalID);
if (SupplierInst.IsSet())
{
var PaymentBlock = SupplierInst.PaymentAgreement.PaymentBlock;
foreach (var block in PaymentBlock)
{
block.Delete();
}
}
Keywords
Payment Block Reason Code, Payment Data, Supplier BO, Supplier Base, Supplier Master Data, webservice ManageSupplierIn, PSM Write Access, , KBA , AP-PAY , Payment Processing , AP-BP-BPT , Business Partner Template , Problem