Learn about Redwood and be one of the first to join the conversation

Visit Redwood Community
Need help to make Return Reason field as mandatory field through 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 to make Return Reason field as mandatory field through OM extension

Received Response
12
Views
3
Comments

Need help to make Return Reason field as mandatory field through OM extension

have used the below code, but it did not work


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


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


   def lines = header.getAttribute("Lines")

  


    while(lines.hasNext() ) 


    {


    def line = lines.next()

    

  

    if (line.getAttribute("ReturnReasonCode") == null &&

      (LineCategory == "RETURN")

  )

     


 {

  

  def token = [LINE_NUM: line.getAttribute("DisplayLineNumber")];



String msgtext = ("Return Reason is Mandatory")


Message msg = new Message(Message.MessageType.ERROR, msgtext);


throw new ValidationException(msg);


 }


    }


Regards

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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