|
|
Re: Customer conversion [message #431325 is a reply to message #431324] |
Mon, 16 November 2009 17:37 |
oraclefaqs1
Messages: 23 Registered: October 2008 Location: SC
|
Junior Member |
|
|
2nd part got solved, but I cudn't find any solution for the 1st question.
and 1 more what's wrong with this part of coding, it's erroring out in where clause saying invalid identifier
DECLARE
CURSOR cur_bill_customers
IS
SELECT *
FROM apps.xxar_c110_custstg c110
WHERE NVL (status, 'N') = 'N'
AND site_use_code = 'BILL_TO';
BEGIN
FOR cur_bill_customers_rec IN cur_bill_customers
LOOP
BEGIN
UPDATE apps.xxar_c110_custstg
SET orig_system_customer_ref =
'CUST' || cur_bill_customers_rec.orig_system_customer_ref,
orig_system_address_ref =
'CUST'
|| cur_bill_customers_rec.orig_system_customer_ref
|| '_'
|| 'ADRR'
|| cur_bill_customers_rec.orig_system_address_ref
WHERE customer_number =
cur_bill_customers_rec.orig_system_customer_ref
AND site_use_code = 'BILL_TO';
END;
END LOOP;
END;
/
[EDITED by LF: removed commented lines, reformatted code, applied [code] tags]
[Updated on: Tue, 17 November 2009 01:32] by Moderator Report message to a moderator
|
|
|
|
|