Documente Academic
Documente Profesional
Documente Cultură
o
c
I
D
TCA API: How to Change the Account Number
To
in Customer Register via API ? (Doc ID Bottom
1134034.1)
In this Document
Goal
Solution
APPLIES TO:
GOAL
NOTE: You can use the same API shown below to update other fields in the customer
account record.
SOLUTION
The account number for an account can be updated if AUTO CUSTOMER NUMBERING
is off, but cannot be updated if AUTO CUSTOMER NUMBERING is on.
In order to change the Account Number for an existing customer, you first need to
check if Auto Customer Numbering is off:
Following illustrates how this is done, please note all ID values are specific to the test
environment:
PARTY_ID PARTY_NAME
---------- ----------------------
303602 Jackie CUST01
Check the current value of Account Number, so you can verify after if the value has
indeed changed:
exec dbms_application_info.set_client_info('204');
DECLARE
p_cust_account_rec HZ_CUST_ACCOUNT_V2PUB.CUST_ACCOUNT_REC_TYPE;
p_object_version_number NUMBER := 6;
x_return_status VARCHAR2(2000);
x_msg_count NUMBER;
x_msg_data VARCHAR2(2000);
BEGIN
fnd_client_info.set_org_context('204');
p_cust_account_rec.cust_account_id := 96166;
p_cust_account_rec.account_name := FND_API.G_MISS_CHAR;
p_cust_account_rec.account_number :='5447Change';
hz_cust_account_v2pub.update_cust_account (
'T',
p_cust_account_rec,
p_object_version_number,
x_return_status,
x_msg_count,
x_msg_data);
dbms_output.put_line('x_return_status =
'||SUBSTR(x_return_status,1,255));
dbms_output.put_line('x_msg_count = '||TO_CHAR(x_msg_count));
dbms_output.put_line('Object Version Number
='||TO_CHAR(p_object_version_number));
dbms_output.put_line('x_msg_data = '|| SUBSTR (x_msg_data,1,255));
END;
/
Output shows:
x_return_status = S
x_msg_count = 0
Object Version Number =7
x_msg_data =
Oracle E-Business Suite > Master Data Management > Customer > Oracle Trading Community > APIs > API Issues
K
e
y
w
o
r
d
s
ACCOUNT NUMBER; API; HZ_CUST_ACCOUNT_V2PUB; TCA
Back to Top
f1 !-15qiu9a6g9
OK
OKCancel