Java Sample – GeneratePrgrmDocReport.java for Profitability and Cost Management

Prerequisites: json.jar

Prerequisites: See Profitability and Cost Management Common Helper Functions for Java

public void generateProgramDocReportJob() throws Exception {
        
        JSONObject json = new JSONObject();
        json.put("fileName", "2016JanActual1.pdf");
        json.put("fileType", "PDF");
        json.put("useAlias", false);
        json.put("stringDelimter", "_");
        
        String povGroupMember = "2016_January_Actual";
        
        String urlString = serverUrl + "/epm/rest/"+ apiVersion + "/applications/" + applicationName + "/povs/" + povGroupMember.trim().replaceAll(" ", "%20") + "/jobs/programDocReportJob";
        
        executeJob(urlString, "POST", json.toString());
            
    }