...
Code Block |
---|
SELECT CONVERT(varchar(4), a.univ_fiscal_yr) AS UNIV_FISCAL_YR, a.fin_coa_cd, a.account_nbr, a.fin_object_cd, b.fin_obj_cd_nm, a.fin_sub_obj_cd, a.fin_sub_obj_cd_nm FROM CA_SUB_OBJECT_CD_T a, LEFT OUTTER JOIN CA_OBJECT_CODE_T b ON WHERE a.fin_object_cd = b.fin_object_cd AND WHERE a.FIN_SUBOBJ_ACTV_CD <> 'N' AND ( (a.univ_fiscal_yr = '2012' AND a.fin_coa_cd='IR' AND a.account_nbr='1000211' AND a.fin_object_cd = '4400' AND a.fin_sub_obj_cd = 'BRM1') OR (a.univ_fiscal_yr = '2012' AND a.fin_coa_cd='IR' AND a.account_nbr='1000211' AND a.fin_object_cd = '4400' AND a.fin_sub_obj_cd = 'ITM1') OR (a.univ_fiscal_yr = '2012' AND a.fin_coa_cd='IR' AND a.account_nbr='1000211' AND a.fin_object_cd = '0000' AND a.fin_sub_obj_cd = 'XXXX') ); |
...
Code Block |
---|
DWHServerService dss = new DWHServerService();
DWHServer ds = dss.getDWHServerPortCustom();
System.out.println("\nWSClient-getValidKFSSubObjects()");
StringArray sa230 = new StringArray();
sa230.getItem().add("2012");
sa230.getItem().add("IR");
sa230.getItem().add("1000211");
sa230.getItem().add("4400");
sa230.getItem().add("BRM1");
StringArray sa231 = new StringArray();
sa231.getItem().add("2012");
sa231.getItem().add("IR");
sa231.getItem().add("1000211");
sa231.getItem().add("4400");
sa231.getItem().add("ITM1");
StringArray sa232 = new StringArray();
sa232.getItem().add("2012");
sa232.getItem().add("IR");
sa232.getItem().add("1000211");
sa232.getItem().add("0000");
sa232.getItem().add("XXXX");
List<SubObjectDetails> resultList23 = ds.getValidKFSSubObjects(Arrays.asList(sa230, sa231, sa232));
if (resultList23 != null) {
for (Iterator i = resultList23.iterator(); i.hasNext();) {
SubObjectDetails element = (SubObjectDetails)i.next();
System.out.println("\t" + element.getKfsFiscalYear() + "/" + element.getKfsChartCode() + "/" + element.getKfsAcctNumber() + "/" + element.getKfsObjCode() + "/" + element.getKfsSubObjCode() + " : " + element.getKfsSubObjCodeName());
}
} else {
System.out.println("something bad happened...please check your query");
} |
...
getAllKFSSubObjects()
Input Specifications
DB Query
Code Block |
---|
SELECT
CONVERT(varchar(4), a.univ_fiscal_yr) AS UNIV_FISCAL_YR,
a.fin_coa_cd,
a.account_nbr,
a.fin_object_cd,
b.fin_obj_cd_nm,
a.fin_sub_obj_cd,
a.fin_sub_obj_cd_nm
FROM CA_SUB_OBJECT_CD_T a LEFT OUTTER JOIN CA_OBJECT_CODE_T b ON a.fin_object_cd = b.fin_object_cd
WHERE a.FIN_SUBOBJ_ACTV_CD <> 'N'; |
Result Schema: Same as getValidKfsObjects
WS Example
Request
Code Block |
---|
|
Response
Code Block |
---|
|
Java Client Example
Code Block |
---|
DWHServerService dss = new DWHServerService();
DWHServer ds = dss.getDWHServerPortCustom();
System.out.println("\nWSClient-getAllKFSSubObjects()");
List<SubObjectDetails> resultList24 = ds.getAllKFSSubObjects();
if (resultList24 != null) {
for (Iterator i = resultList24.iterator(); i.hasNext();) {
SubObjectDetails element = (SubObjectDetails)i.next();
System.out.println("\t" + element.getKfsFiscalYear() + "/" + element.getKfsChartCode() + "/" + element.getKfsAcctNumber() + "/" + element.getKfsObjCode() + "/" + element.getKfsSubObjCode() + " : " + element.getKfsSubObjCodeName());
}
} else {
System.out.println("something bad happened...please check your query");
} |
...