We'd love to hear from you! Provide  feedback  to earn a badge today. Take our quick survey
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

OM extension Error

Received Response
16
Views
3
Comments
edited Mar 8, 2021 11:48AM in Order Management 3 comments

Content

Hi All,

 We are getting the below error when running the OM extension. We are trying to copy Order Notes EFF value from Original Order to the Return Order. Can you please advice.

Groovy Script :

import oracle.apps.scm.doo.common.extensions.ValidationException;
import oracle.apps.scm.doo.common.extensions.Message;
import java.util.logging.Level;

Long lineId = 0;
Long headerId = 0;
def lines = header.getAttribute("Lines");

while( lines.hasNext() )
      {
        def line = lines.next();
        String categoryCode = line.getAttribute("TransactionCategoryCode");
        if ("RETURN" != categoryCode) continue;
        def docRefs = line.getAttribute("DocumentReferences");
        lineId = 0;
        while(docRefs.hasNext() & lineId == 0)
              {
                def docRef = docRefs.next();
                String docRefType = docRef.getAttribute("DocumentReferenceType");

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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