Professional Documents
Culture Documents
===================================================================================
====================
Name : Update Blanket Purchase Agreement --Adding price breaks to existing line in
a BPA
Purpose : This plsql program is used to update BPA by adding price breaks through
PDOI : Import price catalog concurrent program
===================================================================================
====================
*/
DECLARE
-----------------------------------------------------------------------------------
-
--Define Mandatory column variables to insert into interface tables. Values to all
-- Variables need to be intialized with required data before running the script.
-----------------------------------------------------------------------------------
-
---------------------------------------------------------------------------------
--Header level information
---------------------------------------------------------------------------------
--This provides batch id which is used to run particular set of data
l_batch_id po_headers_interface.batch_id%TYPE := 100;
---------------------------------------------------------------------------------
--Line level information
---------------------------------------------------------------------------------
--Specifies the price override for the item
l_price_override po_line_locations_interface.price_override%TYPE := 10;
BEGIN
--- Fetching the maximum shipment number from line locations table for
the given header id and line no
FOR i IN (SELECT MAX(shipment_num) cnt
FROM po_line_locations_all pll,po_lines_all pol
where pll.po_line_id = pol.po_line_id
and pol.po_header_id = l_po_header_id
and pol.line_num = l_line_num
)LOOP
l_line_loc_num := i.cnt;
END LOOP ;
--Price Break Loop
FOR i IN 1..L_prc_brk_count LOOP
COMMIT;
EXCEPTION
END;