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

Apply hold on EFF value but hold not apply multiple line

edited Feb 18, 2025 12:57PM in Order Management 1 comment

Summary:

We are creating sales order with 2 lines and EFF value Test vale set is "Yes" in both Line but after save hold apply single line instead of multiple line.

Version (include the version you are using, if applicable):

Oracle Fusion Cloud Applications25A (11.13.25.01.0)

Code Snippet (add any code snippets that support your topic, if applicable):

Code write : on Save

import oracle.apps.scm.doo.common.extensions.ValidationException;
import oracle.apps.scm.doo.common.extensions.Message;

def lines = header.getAttribute("Lines");
while (lines.hasNext()) {
def line = lines.next();
def context = line.getOrCreateContextRow("TestEFF");
def effVal = context.getAttribute("testvalue");

if (effVal.equals("Yes")) {

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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