Let's Reconnect, thank you for making 2022 our best year yet.

Look Back
Need help on OM extension — Cloud Customer Connect
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

Need help on OM extension

Received Response
edited Apr 12, 2021 9:46AM in Order Management 1 comment



 We are trying to copy the Header Level EFF information from the original Sales Order to the Return Order using the below extension but are facing an error. Can anyone please guide on what is wrong in the below code :

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();

Howdy, Stranger!

Log In

To view full details, sign in.


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