DBA Data[Home] [Help]

APPS.AP_WEB_CC_VALIDATION_WF_PKG dependencies on AP_CREDIT_CARD_TRXNS_ALL

Line 17: SELECT distinct card_program_id FROM ap_credit_card_trxns_all

13: l_event_key number;
14: i number := 0;
15: --Bug 6160290: Add cursor to handle scenario when p_card_program_id is null
16: cursor fetch_card_program_id is
17: SELECT distinct card_program_id FROM ap_credit_card_trxns_all
18: WHERE (p_start_date IS NULL OR transaction_date IS NULL OR transaction_date >= p_start_date)
19: AND (p_end_date IS NULL OR transaction_date IS NULL OR transaction_date <= p_end_date)
20: AND validate_code <> 'Y';
21:

Line 100: 'from ap_credit_card_trxns_all '||

96: l_start_date := wf_engine.getitemattrdate(itemtype,itemkey,'START_DATE',true);
97: l_end_date := wf_engine.getitemattrdate(itemtype,itemkey,'END_DATE',true);
98:
99: stmt := 'select validate_code, count(*) '||
100: 'from ap_credit_card_trxns_all '||
101: 'where validate_code not in (''Y'', ''N'', ''UNTESTED'') ';
102: if l_request_id is null then
103: stmt := stmt || 'and :reqId is null ';
104: else

Line 473: where exists (select 1 from ap_credit_card_trxns_all where request_id = l_request_id and validate_code <> 'Y');

469: l_card_program_id := wf_engine.getitemattrnumber(itemtype, itemkey,'CARD_PROGRAM_ID',FALSE);
470: l_start_date := wf_engine.getitemattrdate(itemtype, itemkey,'START_DATE',FALSE);
471: l_end_date := wf_engine.getitemattrdate(itemtype, itemkey,'END_DATE',FALSE);
472: select count(*) into l_exist1 from dual
473: where exists (select 1 from ap_credit_card_trxns_all where request_id = l_request_id and validate_code <> 'Y');
474: SELECT COUNT(*) INTO l_exist2 FROM dual
475: WHERE exists (SELECT 1 FROM ap_credit_card_trxns_all
476: WHERE (l_card_program_id IS NULL OR card_program_id = l_card_program_id) -- Bug 6829024(sodash)
477: AND (l_start_date IS NULL OR transaction_date IS NULL OR transaction_date >= l_start_date)

Line 475: WHERE exists (SELECT 1 FROM ap_credit_card_trxns_all

471: l_end_date := wf_engine.getitemattrdate(itemtype, itemkey,'END_DATE',FALSE);
472: select count(*) into l_exist1 from dual
473: where exists (select 1 from ap_credit_card_trxns_all where request_id = l_request_id and validate_code <> 'Y');
474: SELECT COUNT(*) INTO l_exist2 FROM dual
475: WHERE exists (SELECT 1 FROM ap_credit_card_trxns_all
476: WHERE (l_card_program_id IS NULL OR card_program_id = l_card_program_id) -- Bug 6829024(sodash)
477: AND (l_start_date IS NULL OR transaction_date IS NULL OR transaction_date >= l_start_date)
478: AND (l_end_date IS NULL OR transaction_date IS NULL OR transaction_date <= l_end_date)
479: AND validate_code <> 'Y'