// // Changes by Gagan B. as per suggestions of Danish Sir to remove condition and pass inputData to writeFile method which is passed to transLoad as parameter.
// new E12GenericUtility().writeFile( uploadFilePath, fileName, inputdata );
" FROM TRANSETUP TRAN, BATCHLOAD BATCH LEFT OUTER JOIN OBJ_FILE_TEMPLATE TEMPL ON BATCH.XFRM_TEMPLATE = TEMPL.TEMPLATE_ID " +
" WHERE BATCH_ID = '"+batchId+ "' " +
" AND BATCH.LOAD_STAT IN ( 'N', 'R', 'E' ) " +
" AND TRAN.TRAN_WINDOW = BATCH.WIN_NAME " +
" AND BATCH.EDI_ADDR IS NOT NULL AND BATCH.EDI_ADDR IN ( '"+ appIdAddr +"fileSystem', '"+ ( appIdAddr + CommonConstants.API_FILE_DESTINATION ) +"' ) " +
" ORDER BY TRAN.LOAD_ORDER, BATCH.LOAD_ORDER, BATCH.ADD_DATE, BATCH.BATCH_ID, BATCH.TRAN_SL ";
// Changes by Gagan B. as per suggestions of Danish Sir to remove condition and pass inputData to writeFile method which is passed to transLoad as parameter.
new E12GenericUtility().writeFile( uploadFilePath, fileName, inputdata );