Sei sulla pagina 1di 5

public void validateReportHeader() { System.out.println("11111111111111111111111111 start validateReportHeader ") ; ExpensesAMImpl localExpensesAMImpl = (ExpensesAMImpl)getApplicationModule(); OADBTransactionImpl localOADBTransactionImpl = (OADBTransactionImpl)localExp ensesAMImpl.getOADBTransaction(); if (localOADBTransactionImpl.

isLoggingEnabled(2)) { localOADBTransactionImpl.writeDiagnostics(this, "start validateReportHeade r ", 2); } int i = 0; String str1 = null; String str2 = null; String str3 = ""; String str4 = ""; ArrayList localArrayList = new ArrayList(); String str5 = "BEGIN fnd_msg_pub.initialize;AP_WEB_OA_MAINFLOW_PKG.ValidateR eportHeader(report_header_id => :1, employee_id => :2, cost_center => :3, templa te_id => :4, template_name => :5, purpose => :6, summary_start_date => :7, last_ receipt_date => :8, reimbursement_currency_code => :9, reimbursement_currency_na me => :10, multi_currency_flag => :11, override_approver_id => :12, override_app rover_name => :13, number_max_flexfield => :14, amt_due_employee => :15, amt_due _ccCompany => :16, p_IsSessionProjectEnabled => :17, p_return_status => :18, p_m sg_count => :19, p_msg_data => :20 );END; "; String str6 = (String)localOADBTransactionImpl.getValue("IsProjectEnabled"); CallableStatement localCallableStatement = localOADBTransactionImpl.createCa llableStatement(str5, 1); Object localObject1; try { ExpenseTemplatesVOImpl localExpenseTemplatesVOImpl = localExpensesAMImpl.g etExpenseTemplatesVO(); localObject1 = localExpenseTemplatesVOImpl.getTemplateName(getExpenseRepor tId().toString()); System.out.println("TemplateName="+localObject1); localCallableStatement.setString(1, getReportHeaderId().toString()); System.out.println("getReportHeaderId().toString()="+getReportHeaderId() .toString()); localCallableStatement.setString(2, getEmployeeId().toString()); System.out.println("getEmployeeId().toString()="+getEmployeeId().toStrin g()); localCallableStatement.setString(3, getFlexConcatenated()); System.out.println("getFlexConcatenated()="+getFlexConcatenated()); localCallableStatement.setString(4, getExpenseReportId().toString()); System.out.println("getExpenseReportId().toString()="+getExpenseReportId ().toString()); localCallableStatement.setString(5, (String)localObject1); System.out.println("localObject1="+localObject1); localCallableStatement.setString(6, getDescription()); System.out.println("getDescription="+getDescription()); localCallableStatement.setString(7, getCreationDate().toString()); System.out.println("getCreationDate().toString()="+getCreationDate().toS tring()); localCallableStatement.setString(8, null); localCallableStatement.setString(9, getPaymentCurrencyCode());

System.out.println("getPaymentCurrencyCode="+getPaymentCurrencyCode()); localCallableStatement.setString(10, getPaymentCurrencyCode()); System.out.println("getPaymentCurrencyCode="+getPaymentCurrencyCode()); localCallableStatement.setString(11, (String)localOADBTransactionImpl.getV alue("ApWebAllowNonBaseReimb")); System.out.println("(String)localOADBTransactionImpl.getValue(\"ApWebAll owNonBaseReimb\")="+(String)localOADBTransactionImpl.getValue("ApWebAllowNonBase Reimb")); localCallableStatement.setString(12, getOverrideApproverId() == null ? nul l : getOverrideApproverId().toString()); System.out.println("getOverrideApproverId="+getOverrideApproverId()); localCallableStatement.setString(13, getOverrideApproverName()); System.out.println("getOverrideApproverName="+getOverrideApproverName()) ; localCallableStatement.setString(14, null); localCallableStatement.setString(15, null); localCallableStatement.setString(16, null); localCallableStatement.setString(17, "N".equals(str6) ? "N" : "Y"); String xxStr = "N".equals(str6) ? "N" : "Y"; System.out.println("\"N\".equals(str6) ? \"N\" : \"Y\"="+xxStr); ((OracleCallableStatement)localCallableStatement).registerOutParameter(12, 12, 0, 75); ((OracleCallableStatement)localCallableStatement).registerOutParameter(13, 12, 0, 240); ((OracleCallableStatement)localCallableStatement).registerOutParameter(18, 12, 0, 5); localCallableStatement.registerOutParameter(19, 4); ((OracleCallableStatement)localCallableStatement).registerOutParameter(20, 12, 0, 6000); localCallableStatement.execute(); System.out.println("-----------Out Parameters---------"); str2 = localCallableStatement.getString(18); System.out.println("str2="+str2); i = localCallableStatement.getInt(19); System.out.println("i="+i); str1 = localCallableStatement.getString(20); System.out.println("str1="+str1); str3 = localCallableStatement.getString(12); System.out.println("str3="+str3); str4 = localCallableStatement.getString(13); System.out.println("str4="+str4); if (str3 != null) { setOverrideApproverId(new Number(str3)); if (str4 != null) setOverrideApproverName(str4); } else { setOverrideApproverId(null); } if ((i == 0) && (getFlexConcatenated() != null)) setFlexConcatenated(OIEUtil.getLeftTrimmedString(getFlexConcatenated().t rim())); } catch (Exception localException2) { System.out.println("localException2"+localException2); throw OAException.wrapperException(localException2);

} finally { try { localCallableStatement.close(); } catch (Exception localException3) { System.out.println("localException3"+localException3); throw OAException.wrapperException(localException3); } } if (i > 0) { if (localOADBTransactionImpl.isLoggingEnabled(2)) localOADBTransactionImpl.writeDiagnostics(this, "validateReportHeader me ssage count:" + i, 2); try { OAExceptionUtils.chec Errors(localOADBTransactionImpl, i, str2, str1); } catch (OAException localOAException) { System.out.println("localOAException"+localOAException);/* //Object localObj[] = localOAException.getExceptions(); ArrayList localObj[] = localOAException.getExceptions(); if (localObject1 != null) { for (int j = 0; j < localObj.length; j++) { //Object localObject3 = localObj[j]; OAException localObject3 = localObj[j]; if (localObject3 != null) { localArrayList.add(new OAException(localObject3.getMessage())); } } } else if (localOAException != null) { localArrayList.add(new OAException(localOAException.getMessage())); } if (localArrayList.size() > 0) OAException.raiseBundledOAException(localArrayList); } } else if (localOADBTransactionImpl.isLoggingEnabled(2)) { localOADBTransactionImpl.writeDiagnostics(this, "no errors", 2); } System.out.println("11111111111111111111111111 end validateReportHeader ") ; } ================================================================================ =============================================== For Lysen o's login: ================================================================================ =============================================== 12/05/08 16:24:08 11111111111111111111111111 start validateReportHeader 12/05/08 16:24:08 TemplateName=PB Standard ER Template 12/05/08 16:24:08 getReportHeaderId().toString()=3667898 12/05/08 16:24:08 getEmployeeId().toString()=233472 12/05/08 16:24:08 getFlexConcatenated()=4717 12/05/08 16:24:08 getExpenseReportId().toString()=10021 12/05/08 16:24:08 localObject1=PB Standard ER Template

*/

12/05/08 16:24:08 getDescription=sdfsd 12/05/08 16:24:08 getCreationDate().toString()=2012-05-02 14:08:20.0 12/05/08 16:24:08 getPaymentCurrencyCode=USD 12/05/08 16:24:08 getPaymentCurrencyCode=USD 12/05/08 16:24:08 (String)localOADBTransactionImpl.getValue("ApWebAllowNonBaseRe imb")=N 12/05/08 16:24:08 getOverrideApproverId=251416 12/05/08 16:24:08 getOverrideApproverName=KAUFMAN, NEIL E 12/05/08 16:24:08 "N".equals(str6) ? "N" : "Y"=Y 12/05/08 16:24:08 localException2java.sql.SQLException: ORA-20001: APP-SQLAP-100 00: ORA-20001: APP-SQLAP-10000: ORA-20001: APP-SQLAP-10000: ORA-20001: APP-SQLAP -10000: User-Defined Exception occurred in BuildAccount with parameters () while performing the following operation: occurred in Validate Cost Center with parameters () while performing the following operation: occurred in AP_WEB_VALIDATE_UTIL.ValidateReportHeader with parameters (&PARAMETERS) while performing the following operation: Validate Cost Center occurred in ValidateReportHeader with parameters (&PARAMETERS ORA-06512: at "APPS.APP_EXCEPTION", line 72 ORA-06512: at "APPS.AP_WEB_OA_MAINFLOW_PKG", line 239 ORA-06512: at line 1 ================================================================================ ====================================================== Error from toad ================================================================================ ====================================================== ORA-20001: APP-SQLAP-10000: ORA-20001: APP-SQLAP-10000: ORA-20001: APP-SQLAP-100 00: ORA-20001: APP-SQLAP-10000: User-Defined Exception occurred in BuildAccount with parameters () while performing the following operation: occurred in Validate Cost Center with parameters () while performing the following operation: occurred in AP_WEB_VALIDATE_UTIL.ValidateReportHeader with parameters (&PARAMETERS) while performing the following operation: Validate Cost Center occurred in ValidateReportHeader with parameters (&PARAMETERS ORA-06512: at "APPS.APP_EXCEPTION", line 72 ORA-06512: at "APPS.AP_WEB_OA_MAINFLOW_PKG", line 239 ORA-06512: at line 50 ================================================================================ ====================================================== For Glenn's Login: ================================================================================ =============================================== 12/05/08 16:36:52 11111111111111111111111111 start validateReportHeader 12/05/08 16:36:52 TemplateName=PB Standard ER Template 12/05/08 16:36:52 getReportHeaderId().toString()=3667872

12/05/08 12/05/08 12/05/08 12/05/08 12/05/08 12/05/08 12/05/08 12/05/08 12/05/08 imb")=N 12/05/08 12/05/08 12/05/08 12/05/08 12/05/08 12/05/08 12/05/08 12/05/08 12/05/08 12/05/08

16:36:52 16:36:52 16:36:52 16:36:52 16:36:52 16:36:52 16:36:52 16:36:52 16:36:52 16:36:52 16:36:52 16:36:52 16:36:52 16:36:52 16:36:52 16:36:52 16:36:52 16:36:52 16:36:52

getEmployeeId().toString()=241479 getFlexConcatenated()=4717 getExpenseReportId().toString()=10021 localObject1=PB Standard ER Template getDescription=test getCreationDate().toString()=2012-05-01 13:22:08.0 getPaymentCurrencyCode=USD getPaymentCurrencyCode=USD (String)localOADBTransactionImpl.getValue("ApWebAllowNonBaseRe getOverrideApproverId=251416 getOverrideApproverName=KAUFMAN, NEIL E "N".equals(str6) ? "N" : "Y"=Y -----------Out Parameters--------str2=null i=0 str1=null str3=251416 str4=null 11111111111111111111111111 end validateReportHeader

Potrebbero piacerti anche