Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2740

Re: Check if there is an attachment on RFX Response

$
0
0

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

}


Viewing all articles
Browse latest Browse all 2740

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>