You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Salespersons default but error Attribute SalespersonId in SalesCreditEO is required

Summary:

Salespersons and Revenue Percent defaulted on Sales order after save but error show :Attribute SalespersonId in SalesCreditEO is required and Attribute Percent in SalesCreditEO is required.

OM Extension Code is:

import oracle.apps.scm.doo.common.extensions.ValidationException;
import oracle.apps.scm.doo.common.extensions.Message;
import java.math.BigDecimal;

// Retrieving ShipToPartySiteIdentifier info from the Sales order
Long shipToPartySiteId = header.getAttribute("ShipToPartySiteIdentifier");

// Create an instance of the public view object for the item
def acctUsePVO = context.getViewObject("oracle.apps.cdm.foundation.parties.publicView.customerAccounts.CustomerAccountSitePVO");

// Create the view criteria object
def su = acctUsePVO.createViewCriteria();
// Create the view criteria row

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!