39:
40: begin
41: if (funcmode = 'RUN') THEN
42:
43: h_book_type_code := wf_engine.GetItemAttrText(itemtype,itemkey,'BOOK_TYPE_CODE');
44: h_book_type_code_out := replace(h_book_type_code,' ','_');
45: h_book_type_code_out := replace(h_book_type_code_out,'(','_');
46: h_book_type_code_out := replace(h_book_type_code_out,')','_');
47: h_book_type_code_out := replace(h_book_type_code_out,'.','_');
45: h_book_type_code_out := replace(h_book_type_code_out,'(','_');
46: h_book_type_code_out := replace(h_book_type_code_out,')','_');
47: h_book_type_code_out := replace(h_book_type_code_out,'.','_');
48: h_book_type_code_out := replace(h_book_type_code_out,'-','_');
49: h_account_type := wf_engine.GetItemAttrText(itemtype,itemkey,'ACCOUNT_TYPE');
50: h_func := h_book_type_code_out || '_' || h_account_type || '.build';
51: h_flex_num := wf_engine.GetItemAttrNumber(itemtype,itemkey,'CHART_OF_ACCOUNTS_ID');
52:
53: h_dist_ccid := wf_engine.GetItemAttrNumber(itemtype,itemkey,'DISTRIBUTION_CCID');
47: h_book_type_code_out := replace(h_book_type_code_out,'.','_');
48: h_book_type_code_out := replace(h_book_type_code_out,'-','_');
49: h_account_type := wf_engine.GetItemAttrText(itemtype,itemkey,'ACCOUNT_TYPE');
50: h_func := h_book_type_code_out || '_' || h_account_type || '.build';
51: h_flex_num := wf_engine.GetItemAttrNumber(itemtype,itemkey,'CHART_OF_ACCOUNTS_ID');
52:
53: h_dist_ccid := wf_engine.GetItemAttrNumber(itemtype,itemkey,'DISTRIBUTION_CCID');
54: h_acct_ccid := wf_engine.GetItemAttrNumber(itemtype,itemkey,'ACCOUNT_CCID');
55:
49: h_account_type := wf_engine.GetItemAttrText(itemtype,itemkey,'ACCOUNT_TYPE');
50: h_func := h_book_type_code_out || '_' || h_account_type || '.build';
51: h_flex_num := wf_engine.GetItemAttrNumber(itemtype,itemkey,'CHART_OF_ACCOUNTS_ID');
52:
53: h_dist_ccid := wf_engine.GetItemAttrNumber(itemtype,itemkey,'DISTRIBUTION_CCID');
54: h_acct_ccid := wf_engine.GetItemAttrNumber(itemtype,itemkey,'ACCOUNT_CCID');
55:
56: h_def_ccid := wf_engine.GetItemAttrNumber(itemtype,itemkey,'DEFAULT_CCID');
57:
50: h_func := h_book_type_code_out || '_' || h_account_type || '.build';
51: h_flex_num := wf_engine.GetItemAttrNumber(itemtype,itemkey,'CHART_OF_ACCOUNTS_ID');
52:
53: h_dist_ccid := wf_engine.GetItemAttrNumber(itemtype,itemkey,'DISTRIBUTION_CCID');
54: h_acct_ccid := wf_engine.GetItemAttrNumber(itemtype,itemkey,'ACCOUNT_CCID');
55:
56: h_def_ccid := wf_engine.GetItemAttrNumber(itemtype,itemkey,'DEFAULT_CCID');
57:
58: h_acct_seg := wf_engine.GetItemAttrText(itemtype,itemkey,'ACCT_SEG_VAL');
52:
53: h_dist_ccid := wf_engine.GetItemAttrNumber(itemtype,itemkey,'DISTRIBUTION_CCID');
54: h_acct_ccid := wf_engine.GetItemAttrNumber(itemtype,itemkey,'ACCOUNT_CCID');
55:
56: h_def_ccid := wf_engine.GetItemAttrNumber(itemtype,itemkey,'DEFAULT_CCID');
57:
58: h_acct_seg := wf_engine.GetItemAttrText(itemtype,itemkey,'ACCT_SEG_VAL');
59:
60: IF (h_account_type in ('ASSET_COST','ASSET_CLEARING',
54: h_acct_ccid := wf_engine.GetItemAttrNumber(itemtype,itemkey,'ACCOUNT_CCID');
55:
56: h_def_ccid := wf_engine.GetItemAttrNumber(itemtype,itemkey,'DEFAULT_CCID');
57:
58: h_acct_seg := wf_engine.GetItemAttrText(itemtype,itemkey,'ACCT_SEG_VAL');
59:
60: IF (h_account_type in ('ASSET_COST','ASSET_CLEARING',
61: 'CIP_CLEARING','CIP_COST',
62: 'DEPRN_RSV','REV_AMORT','REV_RSV')
104: value => 1, p_log_level_rec => p_log_level_rec);
105: end if;
106: RETURN;
107: else
108: wf_engine.SetItemAttrText(itemtype=>'FALFEXWF',
109: itemkey=>itemkey,
110: aname=>'ERROR_MESSAGE',
111: avalue=>h_error_msg);
112: result := 'COMPLETE:FAILURE';