DBA Data[Home] [Help]

APPS.PO_SOURCING_PVT dependencies on PO_HEADERS_ALL

Line 142: -- been modified to point to PO_HEADERS_ALL type.

138: -- Type declaration for Vendor defaults structure
139: TYPE vendor_defaults_rec_type IS RECORD
140: (vendor_id PO_VENDORS.vendor_id%TYPE := null,
141: -- Bug# 4546121:All columns that referred to the obsolete columns in po_vendors have
142: -- been modified to point to PO_HEADERS_ALL type.
143: ship_to_location_id PO_HEADERS_ALL.ship_to_location_id%TYPE := null,
144: bill_to_location_id PO_HEADERS_ALL.bill_to_location_id%TYPE := null,
145: ship_via_lookup_code PO_HEADERS_ALL.ship_via_lookup_code%TYPE := null,
146: fob_lookup_code PO_HEADERS_ALL.fob_lookup_code%TYPE := null,

Line 143: ship_to_location_id PO_HEADERS_ALL.ship_to_location_id%TYPE := null,

139: TYPE vendor_defaults_rec_type IS RECORD
140: (vendor_id PO_VENDORS.vendor_id%TYPE := null,
141: -- Bug# 4546121:All columns that referred to the obsolete columns in po_vendors have
142: -- been modified to point to PO_HEADERS_ALL type.
143: ship_to_location_id PO_HEADERS_ALL.ship_to_location_id%TYPE := null,
144: bill_to_location_id PO_HEADERS_ALL.bill_to_location_id%TYPE := null,
145: ship_via_lookup_code PO_HEADERS_ALL.ship_via_lookup_code%TYPE := null,
146: fob_lookup_code PO_HEADERS_ALL.fob_lookup_code%TYPE := null,
147: pay_on_code PO_VENDOR_SITES_ALL.pay_on_code%TYPE := null,

Line 144: bill_to_location_id PO_HEADERS_ALL.bill_to_location_id%TYPE := null,

140: (vendor_id PO_VENDORS.vendor_id%TYPE := null,
141: -- Bug# 4546121:All columns that referred to the obsolete columns in po_vendors have
142: -- been modified to point to PO_HEADERS_ALL type.
143: ship_to_location_id PO_HEADERS_ALL.ship_to_location_id%TYPE := null,
144: bill_to_location_id PO_HEADERS_ALL.bill_to_location_id%TYPE := null,
145: ship_via_lookup_code PO_HEADERS_ALL.ship_via_lookup_code%TYPE := null,
146: fob_lookup_code PO_HEADERS_ALL.fob_lookup_code%TYPE := null,
147: pay_on_code PO_VENDOR_SITES_ALL.pay_on_code%TYPE := null,
148: freight_terms_lookup_code PO_HEADERS_ALL.freight_terms_lookup_code%TYPE := null,

Line 145: ship_via_lookup_code PO_HEADERS_ALL.ship_via_lookup_code%TYPE := null,

141: -- Bug# 4546121:All columns that referred to the obsolete columns in po_vendors have
142: -- been modified to point to PO_HEADERS_ALL type.
143: ship_to_location_id PO_HEADERS_ALL.ship_to_location_id%TYPE := null,
144: bill_to_location_id PO_HEADERS_ALL.bill_to_location_id%TYPE := null,
145: ship_via_lookup_code PO_HEADERS_ALL.ship_via_lookup_code%TYPE := null,
146: fob_lookup_code PO_HEADERS_ALL.fob_lookup_code%TYPE := null,
147: pay_on_code PO_VENDOR_SITES_ALL.pay_on_code%TYPE := null,
148: freight_terms_lookup_code PO_HEADERS_ALL.freight_terms_lookup_code%TYPE := null,
149: terms_id po_vendors.terms_id%TYPE := null,

Line 146: fob_lookup_code PO_HEADERS_ALL.fob_lookup_code%TYPE := null,

142: -- been modified to point to PO_HEADERS_ALL type.
143: ship_to_location_id PO_HEADERS_ALL.ship_to_location_id%TYPE := null,
144: bill_to_location_id PO_HEADERS_ALL.bill_to_location_id%TYPE := null,
145: ship_via_lookup_code PO_HEADERS_ALL.ship_via_lookup_code%TYPE := null,
146: fob_lookup_code PO_HEADERS_ALL.fob_lookup_code%TYPE := null,
147: pay_on_code PO_VENDOR_SITES_ALL.pay_on_code%TYPE := null,
148: freight_terms_lookup_code PO_HEADERS_ALL.freight_terms_lookup_code%TYPE := null,
149: terms_id po_vendors.terms_id%TYPE := null,
150: type_1099 PO_VENDORS.type_1099%TYPE := null,

Line 148: freight_terms_lookup_code PO_HEADERS_ALL.freight_terms_lookup_code%TYPE := null,

144: bill_to_location_id PO_HEADERS_ALL.bill_to_location_id%TYPE := null,
145: ship_via_lookup_code PO_HEADERS_ALL.ship_via_lookup_code%TYPE := null,
146: fob_lookup_code PO_HEADERS_ALL.fob_lookup_code%TYPE := null,
147: pay_on_code PO_VENDOR_SITES_ALL.pay_on_code%TYPE := null,
148: freight_terms_lookup_code PO_HEADERS_ALL.freight_terms_lookup_code%TYPE := null,
149: terms_id po_vendors.terms_id%TYPE := null,
150: type_1099 PO_VENDORS.type_1099%TYPE := null,
151: hold_flag PO_VENDORS.hold_flag%TYPE := null,
152: invoice_currency_code PO_VENDORS.invoice_currency_code%TYPE := null,

Line 324: l_ship_via_lookup_code PO_HEADERS_ALL.ship_via_lookup_code%TYPE;

320: l_api_name VARCHAR2(30) := 'DEFAULT_CPA';
321: l_terms_id PO_HEADERS.terms_id%TYPE;
322: l_fob_lookup_code PO_HEADERS.fob_lookup_code%TYPE;
323: l_freight_lookup_code PO_HEADERS.freight_terms_lookup_code%TYPE;
324: l_ship_via_lookup_code PO_HEADERS_ALL.ship_via_lookup_code%TYPE;
325: l_vs_terms_id PO_HEADERS.terms_id%TYPE;
326: l_vs_fob_lookup_code PO_HEADERS.fob_lookup_code%TYPE;
327: l_vs_freight_lookup_code PO_HEADERS.freight_terms_lookup_code%TYPE;
328: l_vs_ship_via_lookup_code PO_HEADERS_ALL.ship_via_lookup_code%TYPE;

Line 328: l_vs_ship_via_lookup_code PO_HEADERS_ALL.ship_via_lookup_code%TYPE;

324: l_ship_via_lookup_code PO_HEADERS_ALL.ship_via_lookup_code%TYPE;
325: l_vs_terms_id PO_HEADERS.terms_id%TYPE;
326: l_vs_fob_lookup_code PO_HEADERS.fob_lookup_code%TYPE;
327: l_vs_freight_lookup_code PO_HEADERS.freight_terms_lookup_code%TYPE;
328: l_vs_ship_via_lookup_code PO_HEADERS_ALL.ship_via_lookup_code%TYPE;
329:
330: BEGIN
331: -- Initialize API return status to success
332: x_return_status := FND_API.G_RET_STS_SUCCESS;

Line 830: p_conterms_exist_flag IN PO_HEADERS_ALL.conterms_exist_flag%TYPE,

826: PROCEDURE INSERT_CPA (
827: p_auction_header_id IN PON_AUCTION_HEADERS_ALL.auction_header_id%TYPE,
828: p_bid_number IN PON_BID_HEADERS.bid_number%TYPE,
829: p_sourcing_k_doc_type IN VARCHAR2,
830: p_conterms_exist_flag IN PO_HEADERS_ALL.conterms_exist_flag%TYPE,
831: p_document_creation_method IN VARCHAR2,
832: x_document_id OUT NOCOPY PO_HEADERS_ALL.po_header_id%TYPE,
833: x_document_number OUT NOCOPY PO_HEADERS_ALL.segment1%TYPE,
834: x_return_status OUT NOCOPY VARCHAR2

Line 832: x_document_id OUT NOCOPY PO_HEADERS_ALL.po_header_id%TYPE,

828: p_bid_number IN PON_BID_HEADERS.bid_number%TYPE,
829: p_sourcing_k_doc_type IN VARCHAR2,
830: p_conterms_exist_flag IN PO_HEADERS_ALL.conterms_exist_flag%TYPE,
831: p_document_creation_method IN VARCHAR2,
832: x_document_id OUT NOCOPY PO_HEADERS_ALL.po_header_id%TYPE,
833: x_document_number OUT NOCOPY PO_HEADERS_ALL.segment1%TYPE,
834: x_return_status OUT NOCOPY VARCHAR2
835: ) IS
836: l_rowid VARCHAR2(30);

Line 833: x_document_number OUT NOCOPY PO_HEADERS_ALL.segment1%TYPE,

829: p_sourcing_k_doc_type IN VARCHAR2,
830: p_conterms_exist_flag IN PO_HEADERS_ALL.conterms_exist_flag%TYPE,
831: p_document_creation_method IN VARCHAR2,
832: x_document_id OUT NOCOPY PO_HEADERS_ALL.po_header_id%TYPE,
833: x_document_number OUT NOCOPY PO_HEADERS_ALL.segment1%TYPE,
834: x_return_status OUT NOCOPY VARCHAR2
835: ) IS
836: l_rowid VARCHAR2(30);
837: l_po_header_id PO_HEADERS_ALL.po_header_id%TYPE;

Line 837: l_po_header_id PO_HEADERS_ALL.po_header_id%TYPE;

833: x_document_number OUT NOCOPY PO_HEADERS_ALL.segment1%TYPE,
834: x_return_status OUT NOCOPY VARCHAR2
835: ) IS
836: l_rowid VARCHAR2(30);
837: l_po_header_id PO_HEADERS_ALL.po_header_id%TYPE;
838: l_document_num PO_HEADERS_INTERFACE.document_num%TYPE;
839: l_current_org PO_SYSTEM_PARAMETERS.org_id%TYPE;
840: l_org_assign_rec PO_GA_ORG_ASSIGNMENTS%ROWTYPE;
841: l_org_row_id ROWID;

Line 1220: p_message => 'Before updating po_headers_all for conterms_exist_flag and document number');

1216: g_progress:= '412';
1217: IF g_debug_stmt THEN
1218: PO_DEBUG.debug_stmt(p_log_head => g_log_head||l_api_name,
1219: p_token => g_progress,
1220: p_message => 'Before updating po_headers_all for conterms_exist_flag and document number');
1221: END IF;
1222:
1223: --SQL WHAT: Updates Conterms_exist_flag, segment1 and document_creation_method
1224: --SQL WHY: To handle creation of an automatic document_number when the po_num_code is AUTOMATIC

Line 1230: UPDATE PO_HEADERS_ALL

1226: -- handled in PO_HEADERS_PKG_S0.Insert_Row table handler.
1227: -- As this file is not allowed to update for 11.5.10, added separate update statement.
1228: --SQl Join:None
1229:
1230: UPDATE PO_HEADERS_ALL
1231: SET conterms_exist_flag = decode(p_conterms_exist_flag,'Y','Y','N'),
1232: document_creation_method = p_document_creation_method,
1233: segment1 = x_document_num
1234: WHERE po_header_id = l_po_header_id;

Line 1240: p_message => 'Before updating po_headers_all for conterms_exist_flag and document number');

1236: g_progress:= '413';
1237: IF g_debug_stmt THEN
1238: PO_DEBUG.debug_stmt(p_log_head => g_log_head||l_api_name,
1239: p_token => g_progress,
1240: p_message => 'Before updating po_headers_all for conterms_exist_flag and document number');
1241: END IF;
1242:
1243: --Copy contract terms if sourcing doc had a template attached.
1244: IF (p_conterms_exist_flag = 'Y') THEN

Line 1378: p_conterms_exist_flag IN PO_HEADERS_ALL.conterms_exist_flag%TYPE,

1374: p_interface_header_id IN PO_HEADERS_INTERFACE.interface_header_id%TYPE,
1375: p_auction_header_id IN PON_AUCTION_HEADERS_ALL.auction_header_id%TYPE,
1376: p_bid_number IN PON_BID_HEADERS.bid_number%TYPE,
1377: p_sourcing_k_doc_type IN VARCHAR2,
1378: p_conterms_exist_flag IN PO_HEADERS_ALL.conterms_exist_flag%TYPE,
1379: p_document_creation_method IN PO_HEADERS_ALL.document_creation_method%TYPE,
1380: x_document_id OUT NOCOPY PO_HEADERS_ALL.po_header_id%TYPE,
1381: x_document_number OUT NOCOPY PO_HEADERS_ALL.segment1%TYPE
1382: ) IS

Line 1379: p_document_creation_method IN PO_HEADERS_ALL.document_creation_method%TYPE,

1375: p_auction_header_id IN PON_AUCTION_HEADERS_ALL.auction_header_id%TYPE,
1376: p_bid_number IN PON_BID_HEADERS.bid_number%TYPE,
1377: p_sourcing_k_doc_type IN VARCHAR2,
1378: p_conterms_exist_flag IN PO_HEADERS_ALL.conterms_exist_flag%TYPE,
1379: p_document_creation_method IN PO_HEADERS_ALL.document_creation_method%TYPE,
1380: x_document_id OUT NOCOPY PO_HEADERS_ALL.po_header_id%TYPE,
1381: x_document_number OUT NOCOPY PO_HEADERS_ALL.segment1%TYPE
1382: ) IS
1383: l_return_status VARCHAR2(1);

Line 1380: x_document_id OUT NOCOPY PO_HEADERS_ALL.po_header_id%TYPE,

1376: p_bid_number IN PON_BID_HEADERS.bid_number%TYPE,
1377: p_sourcing_k_doc_type IN VARCHAR2,
1378: p_conterms_exist_flag IN PO_HEADERS_ALL.conterms_exist_flag%TYPE,
1379: p_document_creation_method IN PO_HEADERS_ALL.document_creation_method%TYPE,
1380: x_document_id OUT NOCOPY PO_HEADERS_ALL.po_header_id%TYPE,
1381: x_document_number OUT NOCOPY PO_HEADERS_ALL.segment1%TYPE
1382: ) IS
1383: l_return_status VARCHAR2(1);
1384: l_api_name CONSTANT VARCHAR2(30) := 'create_cpa';

Line 1381: x_document_number OUT NOCOPY PO_HEADERS_ALL.segment1%TYPE

1377: p_sourcing_k_doc_type IN VARCHAR2,
1378: p_conterms_exist_flag IN PO_HEADERS_ALL.conterms_exist_flag%TYPE,
1379: p_document_creation_method IN PO_HEADERS_ALL.document_creation_method%TYPE,
1380: x_document_id OUT NOCOPY PO_HEADERS_ALL.po_header_id%TYPE,
1381: x_document_number OUT NOCOPY PO_HEADERS_ALL.segment1%TYPE
1382: ) IS
1383: l_return_status VARCHAR2(1);
1384: l_api_name CONSTANT VARCHAR2(30) := 'create_cpa';
1385: