R12 API for Payment Method Update at supplier site

Hi
I am using api AP_VENDOR_PUB_PKG.Update_Vendor_Site to update the Payment Method at Supplier Site level. The below code executes with no error but dont update the payment method. The requirement is to update the payment method to SEPA
Code :
DECLARE
v_error_reason VARCHAR2 (2000) := NULL;
v_msg_data VARCHAR2 (1000) := NULL;
v_msg_count NUMBER := NULL;
v_return_status VARCHAR2 (100) := NULL;
v_vensite_rec_type      AP_VENDOR_PUB_PKG.r_vendor_site_rec_type;
ext_payee_rec           IBY_DISBURSEMENT_SETUP_PUB.EXTERNAL_PAYEE_REC_TYPE;
BEGIN
DBMS_OUTPUT.put_line ('BEFORE apps initialization');
--Fnd_Global.apps_initialize(-1,20639,200);
fnd_global.apps_initialize(730908,141200,401);
--DBMS_OUTPUT.put_line ('AFTER apps initialization');
v_error_reason := NULL;
v_return_status := NULL;
v_msg_count := NULL;
v_msg_data := NULL;
--ext_payee_rec.default_pmt_method := 'SEPA';
v_vensite_rec_type.org_id := 2796;
v_vensite_rec_type.vendor_site_code := '0653-01NEUSS';
v_vensite_rec_type.ext_payee_rec.default_pmt_method := 'SEPA';
--v_vensite_rec_type.ext_payee_rec.default_pmt_method:= 'CHECK';
DBMS_OUTPUT.put_line ('BEFORE remittance API');
AP_VENDOR_PUB_PKG.Update_Vendor_Site
( p_api_version => 1.0,
p_init_msg_list => FND_API.G_FALSE,
p_commit => FND_API.G_FALSE,
p_validation_level => FND_API.G_VALID_LEVEL_FULL,
x_return_status =>v_return_status ,
x_msg_count => v_msg_count,
x_msg_data => v_msg_data,
p_vendor_site_rec =>v_vensite_rec_type,
p_vendor_site_id => '393130'
commit;
DBMS_OUTPUT.put_line ('AFTER pymt mtd API');
DBMS_OUTPUT.put_line (v_return_status);
DBMS_OUTPUT.put_line (v_msg_count);
DBMS_OUTPUT.put_line (v_msg_data);
IF v_return_status = fnd_api.g_ret_sts_success THEN
     IF v_msg_count >= 1 THEN
FOR i IN 1 .. v_msg_count
LOOP
IF v_error_reason IS NULL THEN
v_error_reason := SUBSTR (fnd_msg_pub.get (p_encoded => fnd_api.g_false), 1, 255);
ELSE
v_error_reason := v_error_reason|| ' ,'|| SUBSTR (fnd_msg_pub.get (p_encoded => fnd_api.g_false), 1, 255);
END IF;
DBMS_OUTPUT.put_line ('VENDOR_remittance email UPDATE API ERROR-' || v_error_reason);
END LOOP;
END IF;
ROLLBACK;
ELSE
DBMS_OUTPUT.put_line ('The updateion is sucessful');
COMMIT;
END IF;
EXCEPTION
WHEN OTHERS THEN
DBMS_OUTPUT.put_line (SQLERRM || '-' || SQLCODE);
END;
the fnd_api.g_ret_sts_success returns value as 'U' . Means it did not completed successfully
Do I need to user following API ?
IBY_DISBURSEMENT_SETUP_PUB.Update_External_Payee instead of above API?
Thanks for help
Best Regards
Nikhilesh
Edited by: user10238025 on Apr 26, 2013 5:38 AM

Hi Irfan,
thanks for reply.
we are on application version 12.1.1 .
But i have one doubt here, if we update directly ap_supplier_sites_all table, it won't impact on TCA tables know?
Thanks.
Edited by: user627525 on Jul 27, 2010 12:16 AM

Similar Messages

  • Mass Vendor master Payment method update

    Hi All
    Mass vendor master payment method update, is there any other alternative solution to update the new payment method in Vendor master. Normally we need to assign new payment method in Vendor master one by one instead of mass vendor master payment method update. Please help me to resolve the issue.
    Regards
    K.Gunasekar

    Thanks for your update
    I tryed to assign the new payment method in MASS transaction code and new value is updated but existing payment method has deleted. We need to maintain the previous payment method along with new payment method. Please provide me the necessary solution.
    Regards
    K.Gunasekar
    Edited by: KGUNASEKAR on Dec 6, 2010 10:15 AM

  • Payment Advice for Payment method T- Transfer

    Hi,
    When I run F110 (Automatic payment program), I need to provide the payment advice for payment method T (bank transfer)
    to the vendor in the format provided by the client.
    My question is:
    1. Where to assign the payment advice form  in customisation for payment method T
    2. which program has to be assigned to the payment advice form.
    Very Important note:  Here we are ALSO using DMEE file to upload- Under payment method country -I have configure the same for use payment medium workbench
    Rgds,
    Vidhya

    Hi Vidhya,
    All this is done in a single screen transaction code FBZP.
    Where to assign the payment advice form in customisation for payment method T
    This is in Payment methods in Company codeSelect your payment method-Expand form data and assign the paymnet advice form.
    which program has to be assigned to the payment advice form.
    FPAYM_INT_DMEE(For DMEE)./ in the next form you may have F110_IN_AVIS.
    Thanks
    Aravind

  • Exit for payment method(IDOC- PEXR2002)

    Dear Experts,
    I have add one Z Segment to the standard idoc PEXR2002 and msgtyp PAYEXT and now would like to pass the value to that Z segment field.
    But i am not able to find out any Exit for payment method.
    Program used to create the idoc is RFFOEDI1.
    Kindly provide the solution.
    Regards
    Pankaj

    if  you will ook in the porgramit is sent via function module where there are lot of Call customer function which you can use for example EXIT_SAPLIEDP_902 i can see many.Just debuug it and check which suit your need.
    Nabheet

  • Please do not enter data for payment method Cheque papel error in IT0009

    Hi Experts,
    Whenever i try to  maintain bank details infotype for payment type C(Check Papel),the  system is throwing error "Please do not enter data for payment method Cheque papel". As per SAP std, I had deleted the entries for bank key, bank account and bank control key and maintained IBAN field in IT0009.While saving i am getting the error""Please do not enter data for payment method Cheque papel" and I couldn't save the record.
    Then i  deleted the entries for bank key, bank account and bank control key and IBAN field also in IT0009. While saving i am getting the error "Fill in all required entry fields". System behaves  as if Iban a required field in IT0009. Our bank details infotype is country specific.We made it country
    specific through feature P0009 and setting in table T588M.As per our conf setting IBAN field is optional. Even though IBAN field is optional, this field behaves  as that of a mandatory field in IT0009.Iam  facing this issues only for a few countries like Spain,Italy etc.For other counties i am able to change of create Bank details record  for payment type C.
    I have checked in Payment Methods by Country in FBZP (Payment Method Classification is set to Check and BANK DETAILS box is unchecked) but still no solution. Do i need to check in any other setting.
    Please shed some light on this issue.Thanks in Advance.

    Hi Jobish,
    It's weird but I tried the below method and it works
    Here's what you can try in case you do not want to enter the bank details for payment method 'C'..
    Tcode FBZP - > payment methods by country - > select payment method as 'C' and make below changes (make a note of these changes as you will have to undo them after saving the table):
    a. Payment method by classification - select bank transfer
    b. Reqd master record specifications - check the bank details options and select the options which you want to be entered (a/c no required, IBAN rqd, SWIFT code rqd)
    Save the table.
    PA30- > Edit any record once again and save it.
    Again go to FBZP and undo the above changes, i.e, revert to the original entries and again save the table.
    Try editing the record now in PA30 and it allows to save. This is the second weird workaround that I have come across and still not sure why
    After above workaround, I didn't get any error while maintaining the record, for this or any pernr.
    See if it works.
    Regards
    Neha

  • F110 - Payment program for payment method 'W'

    I'm trying to implement wire payments (using EDI).  When I run F110 I choose 'W' as the payment method on the parameters tab, and on the printout/data medium tab I expect to see program RFFOUS_T - instead I'm seeing RFFOUS_C.  Isn't RFFOUS_T the program that should run for wires?  I also am seeing RFFOAVIS and RFFOEDI1.  Should these programs be running, as well?

    Hi
    In FBZP did you do all the steps for payment method W
    1.setup payment method per country for payment transactions
    2.setup payment method per company code for payment transactions
    3.setup all company codes for payment transactions
    4.setup paying company codes for payment transactions
    5.setup bank determination for payment transactions.
    the error you are getting is No valid payment method found , not with the bank account number , g/l account and so on......
    Try removing the payment method either in the Vendor Master or in the Document and run F110.
    Regards
    Venkat

  • EFT Functionality For payment method V

    Hi
    We are currently enabling EFT Functionality for our client .our Aim is to Generate a DME File for payment Method V( EFT for Domestic).We have a Format EFTS_EIRE.I have Following Questions
    1.Is the Format SAP standard One?
    2.Where we are assigning the Forms ?
    Please let me know
    Thanks & Regards
    Madhav

    Hi
    We are enabling the Functionality for Ireland.In FBZP we have assignd the payment method V to the country IE.
    To give you more inputs.....,we have to company codes in Ireland .
    two company codes are  using the same Format EFTS_EIRE.we have the same set up in FBZP for both the company codes under Ireland
    we could able to generate the DME File in our payment run for one comapny code.For  the other company code we could not be able to genearte the DME File.
    my question is where the Format is assgined to generate the DME Functionality?
    Please let me know if you stillneed more inputs
    Thanks
    Madhav

  • HT1904 how i can create apple ID. i tried my best but get failed, bec it asking for Payment method again and again

    how i can create apple ID. i tried my best but get failed, bec it asking for Payment method again and again

    If you don't want to give payment details then there are instructions on this page for how to create one (the instructions don't work for existing accounts) : http://support.apple.com/kb/HT2534 i.e. select a free app in the store and click on 'Create Apple ID' when 'buying' it

  • JPY is not allowed as a payment currency for payment method 1

    Hi
    While doing  a payment run in F110 i am getting an error JPY is not allowed as a payment currency for payment method 1 where every thing is correct "error message that payment not
    possible "
    Laxmi

    Hi
    Go to FBZP --> Payment Method in Country --> Select your Country and Payment Method --> Click on "Currencies Allowed" tab on the left --> Check if JPY is added there.
    Also, perform the below checks:
    FBZP --> Bank Determination --> Select your commpany code -->
    1. Select Ranking Order tab on the left --> Check if the combination of Payment method, Currency, Rank Order & House Bank is maintained.
    2. Select Bak Accounts tab on the left --> Check if the combination of House Bank, Payment method, Currency, Account ID & Bank Subaccount is maintained.
    3. Select Available amounts tab on the left --> Check if the combination of House Bank, Account ID, Currency and Available Amount is maintained.
    Let me know if you have more queries.
    Regards
    Srini

  • Maintinance of companycode  data for payment method

    Hi
    Maintinance of companycode  data for payment method
    IN Bank selection  control  we have three check boxes
    No optimization
    optimize by bank group
    optimize by postal code
    here what optimization concept can work    cananybody explain me
    Thanks
    MvNr

    Optimize by postal code
    in the APP customising you need to define the postal codes lower limit and upper limit and assign any of your house bank. so that the vendors belonging to the postal code range would be paid from that house bank.
    say for example you have defined the lower limit as 600001 to 600100 and house bank as ABCD
    the APP will consider house bank ABCD for all vendors belong to the postal code range 600001 and 600100.
    I am not sure about optimize by bank group.

  • Assign Form for Payment Method

    Hi all,
    Can anybody explain what is the difference between 'assigning form in paying company codes' and 'assigning form in payment methods in company code' ?
    Since the configuration in "assign form for payment method in company code" only cater for 1 form,how can we configure to include 2 forms?
    Thanks.

    Hi all,
    Since the configuration in "assign form for payment method in company code" only cater for 1 form,any idea on how to configure 2 forms to be included together?
    I've tried in FBZP, but still only 1 form can be printed out.
    If anyone can help me on this problem,generous points will be awarded.
    Thanks.
    Helena.

  • Multiple selection for Payment Methods.

    TABLES: V_T042E.   
    DATA: s_zwels_con(3).
    SELECT-OPTIONS: s_zwels FOR V_T042E-ZLSCH NO INTERVALS,"payment methods
    ********************   I N I T I A L I Z A T I O N   *******************
    INITIALIZATION.
    ***************   A T   S E L E C T I O N   S C R E E N   **************
    AT SELECTION-SCREEN.
    CONCATENATE s_zwels INTO s_zwels_con SEPARATED BY SPACE.
    This is the code I tried for multiple selection of Payment Methods.This doesnot display the multiple values selected on selection screen.
    Later in program these values will be reflected in Payment Methods in BDC recording using F110 transaction.
    But this code is giving an error :
    Unable to interpret "S_ZWELS". Possible causes of error: Incorrect spelling or comma error.     
    Please can any help in rectifying the current method or any other method of mutliple selection for Payment methods on selection screen .

    u have to put like this only
    <b>SELECT-OPTIONS: s_zwels FOR V_T042E-ZLSCH NO INTERVALS
    "payment methods</b>
    here u have to loop then only u will get desired o/p
    loop at s_zwels.
    endloop.
    but its not the complete solution.
    Regards
    Prabhu

  • HT1657 Have a $15.00 credit and wish to rent a movie on Ipad but am being asked for payment method and redemption is not an option.

    Have a $15.00 credit and wish to rent a movie on Ipad but am being asked for payment method and redemption is not an option. Any suggestions?

    To Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • JAEHYLEE , Error FRM 40654 While Updating Few Supplier Sites 시 공백 제거 방법

    PURPOSE
    Error FRM 40654 While Updating Few Supplier Sites , 공백 제거 방법
    Workaround
    N/A
    Solution Description
    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));
    END IF;
    end loop;
    close column1;
    end loop;
    close table1;
    END CHK_TRAIL_SPACE;
    cause: Trailing Spaces.
    fix:
    Please run trailspace.sql.
    This creates a procedure that will check all VARCHAR2 columns
    in a specified table for trailing spaces .
    Run the file in SQL*PLUS .
    It will return 'Procedure Created'
    Then run it using the following:
    set serveroutput on
    execute chk_trail_space(<table_name to check>);
    i.e. (execute chk_trail_space('PO_VENDORS');)
    Please can you run this on the following two tables:
    PO_VENDORS and PO_VENDOR_SITES_ALL.
    Then if there are any trailing spaces as per output,
    Then run the following command in TEST:
    update <tablename>
    set <column_name> = rtrim(<column_name>);
    i.e.
    update po_vendors
    set vendor_name = rtrim(vendor_name);
    Reference Documents
    234048.1

  • Vendor master update for Payment methods at MASS t.code

    Hi friends,
    Iam changing one new payment method to all vendors (600). for this updates iam using MASS t.code.but iam confuging this step. please help me how to do it at mass t.code step by step. it is very urgent.
    Advance Thanks
    Raj

    After execution of Mass give the object type LFA1( if you want to go directly to this screen use T.Code XK99)
    1.select Vendor Master (Company Code) table LFB1 and execute
    2. Select Data Records to be changed tab
    3. give the vendor numbers and company code and execute
    4.select Fields, select the field Payment methods from pool and move(selectleft arrow) to selection criteria and enter
    5.give the new payment method in new value field and press the carry out mass change and save.
    pl. assign points

Maybe you are looking for

  • Can I make one iphoto library from two time machine back-ups?

    Hi I have recently purchased a new Mac Book. I previously had two MacBooks, which I backed up with time machine onto two separate external hard drives. I did a straight transfer of all data from one of these time time machine back-ups to my new lapto

  • How do I create a new user, move my old files etc over, and delete old user

    This is why I think I need to. My computer got hit by lightening, and I may have created a new user account through netinfo rather than system preferences /accounts/+user. Mail used to open twice, but no longer. Now, Safari askes me for my keychain p

  • Sharing a Time Capsule between Time Machine and Data Storage

    I currently have a MBP with a 120 GB hard drive that is busting at the seams. I have a 500 GB time capsule which I use Time Machine on. I am going to move iphoto and itunes libraries onto an external drive and I was wondering whether I can share the

  • Internal Problem!!!

    Hi, When i login as internal i get the following message " insufficient privileges". I don't remember tampering with any user privileges. Why do i get this error. And how to solve it. By the way i have anither user with sysdba privileges. will that h

  • My outbound messages are not processing in XI

    Hi All, When i try to test my scenario i.e sending message from SRM to MDM , all my messages are struck in the Queue in XI. Even i deleted queues in SMQ2 , my messages are not processing and in sceduled for outbound processing stage. Even i restard a