DBA Data[Home] [Help]

APPS.PO_WF_PO_CHARGE_ACC dependencies on WF_ENGINE

Line 47: if (funcmode <> wf_engine.eng_run) then

43:
44:
45: -- Do nothing in cancel or timeout mode
46: --
47: if (funcmode <> wf_engine.eng_run) then
48:
49: result := wf_engine.eng_null;
50: return;
51:

Line 49: result := wf_engine.eng_null;

45: -- Do nothing in cancel or timeout mode
46: --
47: if (funcmode <> wf_engine.eng_run) then
48:
49: result := wf_engine.eng_null;
50: return;
51:
52: end if;
53:

Line 137: if (funcmode <> wf_engine.eng_run) then

133:
134:
135: -- Do nothing in cancel or timeout mode
136: --
137: if (funcmode <> wf_engine.eng_run) then
138:
139: result := wf_engine.eng_null;
140: return;
141:

Line 139: result := wf_engine.eng_null;

135: -- Do nothing in cancel or timeout mode
136: --
137: if (funcmode <> wf_engine.eng_run) then
138:
139: result := wf_engine.eng_null;
140: return;
141:
142: end if;
143:

Line 494: if (funcmode <> wf_engine.eng_run) then

490:
491:
492: -- Do nothing in cancel or timeout mode
493: --
494: if (funcmode <> wf_engine.eng_run) then
495:
496: result := wf_engine.eng_null;
497: return;
498:

Line 496: result := wf_engine.eng_null;

492: -- Do nothing in cancel or timeout mode
493: --
494: if (funcmode <> wf_engine.eng_run) then
495:
496: result := wf_engine.eng_null;
497: return;
498:
499: end if;
500:

Line 632: if (funcmode <> wf_engine.eng_run) then

628:
629:
630: -- Do nothing in cancel or timeout mode
631: --
632: if (funcmode <> wf_engine.eng_run) then
633:
634: result := wf_engine.eng_null;
635: return;
636:

Line 634: result := wf_engine.eng_null;

630: -- Do nothing in cancel or timeout mode
631: --
632: if (funcmode <> wf_engine.eng_run) then
633:
634: result := wf_engine.eng_null;
635: return;
636:
637: end if;
638:

Line 700: if (funcmode <> wf_engine.eng_run) then

696: END IF;
697:
698: -- Do nothing in cancel or timeout mode
699: --
700: if (funcmode <> wf_engine.eng_run) then
701:
702: result := wf_engine.eng_null;
703: return;
704:

Line 702: result := wf_engine.eng_null;

698: -- Do nothing in cancel or timeout mode
699: --
700: if (funcmode <> wf_engine.eng_run) then
701:
702: result := wf_engine.eng_null;
703: return;
704:
705: end if;
706:

Line 960: if (funcmode <> wf_engine.eng_run) then

956:
957:
958: -- Do nothing in cancel or timeout mode
959: --
960: if (funcmode <> wf_engine.eng_run) then
961:
962: result := wf_engine.eng_null;
963: return;
964:

Line 962: result := wf_engine.eng_null;

958: -- Do nothing in cancel or timeout mode
959: --
960: if (funcmode <> wf_engine.eng_run) then
961:
962: result := wf_engine.eng_null;
963: return;
964:
965: end if;
966:

Line 1161: if (funcmode <> wf_engine.eng_run) then

1157:
1158:
1159: -- Do nothing in cancel or timeout mode
1160: --
1161: if (funcmode <> wf_engine.eng_run) then
1162:
1163: result := wf_engine.eng_null;
1164: return;
1165:

Line 1163: result := wf_engine.eng_null;

1159: -- Do nothing in cancel or timeout mode
1160: --
1161: if (funcmode <> wf_engine.eng_run) then
1162:
1163: result := wf_engine.eng_null;
1164: return;
1165:
1166: end if;
1167:

Line 1384: IF (funcmode <> WF_ENGINE.eng_run) THEN

1380: BEGIN
1381: l_progress := '010';
1382:
1383: -- Do nothing in cancel or timeout mode
1384: IF (funcmode <> WF_ENGINE.eng_run) THEN
1385: result := WF_ENGINE.eng_null;
1386: RETURN;
1387: END IF;
1388:

Line 1385: result := WF_ENGINE.eng_null;

1381: l_progress := '010';
1382:
1383: -- Do nothing in cancel or timeout mode
1384: IF (funcmode <> WF_ENGINE.eng_run) THEN
1385: result := WF_ENGINE.eng_null;
1386: RETURN;
1387: END IF;
1388:
1389: l_progress := '020';

Line 1401: result := WF_ENGINE.eng_completed || ':N';

1397:
1398: IF (l_account_gen_flow_type IS NULL OR
1399: l_account_gen_flow_type = PO_WF_BUILD_ACCOUNT_INIT.g_po_accounts)
1400: THEN
1401: result := WF_ENGINE.eng_completed || ':N';
1402: ELSE
1403: result := WF_ENGINE.eng_completed || ':Y';
1404: END IF;
1405:

Line 1403: result := WF_ENGINE.eng_completed || ':Y';

1399: l_account_gen_flow_type = PO_WF_BUILD_ACCOUNT_INIT.g_po_accounts)
1400: THEN
1401: result := WF_ENGINE.eng_completed || ':N';
1402: ELSE
1403: result := WF_ENGINE.eng_completed || ':Y';
1404: END IF;
1405:
1406: IF (g_po_wf_debug = 'Y') THEN
1407: PO_WF_DEBUG_PKG.insert_debug(itemtype, itemkey,

Line 1449: IF (funcmode <> WF_ENGINE.eng_run) THEN

1445: l_progress WF_ITEM_ACTIVITY_STATUSES.error_stack%TYPE; -- VARCHAR2(4000)
1446: l_is_SPS_distribution VARCHAR2(1);
1447: BEGIN
1448: -- Do nothing in cancel or timeout mode
1449: IF (funcmode <> WF_ENGINE.eng_run) THEN
1450: result := WF_ENGINE.eng_null;
1451: RETURN;
1452: END IF;
1453:

Line 1450: result := WF_ENGINE.eng_null;

1446: l_is_SPS_distribution VARCHAR2(1);
1447: BEGIN
1448: -- Do nothing in cancel or timeout mode
1449: IF (funcmode <> WF_ENGINE.eng_run) THEN
1450: result := WF_ENGINE.eng_null;
1451: RETURN;
1452: END IF;
1453:
1454: l_progress := '010';

Line 1462: result := WF_ENGINE.eng_completed || ':N';

1458: aname => 'IS_SPS_DISTRIBUTION');
1459:
1460: l_progress := '020';
1461: IF (l_is_SPS_distribution IS NULL) THEN
1462: result := WF_ENGINE.eng_completed || ':N';
1463: ELSE
1464: result := WF_ENGINE.eng_completed || ':' || l_is_SPS_distribution;
1465: END IF;
1466:

Line 1464: result := WF_ENGINE.eng_completed || ':' || l_is_SPS_distribution;

1460: l_progress := '020';
1461: IF (l_is_SPS_distribution IS NULL) THEN
1462: result := WF_ENGINE.eng_completed || ':N';
1463: ELSE
1464: result := WF_ENGINE.eng_completed || ':' || l_is_SPS_distribution;
1465: END IF;
1466:
1467: IF (g_po_wf_debug = 'Y') THEN
1468: PO_WF_DEBUG_PKG.insert_debug(itemtype, itemkey,

Line 1812: IF (funcmode <> WF_ENGINE.eng_run) THEN

1808: BEGIN
1809: l_progress := '010';
1810:
1811: -- Do nothing in cancel or timeout mode
1812: IF (funcmode <> WF_ENGINE.eng_run) THEN
1813: result := WF_ENGINE.eng_null;
1814: RETURN;
1815: END IF;
1816:

Line 1813: result := WF_ENGINE.eng_null;

1809: l_progress := '010';
1810:
1811: -- Do nothing in cancel or timeout mode
1812: IF (funcmode <> WF_ENGINE.eng_run) THEN
1813: result := WF_ENGINE.eng_null;
1814: RETURN;
1815: END IF;
1816:
1817: l_progress := '020';

Line 1894: result := WF_ENGINE.eng_completed || ':FAILURE';

1890: END IF;
1891:
1892: l_progress := '130';
1893: IF (l_SPS_charge_account_id IS NULL) THEN
1894: result := WF_ENGINE.eng_completed || ':FAILURE';
1895: RETURN;
1896: END IF;
1897: END IF; -- IF (l_item_id IS NULL) OR
1898: -- (is_shopfloor_enabled_item(l_item_id, l_logical_inv_org_id)) --)

Line 1907: result := WF_ENGINE.eng_completed || ':SUCCESS';

1903: aname => 'TEMP_ACCOUNT_ID',
1904: avalue => l_SPS_charge_account_id);
1905:
1906: l_progress := '150';
1907: result := WF_ENGINE.eng_completed || ':SUCCESS';
1908:
1909: l_progress := '160';
1910:
1911: IF (g_po_wf_debug = 'Y') THEN

Line 1966: IF (funcmode <> WF_ENGINE.eng_run) THEN

1962: BEGIN
1963: l_progress := '010';
1964:
1965: -- Do nothing in cancel or timeout mode
1966: IF (funcmode <> WF_ENGINE.eng_run) THEN
1967: result := WF_ENGINE.eng_null;
1968: RETURN;
1969: END IF;
1970:

Line 1967: result := WF_ENGINE.eng_null;

1963: l_progress := '010';
1964:
1965: -- Do nothing in cancel or timeout mode
1966: IF (funcmode <> WF_ENGINE.eng_run) THEN
1967: result := WF_ENGINE.eng_null;
1968: RETURN;
1969: END IF;
1970:
1971: l_progress := '020';

Line 1981: result := WF_ENGINE.eng_completed || ':Y';

1977: l_progress := '030';
1978: IF l_dest_charge_account_id IS NULL OR
1979: l_dest_charge_account_id = 0 OR
1980: l_dest_charge_account_id = -1 THEN
1981: result := WF_ENGINE.eng_completed || ':Y';
1982: ELSE
1983: IF (g_po_wf_debug = 'Y') THEN
1984: l_temp_acc_id := PO_WF_UTIL_PKG.GetItemAttrNumber(
1985: itemtype => itemtype,

Line 2004: result := WF_ENGINE.eng_completed || ':N';

2000: itemkey => itemkey,
2001: aname => 'TEMP_ACCOUNT_ID',
2002: avalue => l_dest_charge_account_id);
2003: l_progress := '050';
2004: result := WF_ENGINE.eng_completed || ':N';
2005: END IF;
2006:
2007: IF (g_po_wf_debug = 'Y') THEN
2008: PO_WF_DEBUG_PKG.insert_debug(itemtype, itemkey,

Line 2058: IF (funcmode <> WF_ENGINE.eng_run) THEN

2054: BEGIN
2055: l_progress := '010';
2056:
2057: -- Do nothing in cancel or timeout mode
2058: IF (funcmode <> WF_ENGINE.eng_run) THEN
2059: result := WF_ENGINE.eng_null;
2060: RETURN;
2061: END IF;
2062:

Line 2059: result := WF_ENGINE.eng_null;

2055: l_progress := '010';
2056:
2057: -- Do nothing in cancel or timeout mode
2058: IF (funcmode <> WF_ENGINE.eng_run) THEN
2059: result := WF_ENGINE.eng_null;
2060: RETURN;
2061: END IF;
2062:
2063: --

Line 2073: result := WF_ENGINE.eng_completed || ':N';

2069: itemkey => itemkey,
2070: aname => 'IS_SPS_DISTRIBUTION' );
2071:
2072: IF nvl( l_is_sps_distribution, 'N' ) = 'N' THEN
2073: result := WF_ENGINE.eng_completed || ':N';
2074: RETURN;
2075: END IF;
2076: --
2077:

Line 2094: result := WF_ENGINE.eng_completed || ':N';

2090:
2091: l_progress := '040';
2092: IF (l_ship_to_ou_coa_id IS NULL) OR
2093: (l_ship_to_ou_coa_id <> l_pou_coa_id) THEN
2094: result := WF_ENGINE.eng_completed || ':N';
2095: ELSE
2096: result := WF_ENGINE.eng_completed || ':Y';
2097: END IF;
2098:

Line 2096: result := WF_ENGINE.eng_completed || ':Y';

2092: IF (l_ship_to_ou_coa_id IS NULL) OR
2093: (l_ship_to_ou_coa_id <> l_pou_coa_id) THEN
2094: result := WF_ENGINE.eng_completed || ':N';
2095: ELSE
2096: result := WF_ENGINE.eng_completed || ':Y';
2097: END IF;
2098:
2099: IF (g_po_wf_debug = 'Y') THEN
2100: PO_WF_DEBUG_PKG.insert_debug(itemtype, itemkey,

Line 2141: wf_engine.SetItemAttrNumber( itemtype => itemtype,

2137: IS
2138: l_progress varchar2(3);
2139: BEGIN
2140: l_progress := '010';
2141: wf_engine.SetItemAttrNumber( itemtype => itemtype,
2142: itemkey => itemkey,
2143: aname =>'RESPONSIBILITY_ID',
2144: avalue => fnd_global.resp_id);
2145: l_progress := '020';

Line 2155: result := WF_ENGINE.eng_completed || ':Y';

2151: FND_GLOBAL.apps_initialize( user_id => fnd_global.user_id,
2152: resp_id => NULL,
2153: resp_appl_id => fnd_global.resp_appl_id);
2154: l_progress := '030';
2155: result := WF_ENGINE.eng_completed || ':Y';
2156: EXCEPTION
2157: WHEN OTHERS THEN
2158: WF_CORE.context('PO_WF_PO_CHARGE_ACC','SET_NULL_RESP_ID',l_progress);
2159: raise;

Line 2187: l_resp_id := wf_engine.GetItemAttrNumber( itemtype => itemtype,

2183: l_resp_id FND_RESPONSIBILITY.responsibility_id%type;
2184: BEGIN
2185: l_resp_id :=NULL;
2186: l_progress := '010';
2187: l_resp_id := wf_engine.GetItemAttrNumber( itemtype => itemtype,
2188: itemkey => itemkey,
2189: aname => 'RESPONSIBILITY_ID');
2190: l_progress := '020';
2191: IF (g_po_wf_debug = 'Y') THEN

Line 2200: result := WF_ENGINE.eng_completed || ':Y';

2196: FND_GLOBAL.apps_initialize( user_id => fnd_global.user_id,
2197: resp_id => l_resp_id,
2198: resp_appl_id => fnd_global.resp_appl_id);
2199: l_progress := '030';
2200: result := WF_ENGINE.eng_completed || ':Y';
2201: EXCEPTION
2202: WHEN OTHERS THEN
2203: WF_CORE.context('PO_WF_PO_CHARGE_ACC','RESET_RESP_ID',l_progress);
2204: RAISE;

Line 2258: IF (funcmode <> wf_engine.eng_run) THEN

2254: BEGIN
2255:
2256: l_progress := '010';
2257: -- Do nothing in cancel or timeout mode
2258: IF (funcmode <> wf_engine.eng_run) THEN
2259: result := wf_engine.eng_null;
2260: RETURN;
2261: END IF;
2262:

Line 2259: result := wf_engine.eng_null;

2255:
2256: l_progress := '010';
2257: -- Do nothing in cancel or timeout mode
2258: IF (funcmode <> wf_engine.eng_run) THEN
2259: result := wf_engine.eng_null;
2260: RETURN;
2261: END IF;
2262:
2263: l_progress := '020';

Line 2277: result := wf_engine.eng_null;

2273: END IF;
2274:
2275: -- Do nothing if FND_FLEX_STATUS is INVALID
2276: IF (l_flex_status = 'INVALID') THEN
2277: result := wf_engine.eng_null;
2278: RETURN;
2279: END IF;
2280:
2281: l_coa_id := po_wf_util_pkg.getitemattrtext(

Line 2316: wf_engine.setitemattrtext(itemtype,itemkey,'FND_FLEX_STATUS','INVALID');

2312: PO_WF_DEBUG_PKG.insert_debug(itemtype, itemkey,
2313: 'PO_WF_PO_CHARGE_ACC.validate_combination: l_is_combination_valid is false');
2314: END IF;
2315:
2316: wf_engine.setitemattrtext(itemtype,itemkey,'FND_FLEX_STATUS','INVALID');
2317: wf_engine.setitemattrtext(itemtype,itemkey,'FND_FLEX_MESSAGE',
2318: fnd_flex_keyval.encoded_error_message);
2319: wf_engine.setitemattrtext(itemtype,itemkey,'FND_FLEX_CCID','0');
2320: wf_engine.setitemattrtext(itemtype,itemkey,'FND_FLEX_DATA','');

Line 2317: wf_engine.setitemattrtext(itemtype,itemkey,'FND_FLEX_MESSAGE',

2313: 'PO_WF_PO_CHARGE_ACC.validate_combination: l_is_combination_valid is false');
2314: END IF;
2315:
2316: wf_engine.setitemattrtext(itemtype,itemkey,'FND_FLEX_STATUS','INVALID');
2317: wf_engine.setitemattrtext(itemtype,itemkey,'FND_FLEX_MESSAGE',
2318: fnd_flex_keyval.encoded_error_message);
2319: wf_engine.setitemattrtext(itemtype,itemkey,'FND_FLEX_CCID','0');
2320: wf_engine.setitemattrtext(itemtype,itemkey,'FND_FLEX_DATA','');
2321: wf_engine.setitemattrtext(itemtype,itemkey,'FND_FLEX_DESCRIPTIONS','');

Line 2319: wf_engine.setitemattrtext(itemtype,itemkey,'FND_FLEX_CCID','0');

2315:
2316: wf_engine.setitemattrtext(itemtype,itemkey,'FND_FLEX_STATUS','INVALID');
2317: wf_engine.setitemattrtext(itemtype,itemkey,'FND_FLEX_MESSAGE',
2318: fnd_flex_keyval.encoded_error_message);
2319: wf_engine.setitemattrtext(itemtype,itemkey,'FND_FLEX_CCID','0');
2320: wf_engine.setitemattrtext(itemtype,itemkey,'FND_FLEX_DATA','');
2321: wf_engine.setitemattrtext(itemtype,itemkey,'FND_FLEX_DESCRIPTIONS','');
2322: wf_engine.setitemattrtext(itemtype,itemkey,'FND_FLEX_NEW','N');
2323: END IF;

Line 2320: wf_engine.setitemattrtext(itemtype,itemkey,'FND_FLEX_DATA','');

2316: wf_engine.setitemattrtext(itemtype,itemkey,'FND_FLEX_STATUS','INVALID');
2317: wf_engine.setitemattrtext(itemtype,itemkey,'FND_FLEX_MESSAGE',
2318: fnd_flex_keyval.encoded_error_message);
2319: wf_engine.setitemattrtext(itemtype,itemkey,'FND_FLEX_CCID','0');
2320: wf_engine.setitemattrtext(itemtype,itemkey,'FND_FLEX_DATA','');
2321: wf_engine.setitemattrtext(itemtype,itemkey,'FND_FLEX_DESCRIPTIONS','');
2322: wf_engine.setitemattrtext(itemtype,itemkey,'FND_FLEX_NEW','N');
2323: END IF;
2324:

Line 2321: wf_engine.setitemattrtext(itemtype,itemkey,'FND_FLEX_DESCRIPTIONS','');

2317: wf_engine.setitemattrtext(itemtype,itemkey,'FND_FLEX_MESSAGE',
2318: fnd_flex_keyval.encoded_error_message);
2319: wf_engine.setitemattrtext(itemtype,itemkey,'FND_FLEX_CCID','0');
2320: wf_engine.setitemattrtext(itemtype,itemkey,'FND_FLEX_DATA','');
2321: wf_engine.setitemattrtext(itemtype,itemkey,'FND_FLEX_DESCRIPTIONS','');
2322: wf_engine.setitemattrtext(itemtype,itemkey,'FND_FLEX_NEW','N');
2323: END IF;
2324:
2325: result := wf_engine.eng_completed || ':' || wf_engine.eng_null;

Line 2322: wf_engine.setitemattrtext(itemtype,itemkey,'FND_FLEX_NEW','N');

2318: fnd_flex_keyval.encoded_error_message);
2319: wf_engine.setitemattrtext(itemtype,itemkey,'FND_FLEX_CCID','0');
2320: wf_engine.setitemattrtext(itemtype,itemkey,'FND_FLEX_DATA','');
2321: wf_engine.setitemattrtext(itemtype,itemkey,'FND_FLEX_DESCRIPTIONS','');
2322: wf_engine.setitemattrtext(itemtype,itemkey,'FND_FLEX_NEW','N');
2323: END IF;
2324:
2325: result := wf_engine.eng_completed || ':' || wf_engine.eng_null;
2326: END validate_combination;

Line 2325: result := wf_engine.eng_completed || ':' || wf_engine.eng_null;

2321: wf_engine.setitemattrtext(itemtype,itemkey,'FND_FLEX_DESCRIPTIONS','');
2322: wf_engine.setitemattrtext(itemtype,itemkey,'FND_FLEX_NEW','N');
2323: END IF;
2324:
2325: result := wf_engine.eng_completed || ':' || wf_engine.eng_null;
2326: END validate_combination;
2327:
2328: END PO_WF_PO_CHARGE_ACC;