Login
Register

Home

Trainings

Fusion Blog

EBS Blog

Authors

CONTACT US

Receivables
  • Register

Oracle Gold Partners, our very popular training packages, training schedule is listed here
Designed by Five Star Rated Oracle Press Authors & Oracle ACE's.

webinar new

Search Courses

To create an address for Customer using APIs [so that you can invoice them], is a multi-step task as outlined in brief below.

Addresses in Oracle TCA are stored in table named HZ_LOCATIONS.

To create Locations, Oracle TCA provides an API named hz_location_v2pub.create_location
This API returns Location_id once a physical address has been created.

The location_id can then be used to create Party Site.
To create party site, use hz_party_site_v2pub.create_party_site.
When calling this API, we can pass "Party Site name" alongside the location_id to which this site is attached..
This API then returns Party_site_id.

This Party_site_id can further be passed to another API hz_party_site_v2pub.create_party_site_use, which is where we specify Site Usage like Correspondance/Bilable etc.


Next thing is to make a Customer Site, so that you can start billing to the customer.
Lets say you already know the customer Account Id[assuming it already exists ] and the Party Site id(as created above).
Now to create the Customer Site, use the API call as below.

declare
px_customer_acount_site_record hz_cust_account_site_v2pub.cust_acct_site_rec_type;
begin
         px_customer_acount_site_record.cust_account_id := 90000;--lets assume
         px_customer_acount_site_record.party_site_id := 4323342;--the party site created above
         px_customer_acount_site_record.LANGUAGE := 'US';
         px_customer_acount_site_record.created_by_module := 'XX_SIEBEL';
         px_customer_acount_site_record.orig_system_reference :=
                                                  v_sibel_custom_site_num || 'CALLCENTRE';
         hz_cust_account_site_v2pub.create_cust_acct_site (FND_API.G_TRUE,
                                                           px_customer_acount_site_record,
                                                           n_cust_acct_site_id, --returned
                                                           v_return_status, --To indicagte success
                                                           n_msg_count, --
                                                           v_msg_data);
end ;
      
The last step would be to create Customer Site Usage by calling API hz_cust_account_site_v2pub.create_cust_site_use


Anil Passi

Comments   

0 #1 vivek 2007-03-09 00:00
hi anil ur article is very nice but i want to create site with new locations suppose in one operating unit one site is already created with locations than i want to create new site with locations to anthoer operating unit

means user want to everything is same only location is diffrent for customer
for this they want to pass paramenter for location and want to create site automatically
how to use APIs please help me
thanks
Quote
0 #2 Anil Passi 2007-06-19 00:00
Hi Arun

In this case, you should use the update API during the second call, because you wish to modify an existing Customer record.

Than ks,
Anil
Quote
0 #3 Smitha 2007-06-19 00:00
Hi Anil,

I have a question in AR. How to import Customer Accounts? Like we have interface tables such as ra_customers_in terface_all for customer data and ra_customer_pro files_int_all for profiles. What is for Customer Acounts?
Quote
0 #4 Anil Passi 2007-06-19 00:00
Hi Smitha

You should use the TCA API instead of using the interface tables.

In TCA, first create a party and then create customer account

Meta link has plenty of examples

Tha nks,
Anil
Quote
0 #5 satya 2007-09-26 19:03
Hi Anil,

Can i have some articles or any material which helps me to understand the following
1. Creation of customers, parties, party_sites, customer accounts in applications from front end.
---> how it affects the tables or which tables it stores.
2. TCA
Quote
0 #6 Ankush 2008-03-07 07:47
Hi,
I am creating new location using API hz_location_v2p ub.create_locat ion.
But when i use hz_cust_account _site_v2pub.cre ate_cust_acct_s ite to create customer site it gives me error saying ORA-20000: APP-11028: Location "STATE COUNTY CITY
MAHARASHTR A PUNE" does not exist. Create a new location using the Tax Location and Rates form...

can u please help me.
Thanks,
Ank ush
Quote
0 #7 Keyur C Joshi 2008-03-07 11:47
Hello Anil,
While defining new customer account in Accounts Receivables, is it possible to use the existing customer addresses as bill to and ship to for the new customer site which is being created?

Thank s
Quote

Add comment


Security code
Refresh

Search Trainings

Fully verifiable testimonials

Apps2Fusion - Event List

<<  Apr 2024  >>
 Mon  Tue  Wed  Thu  Fri  Sat  Sun 
  1  2  3  4  5  6  7
  8  91011121314
15161718192021
22232425262728
2930     

Enquire For Training

Related Items

Fusion Training Packages

Get Email Updates


Powered by Google FeedBurner