Hi
I have actually written the script already, but the problem is the script is executed whenever a change is made to the document. I want it to execute only when the status is changed to "Firm".
Below is my script:
import java.util.*;
import com.sap.eso.api.rfx.*;
import com.sap.odp.api.common.platform.IapiDbHandlelfc;
import com.sap.odp.api.doccommon.masterdata.*;
import com.sap.odp.api.comp.messaging.*;
import com.sap.odp.common.types.Attachment;
ApplicationException ae = new ApplicationException(session);
attach = doc.getAttachments();
if(attach.size() == 0)
{
throw doc.createApplicationException("session","Please Attach File");
}