INVALID_PARTY_CONTEXT while creating Bank accounts at supplier site level

Hi All,
I am trying to create a bank account at supplier site level using below code.
IBY_EXT_BANKACCT_PUB.CREATE_EXT_BANK_ACCT(p_api_version => 1.0,
p_init_msg_list => fnd_api.g_true,
p_ext_bank_acct_rec => l_ExtBankAcct_rec,
p_association_level => 'SS',
p_supplier_site_id => l_vendor_site_id, --Vendor_site_id from ap_supplier_sites_all table
p_party_site_id => l_party_site_id, --party_site_id from ap_supplier_sites_all table
p_org_id => p_org_id, , --org_id fron which the program is run
p_org_type => 'OPERATING_UNIT',
x_acct_id => x_acct_id,
x_return_status => l_return_status,
x_msg_count => l_msg_count,
x_msg_data => l_msg_data,
x_response => x_response);
when I run this code from concurrent program.
x_return_status is NULL, x_msg_count is also NULL, X_msg_data is also NULL.
Whereas in x_response i am getting x_response.Result_Code = INVALID_PARTY_CONTEXT
Can you please help, why is it not able to create bank account, I have valid bank and branch for this.
Thanks,
Sachin

Thanks for reply Hussain.
I have checked all these notes, 2 our of these 2 are for AR API's.
The first note says that it would given error if you try to create a supplier of type 'EMPLOYEE' and site is given other than 'HOME' or 'OFFICE', but I am creating supplier of type 'VENDOR' and 'EMPLOYEE'.
This note has solution "Set supplier site = 'HOME' or 'OFFICE' type.".
As we are not creating supplier of Type 'EMPLOYEE', i guess this solution does not hold good for us.
Any other suggestions please?
Thanks,
Sachin

Similar Messages

  • Bank Account at Supplier Site Level in R12

    Hi,
    I have a requirement to create bank account at supplier site level. This is part of the conversion.
    I have been testing with the below code
    DECLARE
    l_extbank_rec iby_ext_bankacct_pub.extbankacct_rec_type;
    l_vendor_site_id NUMBER (10) := 704;
    l_party_site_id NUMBER (10) := 42458;
    p_org_id NUMBER (10) := 11665;
    l_account_id NUMBER (10);
    l_return_status VARCHAR2 (2000);
    l_msg_count NUMBER (5);
    l_msg_data VARCHAR2 (2000);
    l_response iby_fndcpt_common_pub.result_rec_type;
    BEGIN
    --l_extbank_rec.  bank_account_id   :=    ;
    l_extbank_rec.country_code := 'US';
    l_extbank_rec.branch_id := 284238;
    l_extbank_rec.bank_id := 284236;
    --l_extbank_rec.  acct_owner_party_id           :=    ;
    l_extbank_rec.bank_account_name := 'TEST_ACCT';
    l_extbank_rec.bank_account_num := 976431;
    l_extbank_rec.currency := 'USD';
    --l_extbank_rec.  iban                          :=    ;
    --l_extbank_rec.  check_digits                  :=    ;
    --l_extbank_rec.  multi_currency_allowed_flag   :=    ;
    --l_extbank_rec.  alternate_acct_name              :=    ;
    --l_extbank_rec.  short_acct_name               :=    ;
    l_extbank_rec.acct_type := 'Current';
    --l_extbank_rec.  acct_suffix                      :=    ;
    --l_extbank_rec.  description                      :=    ;
    --l_extbank_rec.  agency_location_code          :=    ;
    ----l_extbank_rec. foreign_payment_use_flag := ;
    --l_extbank_rec.  exchange_rate_agreement_num   :=    ;
    --l_extbank_rec.  exchange_rate_agreement_type  :=    ;
    --l_extbank_rec.  exchange_rate                    :=    ;
    --l_extbank_rec.  payment_factor_flag              :=    ;
    --l_extbank_rec.  status                        :=    ;
    -- l_extbank_rec.end_date := '27-AUG-2011';
    l_extbank_rec.start_date := SYSDATE;
    iby_ext_bankacct_pub.create_ext_bank_acct
    (p_api_version => 1.0,
    p_init_msg_list => fnd_api.g_true,
    p_ext_bank_acct_rec => l_extbank_rec,
    p_association_level => 'SS',
    p_supplier_site_id => l_vendor_site_id,
    p_party_site_id => l_party_site_id,
    p_org_id => p_org_id,
    p_org_type => 'OPERATING_UNIT',
    x_acct_id => l_account_id,
    x_return_status => l_return_status,
    x_msg_count => l_msg_count,
    x_msg_data => l_msg_data,
    x_response => l_response
    COMMIT;
    DBMS_OUTPUT.put_line ('x_return_status = ' || l_return_status);
    DBMS_OUTPUT.put_line ('x_msg_count = ' || l_msg_count);
    DBMS_OUTPUT.put_line ('x_msg_data = ' || l_msg_data);
    DBMS_OUTPUT.put_line ('x_acct_id = ' || l_account_id);
    DBMS_OUTPUT.put_line ('Error = ' || SQLERRM);
    END;
    ===========================
    Result:
    x_return_status =
    x_msg_count =
    x_msg_data =
    x_acct_id =741
    Error = ORA-0000: normal, successful completion
    ===========================
    Your response is much appreciated.
    Thanks,
    Srini

    Have you initialized the environment before calling the API?
    You can do this by
    fnd_global.apps_initialize(&user_id,&responsibility_id,&application_id>);
    mo_global.init('SQLAP'); -- Required for R12

  • 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 tanna

    Duplicate post.
    Error while creating customer account sites
    Error while creating customer account sites

  • Error when create bank account transfer

    Hi All,
    When I created bank account transfer, i got error message "oracle.jbo.RowValException: JBO-27012: Row validation method validate() failed for row with key oracle.jbo.Key[282 ] in PaymentTransactionsEO"
    Need some help
    Thanks
    FN

    Hi,
    Can you provide more info? Release, form where you are performing that transaction?
    Thanks,
    Javier

  • HT2534 While creating an account from my iPad there is no option for selecting none in the payment options. It states I have to give my credit card details. What's the procedure to open a free account?

    While creating an account from my iPad there is no option for selecting none in the payment options. It states I have to give my credit card details. What's the procedure to open a free account?

    It's in the article.  You must first sign-out your current account, then go to App store to purchase a Free App.  It will ask you to either Sign in or create a new AppleID.  That's when you start creating a new AppleaID and NONE will be available as a payment option.

  • Error while creating reconciliation account

    Hi,
    While creating reconciliation account in FS00 , after clicking on create ,
    system shows message"No PICICL statement  account  type is defined in chart of account ICIC.
    How to get over it.Pl suggest.
    Regards,
    Abhijeet

    Hi Abhijeet,
    Please refer any configuration book for step by step Configuration and clarifications Eg
    http://electronicsandbooks.com/eab1/manual/Publisher/S/SAP/SAP%20HandBook%20on%20FICO%20Module%20for%20Beginners%20Learn…
    http://www.sapficoconsultant.com/pdf/GL%20configuration%20free%20e-book.pdf

  • Currency Create Bank Account Transfer in CE R12.1.3

    Hi,
    I would like to ask about different currency when we tried to create Bank Account Transfer.
    Can we transfer IDR currency to USD ?
    Transfer date: 03 Oct 2012
    Currency: USD
    Transfer Amount: 1500
    Bank Source: IDR
    Bank Destination: USD
    it supposed to be okay but when tried to validate, there was error:
    "Please select a Source Bank Account currency that matches its ledger currency."
    Kindly need help
    Thanks
    Findy

    Hi,
    I would like to ask about different currency when we tried to create Bank Account Transfer.
    Can we transfer IDR currency to USD ?
    Transfer date: 03 Oct 2012
    Currency: USD
    Transfer Amount: 1500
    Bank Source: IDR
    Bank Destination: USD
    it supposed to be okay but when tried to validate, there was error:
    "Please select a Source Bank Account currency that matches its ledger currency."
    Kindly need help
    Thanks
    Findy

  • HT1918 While creating my account, i'll be told I have to contact iTunes support to complete the transaction. Why?

    While creating my account, i'll be told I have to contact iTunes support to complete the transaction. Why?

    Click here and request assistance.
    (78657)

  • Duplicate address check for while creating New accounts

    Hi,
    While creating new account for checking postal address and duplicate records i am getting following error message
    The address is correct as entered. Display the Address Reviewer Screen
    currently i am using CRM 7.0
    Thanks & Regards
    Kishore Kumar

    no replies

  • 특정 SUPPLIER SITE LEVEL의 DATA수정 시도시 RE-QUERY ERROR

    제품 : FIN_AP
    작성날짜 : 2004-05-19
    특정 SUPPLIER SITE LEVEL의 DATA수정 시도시 RE-QUERY ERROR
    =================================================
    Problem Description
    특정 Supplier Site level의 Data수정 시도시 아래의 Message발생
    ==============================================
    record has been updated, re-query block to see change
    ==============================================
    Solution Description
    아래의 SQL을 실행해서 "CHK_TRAIL_SPACE"라는 Procedure를
    만든 후 생성된 Procedure를 다음의 방법으로 실행하면, Input Table의
    어떤 Column에 NULL문자가 들어갔는지 확인할 수 있다.
    set serveroutput on
    execute chk_trail_space(<table_name to check>);
    i.e. (execute chk_trail_space('PO_VENDORS');)
    trailspace.sql:
    ===============================================================================
    CREATE OR REPLACE PROCEDURE CHK_TRAIL_SPACE (p_table_name in varchar)
    IS
    v_table_name varchar(30);
    v_column_name varchar(30);
    v_column_name_c char(30);
    v_space_count number;
    v_ret number; -- temp holder for above
    v_initial_space_counter number;
    dyn_cursor number;
    CURSOR TABLE1 IS
    SELECT table_name
    FROM DBA_TABLES
    WHERE table_name = p_table_name;
    CURSOR COLUMN1 IS
    SELECT column_name
    FROM DBA_TAB_COLUMNS
    WHERE table_name = v_table_name;
    BEGIN
    OPEN TABLE1;
    LOOP
    -- FOR crec1 in TABLE1 LOOP
    fetch TABLE1 into v_table_name;
    IF (TABLE1%NOTFOUND) THEN
    exit;
    END IF;
    dbms_output.put_line(v_table_name);
    dbms_output.put_line
    v_initial_space_counter := 0;
    OPEN COLUMN1;
    LOOP
    -- FOR crec2 in COLUMN1 LOOP
    fetch COLUMN1 into v_column_name;
    IF (COLUMN1%NOTFOUND) THEN
    exit;
    END IF;
    dyn_cursor := DBMS_SQL.OPEN_CURSOR;
    DBMS_SQL.PARSE
    (dyn_cursor,
    'SELECT COUNT(*) ' ||
    'FROM ' || p_table_name ||
    ' WHERE ' || v_column_name || ' LIKE ''% ''',
    DBMS_SQL.NATIVE);
    DBMS_SQL.define_column (dyn_cursor, 1, v_space_count);
    v_ret := DBMS_SQL.EXECUTE(dyn_cursor);
    if DBMS_SQL.fetch_rows(dyn_cursor) > 0 then
    DBMS_SQL.column_value (dyn_cursor, 1, v_space_count);
    end if;
    DBMS_SQL.CLOSE_CURSOR(dyn_cursor);
    IF v_space_count > 0 THEN
    v_initial_space_counter := v_initial_space_counter + 1;
    END IF;
    v_column_name_c := v_column_name;
    IF v_space_count > 0 THEN
    dbms_output.put_line(' ' || v_column_name_c || to_char(v_space_count))&
    #059;
    END IF;
    end loop;
    close column1;
    end loop;
    close table1;
    END CHK_TRAIL_SPACE;
    ====================================================================
    NULL문자가 들어간 Column이 확인되면,
    update po_vendors
    set vendor_name = rtrim(vendor_name);
    위의 방법으로 수정하면 된다.
    Reference Documents
    Note :234048.1

    If I delete the purchase details/line item, the supplier site can be changed.
    The error appeared again after the new line item selected,click on "Shipment" button, and change the supplier site.
    It's not able to change it. Any reason caused by the line item shipment? how it relate?

  • Manage vendor bank account in company code level - Best practice

    hi,
    we have on our client several company codes, and we are thinking how to manage the vendor bank accounts in company codes level or in centeral level.
    our problem with company codes level is that the vendor bank accounts define in a centeral level so technically with sap standard it is not possible. if anyone can tell me that this is possible i will be very happy to know.
    in centeral level our problem is with the business process because of we do not have a person (functionalism ) that can be responsible for all the company codes, basically every company shoule be responsible for her vendors
    please advice what is the best practice to manage vendor bank accounts in enviroment of several company code
    regards,
    meir

    hi Raghu,
    i know that but this is not my qusition.
    which company code will be responsible to enter the bank account in the vendor master data? as i say the vendor bank accounts manage in centeral level and not in company code level and this is our problem and i like to know how other companies with the same situation handle with this issue
    and also after we have the bank accounts in the vendor master data what happend if for one vendor has several bank accounts one for every company code? how the payment program F110 could know automaticaly which bank account to take (i know that there is an optoin to use Partner bank type in the vendor master data, and enter this PBT when posting the invoice of the vednor, but this is not good because of we do not want the the accountant will be responsible from which bank the vendor get his money).
    regards,
    meir

  • 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 tanna

    Hi,
    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

  • Accept payments without creating PayPal account on my site?

    Dear community, I'd like to accept credit cards on my site without forcing customers to create Paypal account. Still not the case inspite my efforts. I have Business account.Credit card confirmed.Bank account confirmed.My Selling Tools>Website preferences>PayPal Account Optional: ONI have French Paypal account and selling to EU countries.  What else should be done to remove 'Create paypal account'? thank you very much in advance.

    Could you provide more detail

  • Unknown user name or bad password issue while creating AD accounts

    Hi All,
    While creating accounts on AD through IdM, I am getting below error. Sometimes I don't see this error while sometimes I do. What could be the actual reason ?
    com.waveset.util.WavesetException: Error opening object 'LDAP://cn=ut9778ug,ou=Employee USA,ou=Users,ou=CorpHQ,dc=corpz,dc=utcz,dc=com': ADsOpenObject(): 0X8007052E: , , Logon failure: unknown user name or bad password.
    Please help me out.
    Thanks,

    Hi,
    I just faced the same problem while provisionning account on AD through Sun Identity Manager Gateway. (I'm in Oracle Waveset 8 patch 6)
    When I test configuration on the configuration page of my AD resource, everything was ok, but when i tried to create / update account on AD, i had the same error. (when i forced a bad password for example, the test configuration was in error, so i know that was ok)
    I resolved the problem using IP address in "LDAP Server Name" instead of url or host name. I don't understand because 'ping' on url and test configuration on resource were ok.
    I hope it will be usefull for you
    Nicolas

Maybe you are looking for

  • Transporting Dashboard from BI Dev to BI Prd

    Hi all, I have created a dashboard in visual composer and in the system i choose BI Dev server. Now I want to transport that dashboard to BI Prd. Is there any way to do this? Best Regards, AI.

  • Error while starting SAP from mmc Console

    Hi, I am trying to start SAP system through sapmmc, by right clicking on the System and pressing start. But getting this unknown error: Start Failed: 2 NIECONN_REFUSED (WSAETIMEOUT: Connection timed out), NRawConnect failedin plugin_fopen() Checking

  • I can't empty the trash

    Hello everytime i press empty trash i found out the files aren't delted

  • Problems with xf86-video-vesa in use? (Solved)

    Continue installation? [Y / n] s checking the integrity of the package ... (55/55) checking for file conflicts [#####################] 100% Error: Failed to submit the transaction (conflicting files) xf86-video-vesa: / usr / lib / xorg / modules / dr

  • Putting slideshow on DVD for use in DVD player

    I have a slideshow that I need to burn onto a DVD for use in a regular DVD home player, not in a computer. Can I do this with iPhoto? If yes, how, and if no, then can I use iMovie instead? This is urgent!