Unable to skip Credit Check
Summary:
Unable to skip sales order credit check throuhg Order Management extension validation, when header order extensible flexfield is populated.
Content (please ensure you mask any confidential information):
Version (include the version you are using, if applicable):
Oracle Fusion Cloud Applications 23C
Code Snippet (add any code snippets that support your topic, if applicable):
import oracle.apps.scm.doo.common.extensions.ValidationException;
import oracle.apps.scm.doo.common.extensions.Message;
BigDecimal refHeaderId = header.getAttribute("ReferenceHeaderId");
if(refHeaderId != null)
{
def headerEFF = header.getContextRow("E-Commerce");
if(headerEFF != null)
{
def segmentCode = headerEFF.getAttribute("Marketplace");
if(segmentCode != null)
{
//Skip the credit check if the e-commerce flex data exists