Spend Management Blogs by Members
Check out community member blog posts about spend management and SAP Ariba, SAP Fieldglass, and SAP Concur solutions. Post or comment about your experiences.
cancel
Showing results for 
Search instead for 
Did you mean: 
Former Member
0 Kudos
313

How to change OnHold status of Agreement within the Master Agreement to Inprocess by default using script during creation in sourcing.

Kindly look into this script this works for master agreement where default status is set as "Inprogress" but for agreement it will not set to "Inprogress"

statusObjRef = doc.getStatusRef();
printLogMessage(MAMSG+"MA Status Ref - "+statusObjRef,"1");
statusHome = IBeanHomeLocator.lookup(session,statusObjRef);
status = statusHome.findUniqueByNameType("In Process", 10);
if(hasValue(status))
{
doc.setStatusRef(status.getObjectReference());
}

Top kudoed authors