Create Customer Account Site fail ORA-01400
When creating customer account site in Oracle EBS r12.0.4, Error occur:
The following SQL error occurred: ORA-01400: cannot insert NULL into ("AR"."HZ_CUST_ACCOUNTS_M"."CUSTOMER_MERGE_HEADER_ID").
Can anyone help me solve this problem?
Thanks in advanced!
How do you create the customer account? From the application (if yes, mention the Navigation Path) or using an API (mention the API)?
The following SQL error occurred: ORA-01400: cannot insert NULL into ("AR"."HZ_CUST_ACCOUNTS_M"."CUSTOMER_MERGE_HEADER_ID").Does this happen when creating any customer account or with specific ones only?
Are you passing all the mandatory fields when creating the custom account?
Obtain the FRD log for details about the error.
Thanks,
Hussein
Similar Messages
-
Error while creating customer account sites from backend
I am creating Customer Account Sites using the TCA API from Toad.
I am getting the following error
The operating unit is either invalid or it cannot be derived. Please verify your Multi-Org profile options.
The Operating unit has been defined.
I am using the following code:
DECLARE
p_cust_acct_site_rec hz_cust_account_site_v2pub.cust_acct_site_rec_type;
x_return_status VARCHAR2(2000);
x_msg_count NUMBER;
x_msg_data VARCHAR2(2000);
x_cust_acct_site_id NUMBER;
BEGIN
p_cust_acct_site_rec.cust_account_id := 9462;
p_cust_acct_site_rec.party_site_id := 5473;
--p_cust_acct_site_rec.language := 'US';
p_cust_acct_site_rec.org_id := 126;
p_cust_acct_site_rec.created_by_module := 'TCA-EXAMPLE';
hz_cust_account_site_v2pub.create_cust_acct_site(
'T',
p_cust_acct_site_rec,
x_cust_acct_site_id,
x_return_status,
x_msg_count,
x_msg_data);
dbms_output.put_line(SubStr('x_return_status =
'||x_return_status,1,255));
dbms_output.put_line('x_msg_count = '||TO_CHAR(x_msg_count));
dbms_output.put_line(SubStr('x_msg_data = '||x_msg_data,1,255));
IF x_msg_count >1 THEN
FOR I IN 1..x_msg_count
LOOP
dbms_output.put_line(I||'. '||SubStr(FND_MSG_PUB.Get(p_encoded =>
FND_API.G_FALSE ), 1, 255));
END LOOP;
END IF;
END;
Thanks and Regards,
K tannaDuplicate post.
Error while creating customer account sites
Error while creating customer account sites -
Error While Creating Customer Account Site.
Hi ,
I am creating a customer thru API's.
I am succesffuly creating location,party,party site,party site use,customer account.But unable to create customer account site. I am getting the below error:
Unable to process your transaction. The operating unit is either invalid or it cannot be derived. Please verify your Multi-Org profile options.
Could anyone help me to resolve out this issue.Hi,
What is the application release?
Did you set the Application/Multi-org context properly before using this API?
Note: 732671.1 - 'Change PO API' Errors with 'Multi-Org profile options' as Org Context Is Not Set Correctly
Note: 420787.1 - Oracle Applications Multiple Organizations Access Control for Custom Code
Note: 209185.1 - How To Set the Applications Context (FND_GLOBAL.APPS_INITIALIZE)
Regards,
Hussein -
Error while creating customer account sites
I am creating Customer Account Sites using the TCA API from Toad.
I am getting the following error
The operating unit is either invalid or it cannot be derived. Please verify your Multi-Org profile options.
The Operating unit has been defined.
I am using the following code:
DECLARE
p_cust_acct_site_rec hz_cust_account_site_v2pub.cust_acct_site_rec_type;
x_return_status VARCHAR2(2000);
x_msg_count NUMBER;
x_msg_data VARCHAR2(2000);
x_cust_acct_site_id NUMBER;
BEGIN
p_cust_acct_site_rec.cust_account_id := 9462;
p_cust_acct_site_rec.party_site_id := 5473;
--p_cust_acct_site_rec.language := 'US';
p_cust_acct_site_rec.org_id := 126;
p_cust_acct_site_rec.created_by_module := 'TCA-EXAMPLE';
hz_cust_account_site_v2pub.create_cust_acct_site(
'T',
p_cust_acct_site_rec,
x_cust_acct_site_id,
x_return_status,
x_msg_count,
x_msg_data);
dbms_output.put_line(SubStr('x_return_status =
'||x_return_status,1,255));
dbms_output.put_line('x_msg_count = '||TO_CHAR(x_msg_count));
dbms_output.put_line(SubStr('x_msg_data = '||x_msg_data,1,255));
IF x_msg_count >1 THEN
FOR I IN 1..x_msg_count
LOOP
dbms_output.put_line(I||'. '||SubStr(FND_MSG_PUB.Get(p_encoded =>
FND_API.G_FALSE ), 1, 255));
END LOOP;
END IF;
END;
Thanks and Regards,
K tannaHi,
Please mention the application release along with the database version and OS.
Please see if ('Change PO API' Errors with 'Multi-Org profile options' as Org Context Is Not Set Correctly [ID 732671.1]) helps.
More details about setting the application context can be found in these docs.
Note: 209185.1 - How To Set the Applications Context (FND_GLOBAL.APPS_INITIALIZE)
Note: 420787.1 - Oracle Applications Multiple Organizations Access Control for Custom Code
Note: 462383.1 - SQL Queries and Multi-Org Architecture in Release 12
Note: 165042.1 - FAQ - Multiple Organizations Architechure (Multi-Org)
Thanks,
Hussein -
Create Contact details @ Customer Account Site
Hi guys
After loads of efforts I managed to create a contact @ Customer Account Site level using below API Call
DECLARE
p_cr_cust_acc_role_rec HZ_CUST_ACCOUNT_ROLE_V2PUB.cust_account_role_rec_type;
x_cust_account_role_id NUMBER;
x_return_status VARCHAR2(2000);
x_msg_count NUMBER;
x_msg_data VARCHAR2(2000);
BEGIN
-- NOTE:
-- must be unique CUST_ACCOUNT_ID, PARTY_ID,ROLE_TYPE
-- must be unique CUST_ACCT_SITE_ID, PARTY_ID,ROLE_TYPE
p_cr_cust_acc_role_rec.party_id := 2126134; --value for party_id from step 8>
p_cr_cust_acc_role_rec.cust_account_id := 999059; --value for cust_account_id from step 2>
p_cr_cust_acc_role_rec.primary_flag := 'Y';
p_cr_cust_acc_role_rec.role_type := 'CONTACT';
p_cr_cust_acc_role_rec.created_by_module := 'TCA_V2_API';
---For attaching the contact to a particular site
p_cr_cust_acc_role_rec.cust_acct_site_id := 29422; --Value for x_cust_acct_site_id from step >5
HZ_CUST_ACCOUNT_ROLE_V2PUB.create_cust_account_role(
'T',
p_cr_cust_acc_role_rec,
x_cust_account_role_id,
x_return_status,
x_msg_count,
x_msg_data);
dbms_output.put_line('***************************');
dbms_output.put_line('Output information ....');
dbms_output.put_line('***************************');
dbms_output.put_line('x_cust_account_role_id: '||x_cust_account_role_id);
dbms_output.put_line('x_return_status: '||x_return_status);
dbms_output.put_line('x_msg_count: '||x_msg_count);
dbms_output.put_line('x_msg_data: '||x_msg_data);
dbms_output.put_line('***************************');
IF x_msg_count >1 THEN
FOR I IN 1..x_msg_count
LOOP
dbms_output.put_line(I||'. '||SubStr(FND_MSG_PUB.Get(p_encoded => FND_API.G_FALSE ), 1, 255));
END LOOP;
END IF;
IF x_return_status = FND_API.G_RET_STS_SUCCESS THEN
COMMIT;
ELSE
ROLLBACK;
END IF;
END;
Now I want to attach "Address/Email/Phone number" to this contact @ the Account site level. Please let me know how and which APIs I need to call
Regards,
RajOkay I found the solution.
Reference material : How to Create Contact,Phone, Email under Communication tab for Customer Account Site using API [ID 985500.1]
docs.oracle.com/cd/B34956_01/current/acrobat/120hztig.pdf
Repeat Run --3. Create a physical location with customer account site level Address (ie, Specific contact address details). Note down x_location_id value
GET "x_party_id: " from "--8. Create a relation cont-org using party_id from step 7 and party_id from step 2"
Now Run "--4. Create a party site using party_id from step 2 and location_id from step 3" passing "x_party_id" from Step 8 & x_location_id from Step 3
Commit the changes and you will able to populate the account site specific contact person details
Regards,
rajesh -
Problem with creating customer account using TCA Java API
Hi,
I am trying to create customer account using TCA java API. i am getting exception saying PL/SQL numeric error: character to number conversion. but this error raises when calling API method
HzCustAccountV2Pub.createCustAccount.
can any body help me in solving this issue, any clue why this exception raises. i have tested even the code given in TCA API user guide. that code also gets same error.package client;
import java.math.BigDecimal;
import java.sql.Timestamp;
import java.sql.DriverManager;
import java.sql.SQLException;
import oracle.jdbc.driver.OracleConnection;
import oracle.jdbc.driver.OracleCallableStatement;
import oracle.jdbc.driver.OracleTypes;
import oracle.apps.ar.hz.v2api.HzCustAccountV2Pub;
import oracle.apps.ar.hz.v2api.HzPartyV2Pub;
import oracle.apps.ar.hz.v2api.HzCustomerProfileV2Pub;
class CreateCustAccount {
public static void main(String[] args) throws Exception {
HzCustAccountV2Pub.CustAccountRec p_cust_account_rec = new HzCustAccountV2Pub.CustAccountRec();
HzPartyV2Pub.PersonRec p_person_rec = new HzPartyV2Pub.PersonRec();
HzCustomerProfileV2Pub.CustomerProfileRec p_customer_profile_rec = new HzCustomerProfileV2Pub.CustomerProfileRec();
BigDecimal[] x_cust_account_id = new BigDecimal[1];
String[] x_account_number = new String[1];
BigDecimal[] x_party_id = new BigDecimal[1];
String[] x_party_number = new String[1];
BigDecimal[] x_profile_id = new BigDecimal[1];
String[] x_return_status = new String[1];
BigDecimal[] x_msg_count = new BigDecimal[1];
String[] x_msg_data = new String[1];
try
Class.forName ("oracle.jdbc.driver.OracleDriver");
OracleConnection conn = (OracleConnection) DriverManager.getConnection ("jdbc:oracle:thin:@ebiztst.trianz.int:1526:PATCH","apps","apps");
HzCustAccountV2Pub custaccountV2Pub = new HzCustAccountV2Pub();
p_cust_account_rec.account_name = "John Ac";
p_person_rec.person_first_name = "John";
p_person_rec.person_last_name = "Smith";
p_cust_account_rec.created_by_module = "TCA_EXAMPLE";
HzCustAccountV2Pub.createCustAccount(
conn
, "T"
, p_cust_account_rec
, p_person_rec
, p_customer_profile_rec
, "F"
, x_cust_account_id
, x_account_number
, x_party_id
, x_party_number
, x_profile_id
, x_return_status
, x_msg_count
, x_msg_data
System.out.println( "x_return_status = " + x_return_status[0] );
System.out.println( "x_msg_count = " + x_msg_count[0] );
System.out.println( "x_msg_data = " + x_msg_data[0]);
if (x_msg_count[0].intValue() > 1) {
OracleCallableStatement ocs = null;
for (int i=0; i<x_msg_count[0].intValue(); i++) {
ocs = (OracleCallableStatement)conn.prepareCall(
"begin ? := fnd_msg_pub.get( p_encoded => ’F’ ); end;");
ocs.registerOutParameter(1, OracleTypes.VARCHAR);
ocs.execute();
System.out.println((i + 1) + ". " + ocs.getString(1));
conn.close();
} catch (ClassNotFoundException e) {
System.out.println("Driver Not Found: " + e);
} catch (SQLException e) {
System.out.println("SQL Error." + e);
} -
Customer Account Sites page behavior
Hi
I am novice to OAF. I will take my best shot to explain the problem.
Oracle Applications : 12.0.4
Problem : Customer Account Sites page is displaying account sites in DESCENDING order of PURPOSES instead of ASCENDING.
All the times, account sites were displayed in Ascending order of purposes. This will list Bill-To sites first and then 'Ship-To'. All of a sudden, account sites are started showing in reverse order listing 'Ship-To' first and then 'Bill-To'.
There are no customizations, patches, personalizations applied to this form.
Same form works in all other instances other than Production as expected (listing Bill-To sites first).
What could be the reason so that sorting order of data element PURPOSES to change from Ascending to Desending? How to fix it?
Please help.
Regards,This is happening for all users.
As a work around... User are using either clicking on Purpose column to sort again or filtering out 'Bill-To' sites. This is causing them irritation.
Regards, -
IStore: Customer account sites with multiple price list
Hi,
We have an account with many sites, each site uses different price list. Say 1 site uses FR price list other uses GR price list.
Users are suppose to use specific price list only. How can we have the users use their specific price list.
Thanks in AdvanceHi,
For iStore you can setup specialty site based price lists and/or customer account level price lists.
To setup the customer account level price lists -
Set the profile option "IBE: Use Customer Account Price List" at the site level to Yes.
Link the customer to the price list -
1. Login to Oracle Forms and select Receivables Manager responsibility.
2. Navigate to Customers > Standard.
3. Select an account based on Customer Name, Account Number, or Organization Number.
4. Press the Find button and select an address from the popup window; select Ok.
5. Select the Order Management tab.
6. Enter the appropriate price list in the Price List field, and save the form.
7. Bounce the middle-tier and Web Cache servers.
Reference:
Oracle iStore Implementation and Administration Guide Release 12.1 (Part No. E13575-06)
Chapter 10 Implementing Pricing
Page 10-21
Section Implementing Customer Account Price Lists
OR
You can setup modifiers for Customer (ie Customer Name) and Store (Minisite_ID) on the price list(s)
For this setup you would need to set both "IBE: Use Customer Account Price List" and "IBE: Use Price List Associated with Specialty Site" to No.
Thank you,
Deborah
Edited by: user702249 on Apr 10, 2013 6:56 PM -
Create custom rule: Looking for ORA errors in the alert log
I would like to create a rule to notify me when ORA errors are generated to the alert log. When I try to create a rule, I seem to only be able to choose from predefined lists. Has anyone configured a rule for this?
Grrr. This is for 10.2 Grid:
Go to databases --> select your database
Under Diagnostic summary, you'll see:
Alert Log 28-Dec-2006 09:19:48
The date part is a clickable link, click on it. Scroll to the bootom of the next page and click on:
"Generic Alert Log Error Monitoring Configuration"
Now read the page very carefully, its all self explanatory. The reason who haven't had some errors reported is because of that filter. Now set it up the way you want it.
Good luck
Bazzza -
API and table of Account Site Contact
hi,
i can create the Account Site Contact from Customer > Customer Account > Account Site.
What is the API that i can call to create/update this? and what is the table that store this?hi Hussein,
i have run the API to create a new contact, but i go to screen, i could not see the new contact that i created.
p_person_rec.person_first_name := 'Ash';
p_person_rec.person_last_name := 'Lee';
p_person_rec.created_by_module := 'TCA_V2_API';
HZ_PARTY_V2PUB.create_person (p_init_msg_list=>'T'
,p_person_rec=>p_person_rec
,x_party_id=>x_party_id
,x_party_number=>x_party_number
,x_profile_id=>x_profile_id
,x_return_status=>x_return_status
,x_msg_count=>x_msg_count
,x_msg_data=>x_msg_data);
DBMS_OUTPUT.put_line('creating PERSON with PARTY id:' || x_party_id);
if x_return_status='E' then
DBMS_OUTPUT.put_line('x_msg_count = ' || TO_CHAR(x_msg_count));
DBMS_OUTPUT.put_line(SUBSTR('x_msg_data = ' || x_msg_data, 1, 255));
IF x_msg_count > 1 then
FOR i IN 1 .. x_msg_count loop
DBMS_OUTPUT.put_line(i|| '. '|| SUBSTR(fnd_msg_pub.get(p_encoded => fnd_api.g_false),1,255));
END LOOP;
END IF;
rollback;
return;
end if;
p_org_contact_rec.created_by_module := 'TCA_V2_API';
p_org_contact_rec.party_rel_rec.subject_id:= x_party_id; -- value of party_id from CREATING PERSON
p_org_contact_rec.party_rel_rec.subject_type :='PERSON';
p_org_contact_rec.party_rel_rec.subject_table_name:='HZ_PARTIES';
p_org_contact_rec.party_rel_rec.object_id:= 10447; -- value of party_id from CREATING CUST ACC
p_org_contact_rec.party_rel_rec.object_type:='ORGANIZATION';
p_org_contact_rec.party_rel_rec.object_table_name:='HZ_PARTIES';
p_org_contact_rec.party_rel_rec.relationship_type:='CONTACT';
p_org_contact_rec.party_rel_rec.relationship_code:='CONTACT_OF';
p_org_contact_rec.party_rel_rec.status := 'A';
p_org_contact_rec.contact_number := '8888';
--For Organization Address level contact, assign following value:
p_org_contact_rec.party_site_id:=357430; value of party_site_id from step 3
HZ_PARTY_CONTACT_V2PUB.create_org_contact (p_init_msg_list=>'T'
,p_org_contact_rec=>p_org_contact_rec
,x_org_contact_id=>x_corg_contact_id
,x_party_rel_id=>x_cparty_rel_id
,x_party_id=>x_cparty_id
,x_party_number=>x_cparty_number
,x_return_status=>x_return_status
,x_msg_count=>x_msg_count
,x_msg_data=>x_msg_data);
DBMS_OUTPUT.put_line('creating ORG CONTACT ID:' || x_corg_contact_id);
output is :
creating PERSON with PARTY id:11504
creating ORG CONTACT ID:2036
SELECT org_contact_id,party_relationship_id,contact_number FROM HZ_ORG_CONTACTS where party_relationship_id in (3090,3091,3093);
2031 3090 1041
2033 3091 1234567
2036 3093 8888
select relationship_id,subject_id,subject_type,subject_table_name,object_id,object_type,object_table_name,party_id,relationship_code from hz_relationships where relationship_id in (3090,3091,3093);
3090 10447 ORGANIZATION HZ_PARTIES 10496 PERSON HZ_PARTIES 10497 CONTACT
3090 10496 PERSON HZ_PARTIES 10447 ORGANIZATION HZ_PARTIES 10497 CONTACT_OF
3091 10447 ORGANIZATION HZ_PARTIES 10502 PERSON HZ_PARTIES 10503 CONTACT
3091 10502 PERSON HZ_PARTIES 10447 ORGANIZATION HZ_PARTIES 10503 CONTACT_OF
3093 10447 ORGANIZATION HZ_PARTIES 11504 PERSON HZ_PARTIES 11505 CONTACT
3093 11504 PERSON HZ_PARTIES 10447 ORGANIZATION HZ_PARTIES 11505 CONTACT_OF
select party_id,party_name,party_type,created_by_module from hz_parties where party_id in (10496,10502,11504);
10496 George ACCOUNTS DEPARTMENT PERSON HZ_CPUI
10502 Pak Budi PERSON HZ_CPUI
11504 Ash Lee PERSON TCA_V2_API
George ACCOUNTS DEPARTMENT with contact_number 1041 can be seen on screen
Pak Budi with contact_number 1234567 can be seen on screen
Ash Lee with contact_number 8888 CANNOT be seen on screen. -
Creation part of Customer Account Group
hi...
When we have going to create customer account group why we have to start with Y & Z why dont we start with numbers, can any one explain plz...
Regards.
SantoshHi
We use a prefix of Y or Z only when we are defining our own object like sales doc. or item category likewise account group.
they will not be overwritten while upgrading the system also sap recommends to use Z for modifications done in a standard program. Copying the standard one and naming it with Z.
regards
Prashanth -
EBS Create Customer API 11.5.10.2
Is there an API for creating customer in 11.5.10.2. If it is there, will that be supported by Oracle.
Thanks,
NPlease see these docs.
How to create Customer Account Relationship via TCA API? [ID 224494.1]
How To Create A Customer Via TCA API ? [ID 189369.1]
How To Create A Customer Via TCA API [ID 159393.1]
TCA Customer Interface & API White Paper [ID 201242.1]
Using TCA API's Including Examples [ID 201243.1]
Oracle Applications Multiple Organizations Access Control for Custom Code [ID 420787.1]
Thanks,
Hussein -
Bapi to create cusomer accounting
Hi all,
can anyonre tel me the bapi to Create Customer (Accounting)
Thanks<b>BAPI_CUSTOMER_CREATE</b>
Create Customer Master Online
With this method, you can create or extend a customer.
<b>BAPI_CUSTOMER_CREATEFROMDATA</b>
Note: In SAP R/3 4.5A, this BAPI is replaced by BAPI
"<b><i>BAPI_CUSTOMER_CREATEFROMDATA1</i></b>", which takes full account of the
integration of customer address data in Central Address Management
(CAM). As this BAPI ("BAPI_CUSTOMER_CREATEFROMDATA") is being replaced,
it will only be supported for 2 releases after SAP R/3 4.5A.
This method of the "Customer" business object can be used to create a
customer in SAP R/3 on the basis of entered address data (import
parameter PI_ADDRESS).
The entered address data has a direct influence on the master data,
company code data and contact person data. One contact person record is
created for the customer to be created.
All the master data, company code data, sales area data, and tax code
data that is not entered is adopted from a reference customer, and from
sales area data (sales organization, distribution channel and division -
import parameter PI_COPYREFERENCE).
(Exception: Currency field of the sales area data. This field can be
transferred to the BAPI via structure PI_ADDRESS via the currency fields
(in R/3 or in ISO format).
If both currency fields are transferred to the BAPI, the currency field
in R/3 format has priority.
If both currency fields are blank when transferred to the BAPI, the
currency field is determined using table T005, on the basis of the
country that is specified.
Message was edited by:
Chandrasekhar Jagarlamudi -
Customer account creation (FD01)
When I try to create Customer account I am getting the following error message.
"Entry DB01 0000200050 does not exist in SKB1 - Check your entry"
DB01 is my company code. Can anyone tell me how to resolve this issue.
Thanks for your help.Hi,
My understanding of your problem is as folows:
Table SKB1 is GL account master for Company code
You are creating customer by giving the reconciliation account 200050. This account you have created at the Chart of accounts level but you may not have extended this to company code level.(that is the account is incomplete,it has been created at the Chart of accounts level but not at the Company code level)
Also checkout that you have assigned the Field status group G067 for the GL account.
Use T.code FSP1/FS00 to complete this GL account i.e, extend this to your company code DB01 and try saving again the customer master.
Hope it resolves your problem
Regards
Aravind
<b>PLEASE DO ASSIGN POINTS IF USEFUL</b> -
R12: How to create Customer contact at party/account-site level
Hello,
I am working on a customer conversion where the legacy system stores customer contact at the address id (i.e. party site) level.
Using various HZ APIs I have been able to create a party, customer account, location, party site, account site and account site use.
Now, I want to create contacts at the party site or account site level. Which API is used to create a contact? (I found a note 985500.1 but it shows creation of contact point such as a phone number or email but not the contact itself).
Any pointers appreciated.
ManishHZ_PARTY_CONTACT_V2PUB
Maybe you are looking for
-
Hi FICO Gurus, I am a new student in FICO, here i have a question as following, ask for help, I m doing F-51, but i can not see any open items in GL. I've created invoice via FB60, and the tax account has been configured also. can anyone give me some
-
I wish to e-mail my resume to PC users. I have it in Appleworks 6.2.9 using Optima typeface - also with indents, etc. I would like to be able, for presentation purposes, to send it this way. Is this possible or do I need to convert it to another Wind
-
How do I make the view of a pdf from my website open in the original size.
when someone goes onto my website they can view our latest sales flyer by opening up a pdf. When you open the pdf its really big and needs to be ajdusted to a regular size so it can be read. How do I make my pdf open from my website in a readable siz
-
How to transfer books between ipad and pc
How to transfer books between ipad and the windows pc using iBooks. REGARDS Nadunbat.
-
Dear expert how can i find closed po's in the system i.e those po's whose delievery is completed but there is no goods reciept for that PO Regards