TCA API

Is there any flay which we can set inorder to stop commit after inserting data into tables using tca api?

Hi ketha,
AM also working on the Same issue, but am getting some error . So,if you passed this work successfully , can you post the Script .

Similar Messages

  • R12 Customer Conversion by using TCA API  OR  Standard interface table ?

    R12 Customer Conversion should be done via  TCA API  OR  Standard interface table? Why ?
    Which approach is more suitable  kindly let us know your thoughts.

    We have used interface tables just to have better control and reprocessing abilities. You may need to be little careful about the TCA tables.

  • Which one to use - Customer Interface or TCA APIs? And why?

    Hi,
    Please let me know the answer for the following questions. I have a legacy system in 11.0.3 (which does not have the TCA architecture) and the customers have to be moved to R12. I could get the details in different flat files for the import from source system. Which is the approach I should use?
    1) What does customer interface does NOT do which the TCA APIs can do?
    2) Doesn’t the customer interface use the TCA API within it?
    3) Is it better to use APIs than customer interface? If so, why and what are the criterions I should look for for deciding on what to use?
    Highly appreciate the help.
    Thanks,
    Dinesh

    Hello Dinesh,
    To answer your questions below:
    user3331828 wrote:
    1) What does customer interface does NOT do which the TCA APIs can do?The Customer Interface tables do the same things that TCA API does.
    user3331828 wrote:
    2) Doesn’t the customer interface use the TCA API within it?I have never been able to open a Spawned program to see which packages are used. Not sure if it uses the same API packages.
    user3331828 wrote:
    3) Is it better to use APIs than customer interface? If so, why and what are the criterions I should look for for deciding on what to use?Customer interface might be easier than the to implement than the use of API..
    For customer interface, just right a program to validate the source data and insert into open interface table, submit the import program and view output for errors. Much easy to maintain than API.
    API need a certain level of programming and you will need to investigate for all the flow of creating a customer and their corresponding create procedure to call..
    Hope this help,
    Vik

  • AR Customer Interface (RACUST) v.s. TCA APIs

    Good afternoon,
    Our users are asking us to import columns that do not exist in the RA_CUSTOMERS_INTERFACE_ALL table.  From reviewing mettalink documentation it looks like we have more options with the TCA APIs.  Do the TCA APIs (12.1.3) cover everything (including bank account information) that is handled by RACUST?    If yes, do you recommend exclusively using TCA APIs or is a hybrid of the two processes better.  If anyone has any experience with this I would appreciate your comments.
    Thanks,
    Tam

    990027 wrote:
    Did YOu check the mutil_org_category ( Single, Null, Multiple) of your conc program?This is an old thread and I believe there is no point in bringing it up.
    Thanks,
    Hussein

  • TCA API HZ_CUST_ACCT_BO_PUB - sample call

    Hi All,
    Do anyone have sample call to use this TCA API, HZ_CUST_ACCT_BO_PUB.
    I couldn't find any sample how to call this api for creating customer account business object.
    Any help on this is highly appreciated.
    Thanks
    Mouly

    I think that may be your only option. I haven't implemented this using the Apps Adapter but in order to get this functionality you need to have implmented the security architecture where you login as an Apps User, not APPS.
    I would raise a SR for this as this may be a bug.
    cheers
    James

  • Passing Database Constant as a default value to EBS TCA API??

    My synch BPEL process calls EBS TCA (Trading Community Architecture) APIs via Apps Adapter to create and update Organizations (Parties) and Customers (Accounts) accordingly. TCA provides two types of APIs to do the same job - one uses record types and tables as parameters, while the other uses object types as parameters and is called Business Object(BO) API. I am using BO for my solution.
    One of the features of the Update API (hz_org_cust_bo_pub.*update*orgcust_bo) is you can pass a database constant (FND_API.G_MISS_CHAR) as a parameter value in order to nullify an existing value. Ex: AddressLine2 for a customer address has now changed and does not exists anymore. In order to update and existing value to NULL, you are required to pass one of the following constants as a parameter value.
    Following is a formal description of these optional parameter values from the TCA Reference document.....
    Optional IN parameters do not have default values. An attribute value that is not
    passed in is assumed to have a default of null for a Create API. For an Update API, if a
    particular attribute value is not passed into the API, then the database retains the
    existing value. In order to set a database value to null, the calling program must
    explicitly set the attribute value to one of the following constants, based on the data
    type of the attribute.
    +• FND_API.G_MISS_NUM for NUMBER type. (or FND_API.G_NULL_NUM)+
    +• FND_API.G_MISS_CHAR for VARCHAR2 type. (or FND_API.G_NULL_CHAR)+
    +• FND_API.G_MISS_DATE for DATE type. (or FND_API.G_NULL_DATE)+
    ISSUE:
    I am unable to pass and have the value FND_API.G_NULL_CHAR be treated as a constant by the API. When this value is passed by the BPEL process to the Apps Adapter (API) it gets passed as a string literal, as such, does not get treated as a database constant by the API. Also, on creating the apps adapter for this particular API (TCA BO) a wrapper program is NOT created. So, I can't modify the wrapper (as it does not exist) to pass this FND_API constant. The only option I can currently think of is to write my own custom PL/SQL package that calls the standard API and in turn have the custom package be called by the apps adapter. But, I am hoping this is not the only option, it takes away several benefits.
    Any thoughts will be greatly appreciated.
    ilyas

    I think that may be your only option. I haven't implemented this using the Apps Adapter but in order to get this functionality you need to have implmented the security architecture where you login as an Apps User, not APPS.
    I would raise a SR for this as this may be a bug.
    cheers
    James

  • TCA API's to create and update employee vendors

    Hi All,
    We are doing an upgrade from 11.5.9 to R12 and I am looking for the Trading Community Architecture API's to create and update employee vendors for the HR Interface.
    We also need to change to use the Cash Management API's to create and Update Bank Accounts.
    Please help.
    Thanks in advance
    Regards,
    Sonia

    Hi Srini,
    Can you help me with the API's under Financials Receivables suite -> Trading Community in the Intergration Repository responsibilty? I am looking for the API's to create and update employee vendors
    Thanks so much
    --Sonia                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • TCA API create_location creates locations irrespective of the address style

    Hi All,
    We are using Trading Community Architecture API for customer conversion. We have address styles setup for Canada and US and we have attached these address styles to the respective countries in the territories window.
    But when we use create_location API for creating location and then a party site for it, it allows us to create the locations even when we dont pass in a value for the REQUIRED fields setup at the address style. We expected it to error out.
    Does anyone have idea about how this works. We want the API to validate the addresses we enter for locations with the address styles we set up.
    ketha

    You can create a wrapper package on top of the API (hr_location_api.create_location)
    In the wrapper package you set all the values dynamically based on your requirements(say the style and add_line columns are populated on your conditions) and then you call the API.
    Does that not work ?

  • Created Role responsibility using TCA API but couldn't view it from Forms

    Hi All,
    Created Role responsibilities using HZ_CUST_ACCOUNT_ROLE_V2PUB.create_role_responsibility. API returned responsibility_id and I could check record in HZ_ROLE_RESPONSIBULITY table. But when I view it from Contact Roles screen, No value but If I click on the field then value appears on screen.
    I am setting below values. Can you please share your thoughts on it.
    l_role_responsibility_rec_type.cust_account_role_id:=335599;
    l_role_responsibility_rec_type.responsibility_type:='DELIVER_TO';
    l_role_responsibility_rec_type.created_by_module:='API_V2';
    HZ_CUST_ACCOUNT_ROLE_V2PUB.create_role_responsibility (
    p_init_msg_list => FND_API.G_TRUE,
    p_role_responsibility_rec => l_role_responsibility_rec_type,
    x_responsibility_id=> x_resp_id,
    x_return_status =>x_return_status,
    x_msg_count =>x_msg_count,
    x_msg_data => x_msg_data
    Thanks
    Vara

    Add the following java script in the submit button click event
                         var cURL = enter the WSDL url generated
         var service = SOAP.connect(cURL);
         xfa.connectionSet.DataConnection.execute(0);

  • 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);
    }

  • Error in Oracle API  HZ_CUST_ACCOUNT_V2PUB.create_cust_account

    Error in Oracle API HZ_CUST_ACCOUNT_V2PUB.create_cust_account
    Column account_number must have a value.
    why?

    What is the apps version ?
    Have you gone through these notes:
    Using TCA API's Including Examples [ID 201243.1]
    How To Create A Customer Via TCA API [ID 159393.1]

  • Unable to create Supplier as Employee using R12 API

    Hi,
    I am creating supplier as amployee by uing the API and pasting the Annonimus API code and its details below.
    declare
      x_vendor_site_id NUMBER;
      x_return_status  VARCHAR2(1);
      x_msg_count      NUMBER;
      x_msg_data       VARCHAR2(2000);
      l_vendor_rec     ap_vendor_pub_pkg.r_vendor_rec_type;
      x_vendor_id      NUMBER;
      X_PARTY_ID       NUMBER;
      BEGIN
    for c in (select employee_id,location_id,party_id,organization_id from
    PER_EMPLOYEES_X pex
    where not exists
    (select 1
    from po_vendors
    where employee_id=pex.employee_id
    and employee_id=1198)
    loop
    l_vendor_rec.employee_id := c.employee_id;
    l_vendor_rec.VENDOR_TYPE_LOOKUP_CODE := 'EMPLOYEE';
    --mo_global.set_policy_context('S',c.organization_id);
    AP_VENDOR_PUB_PKG.Create_Vendor
    (      p_api_version => 1,
         x_return_status     => x_return_status,
         x_msg_count     => x_msg_count,
         x_msg_data     => x_msg_data,
         p_vendor_rec=> l_vendor_rec,
         x_vendor_id => x_vendor_id,
         x_party_id => x_party_id
      IF x_return_status = apps.FND_API.G_RET_STS_SUCCESS
      THEN
      commit;
      dbms_output.put_line('--------------------------------------');
      dbms_output.put_line('Supplier created:'||x_vendor_id); 
      ELSE
      dbms_output.put_line ('Creation of Supplier Failed with the error :'||x_msg_data||'  '||FND_MSG_PUB.count_msg);
         FOR i IN 1..FND_MSG_PUB.count_msg
    LOOP
    DBMS_OUTPUT.put_line(FND_MSG_PUB.Get(p_msg_index =>i,p_encoded =>'F'));
    end loop;
    END IF;
    END LOOP;
      END;
    Error : Am getting the error saying that
    "Supplier record cannot be updated.Either the Employee ID/Info is incorrect or the employee associated with this supplier is terminated".
    When i checked in the DB this employee is an active employee with us.
    Could any one please help me by providing your suggestion on this with Priority.
    Looking for your answer soon.
    Thanks,
    Surya.

    Hi;
    All APIs are listed in Oracle Integration Repository
    http://irep.oracle.com/index.html
    API User Notes - HTML Format [ID 236937.1]
    R12.0.[3-4] : Oracle Install Base Api / Open Interface Setup Test [ID 427566.1]
    Oracle Trading Community Architecture API User Notes, June 2003 [ID 241320.1]
    Technical Uses of Customer Interface and TCA-API [ID 269121.1]
    "12: How To Access API References via the Oracle Integration Repository" [ ID 462586.1]
    "Oracle Integration Repository Documentation Resources Release 12" [ ID 396116.1]
    Pelase also check below:
    Api's in EBS
    http://forums.oracle.com/forums/thread.jspa?forumID=39&threadID=984534&messageID=3890192#3890192
    http://sairamgoudmalla.blogspot.com/2009/05/script-to-find-oracle-apis-for-any.html
    API
    http://forums.oracle.com/forums/thread.jspa?threadID=1038379&tstart=0
    List of API
    http://forums.oracle.com/forums/message.jspa?messageID=4198097#4198097
    Oracle Common Application Components API Reference Guide
    download.oracle.com/docs/cd/B25284_01/current/acrobat/jta115api.pdf
    List of APIs and open interface R12
    http://forums.oracle.com/forums/thread.jspa?messageID=2340033
    Regard
    Helios

  • How to import order from Interface table using Api Order Import

    Hi All
    I am using oracle EBus R12.
    I was working in Data migration in Order management.
    I have manually entered data in Interface table ie (oe_header_iface_all) and (oe_lines_iface_all)
    And i have given the order_source_id as 2 and order_source as COPY.
    And after that i ran the concurrent program with parameter as COPY but the concurrent program does'nt picks the order in the interface.
    Can any one please tell the steps in OM.
    Thanks & Regards
    Srikkanth.M

    Hi;
    please check:
    http://sureshvaishya.blogspot.com/2009/04/order-import-using-api.html
    Also i suggest see:
    http://irep.oracle.com/index.html
    API User Notes - HTML Format [ID 236937.1]
    R12.0.[3-4] : Oracle Install Base Api / Open Interface Setup Test [ID 427566.1]
    Oracle Trading Community Architecture API User Notes, June 2003 [ID 241320.1]
    Technical Uses of Customer Interface and TCA-API [ID 269121.1]
    http://www.google.com.tr/#hl=tr&source=hp&q=Api+Order+Import+&oq=Api+Order+Import+&aq=f&aqi=&aql=&gs_sm=e&gs_upl=469l469l0l1l1l0l0l0l0l0l0ll0&fp=87c57485fd170fd2&biw=1259&bih=793
    Regard
    Helios

  • API to close purchase documents and to update blanket agreement amount

    Hi,
    Are there any API's to close the standard purchase order and blanket agreements.
    Also do we have any API to update the blanket agreement amount.
    Regards,
    Amitesh

    Hi;
    All APIs are listed in Oracle Integration Repository
    http://irep.oracle.com/index.html
    API User Notes - HTML Format [ID 236937.1]
    R12.0.[3-4] : Oracle Install Base Api / Open Interface Setup Test [ID 427566.1]
    Oracle Trading Community Architecture API User Notes, June 2003 [ID 241320.1]
    Technical Uses of Customer Interface and TCA-API [ID 269121.1]
    Pelase also check below:
    Api's in EBS
    Re: Api's in EBS
    http://sairamgoudmalla.blogspot.com/2009/05/script-to-find-oracle-apis-for-any.html
    API
    Fixed Asset API
    List of API
    Re: List of APIs
    Oracle Common Application Components API Reference Guide
    download.oracle.com/docs/cd/B25284_01/current/acrobat/jta115api.pdf
    List of APIs and open interface R12
    Re: List of APIs and open interface R12
    Regard
    Helios

  • Any Oracle API to Finally close the PO Shipments

    Hi,
    I have the requirement of Finally close the Number of PO shipments,
    I know there is a API (PO_ACTIONS.CLOSE_PO API )can be used to Finally close the PO at header level.
    Is there any sepecific API to finally close the PO shipments or how i can achive this?
    Please pour your thoughts.
    Thanks,
    Subash

    Hi;
    All APIs are listed in Oracle Integration Repository
    http://irep.oracle.com/index.html
    API User Notes - HTML Format [ID 236937.1]
    R12.0.[3-4] : Oracle Install Base Api / Open Interface Setup Test [ID 427566.1]
    Oracle Trading Community Architecture API User Notes, June 2003 [ID 241320.1]
    Technical Uses of Customer Interface and TCA-API [ID 269121.1]
    Pelase also check below:
    Api's in EBS
    Re: Api's in EBS
    http://sairamgoudmalla.blogspot.com/2009/05/script-to-find-oracle-apis-for-any.html
    API
    Fixed Asset API
    List of API
    Re: List of APIs
    Oracle Common Application Components API Reference Guide
    download.oracle.com/docs/cd/B25284_01/current/acrobat/jta115api.pdf
    List of APIs and open interface R12
    Re: List of APIs and open interface R12
    Regard
    Helios

Maybe you are looking for

  • Multiple row value coming in a single row(nclob)

    hi , i have a requirement where i have to work on a column on datatype nclob, now here the value of 2 rows coming into a single column. like this: select distinct extractvalue(xmltype(details),'/Anything/invoiceNumber') as invoices , actinguserid as

  • WD Elements External drive file transfer issue.

    I have just purchased a 1.5Tb USB 2.0 WD Elements external hard drive for backing up data. I have partitioned it, using Disk Utility in to a 1Tb Fat32 and 500Mb OS Journaled (Extended) pair of partitions. The OS Journaled (Extended) partition will re

  • Ip address already assigned when trying to login to nonsecured wifi network

    I am having problems connecting and/or loading pages to an unsecured wifi network at work.  I used to be able to connect and access the internet just fine.  I think they might have been having router problems as our signal strength got weaker and wea

  • How to migrate ARD 3 Tasks from PPC to Intel platform?

    I have been trying to move my ARD install from an old PPC 10.4 Server to a new VMWare ESX hosted Intel 10.5 Server. I've seen http://www.macosxhints.com/article.php?story=20080403105655929 which tells exactly how to do this and I have done this befor

  • Mouse tracking speed not saving in Lion

    Lion does not appear to remember/save my mouse tracking speed setting. I set it to a faster speed but it reverts every time I restart. Is there a .plist file somewhere that I can delete to maybe fix this? Anyone else experience this? Thanks.