예제 #1
0
        public List <ZV04HNProperty> getZV04HNList(string salesOrg, IDAEnum.Task idaTask)
        {
            var ZV04HN = new ZV04HN(sap, salesOrg, idaTask);

            ZV04HN.setParamsBeforeExecution();
            ZV04HN.extractReport();
            var listZV04HN = parser.getObjectListFromClipboard <ZV04HNProperty>();

            return(listZV04HN);
        }
예제 #2
0
        /// <summary>
        /// ZV04HN runs using the sales organisation data and with default document dates: (from: (3 months before today),  to: (today))
        /// execution is then saved in an excel file
        /// </summary>
        /// <param name="salesOrg"></param>
        public static void executeZV04HN(string salesOrg)
        {
            string folderPath = $@"\\Gbfrimpf000\common\SOAR\OTD\DOMESTIC SOAR\{salesOrg}\ZV04HN";
            string fileName   = DateAndTime.Now.ToFileNameFormat() + " ZV04HN.xlsx";
            var    zv04hn     = new ZV04HN(sapLib, salesOrg, IDAEnum.Task.SOAR);

            zv04hn.setParamsBeforeExecution();
            zv04hn.exportExcel(folderPath, fileName);
            using (var xlUtil = Create.xlUtil()) {
                xlUtil.closeWBAnyInstanceWaitTillClose(fileName);
            }
        }