AP Payment Upload Using API or Interface

Hi ,
I had requirement to upload the AP payment information using API or Interface. I have the below code. But is showing some "Unexpected" error.
declare
p_num_printed_docs NUMBER;
p_payment_id NUMBER;
p_paper_doc_num NUMBER;
p_pmt_ref_num NUMBER;
p_return_status VARCHAR2(200);
p_error_ids_tab IBY_DISBURSE_SINGLE_PMT_PKG.trxnErrorIdsTab;
p_msg_count NUMBER;
p_msg_data VARCHAR2(200);
begin
MO_GLOBAL.SET_POLICY_CONTEXT('S',84); --- Apps intialize
fnd_global.apps_initialize(1823,20639,200); --- Apps intialize
IBY_DISBURSE_SINGLE_PMT_PKG.SUBMIT_SINGLE_PAYMENT(
p_api_version => 1.0,
p_init_msg_list => fnd_api.g_false,
p_calling_app_id => 200,
p_calling_app_payreq_cd => '13011',
p_is_manual_payment_flag => 'Y',
p_payment_function => 'PAYABLES_DISB',
p_internal_bank_account_id => 10000, -----12001,
p_pay_process_profile_id => 161,
p_payment_method_cd => 'CLEARING',
p_legal_entity_id => 23324,
p_organization_id => 84,
p_organization_type => '',
p_payment_date => sysdate,
p_payment_amount => 111,
p_payment_currency => 'USD',
p_payee_party_id => 91678,
p_payee_party_site_id => 45272,
p_supplier_site_id => '',
p_payee_bank_account_id => '',
p_override_pmt_complete_pt => 'N',
p_bill_payable_flag => 'N',
p_anticipated_value_date => '',
P_MATURITY_DATE => '',
p_payment_document_id => 1,
p_paper_document_number => '',
p_printer_name => '',
p_print_immediate_flag => '',
p_transmit_immediate_flag => '',
x_num_printed_docs => p_num_printed_docs,
x_payment_id => p_payment_id,
x_paper_doc_num => p_paper_doc_num,
x_pmt_ref_num => p_pmt_ref_num,
x_return_status => p_return_status,
x_error_ids_tab => p_error_ids_tab,
x_msg_count => p_msg_count,
x_msg_data => p_msg_data
commit;
DBMS_OUTPUT.put_line ( p_return_status || '---''---' || p_msg_data || '--''--' || p_msg_count );
IF p_msg_count = 1 THEN
DBMS_OUTPUT.put_line ( p_return_status || '---''---' || p_msg_data || '--''--' || p_msg_count );
ELSIF p_msg_count > 1 THEN
FOR i IN 1..p_msg_count LOOP
DBMS_OUTPUT.put_line ( i||'. ' || fnd_msg_pub.get (p_encoded => fnd_api.g_false) );
END LOOP;
ELSE
DBMS_OUTPUT.put_line (p_return_status);
END IF;
end;
If anyone knows the solution please respond quickly. This is quite urgent requirement. If I am not using right API then please suggest as well. This requirement for Oracle Apps R12
Regards,
Prakash

Hi,
Can you please advise if you had a response for your message.
Regards,
Sunil

Similar Messages

  • Assigning Sourcing rules to Assignment set using API or Interface table

    Hello Gurus,
    We have a requirement to migrate the data from legacy system to Oracle Apps.
    We are given with a data file containing sourcing rules and assignment set information which needs to be assigned to assignment sets.
    Are there any APIs or interface tables to assign the sourcing rule to Assignment set?
    Thanks in Advance.

    HI,
    I have a requirement, API for loading sourcing rules in APPS and attaching the same to Assignment sets at item level..
    I found that ,these are the API's for that..
    MRP_SOURCING_RULE_PUB.PROCESS_SOURCING_RULE ,MRP_SRC_ASSIGNMENT_PUB.Process_Assignment
    Please provide me the code for that.
    Can you please send to my mail -- [email protected]
    Thanks in advance...
    Vijaya

  • Create Supplier as Employee API Or Interface

    hi all ,
    i want to know if i can Create Supplier as Employee using API Or Interface , please any one can help me

    And what, pray tell, does your question have to do with the upgrade/installation/migration of WLS?
    Seems you meant to be in one of the E-Business Suite forums.
    John

  • API or Interface for Project Type - OeBS

    Hi
    We have requirement to create Project Type using API or interface.
    Could please provide the same or any alternate solution.
    Regards
    Vimal

    We have requirement to create Project Type using API or interface.
    Could please provide the same or any alternate solution.Please see "Oracle Projects APIs, Client Extensions, and Open Interfaces Reference" -- http://download.oracle.com/docs/cd/B25516_18/current/acrobat/115pjapi.zip
    Thanks,
    Hussein

  • How to create Payment against the invoices in R12 using API/Interface table

    Hi Experts,
    I need your help.
    As per my requirement , we need to create the payments against the invoices using the payment information provided.
    Earlier the Payments against the invoice is done by (3rd party system) in 11i.
    But, as a part of R12 implementation,
    The requirement is like now they are going to provide us and flat file(having below payment information) and we need to create the payment with these information.
    COLUMNS PROVIDED
    SOURCE
    INVOICE INTERNAL NUMBER #
    ACCOUNTING SEGMENTS
    DEBIT/CREDIT
    AMOUNT
    CURRENCY
    BANK ACCOUNT
    PAYMENT DATE
    DUE DATE
    PAYMENT METHOD
    PAYMENT TERMS
    BATCH ID
    We need to create an inbound interface to achieve the below requirement.
    1. Create the payments in oracle R12 with the above payment information. (unable to find the way please suggest).
    2. Creating the Journal entries. -> We are having GL_INTERFACE & Journal Import program to import the journals.
    3. Finally we have to posting the same into GL.-- Interface & Import programs available.
    Is there any api or interface tables can be used to create the payment against the invoices in r12?
    Could you please help me to achive my above requirements.
    Any sample code or reference will be a great help for me.
    Waiting for your response.
    Thanks,
    Thiru.

    Hi Thiru,
    Perhaps these links can help:
    http://ccchuanblog.blogspot.in/2010/12/oracle-ap-payment-api.html
    http://oracle.ittoolbox.com/groups/technical-functional/oracle-apps-l/ap-invoice-payment-need-help-4037407
    See "Understanding Oracle Payments APIs" here:
    http://docs.oracle.com/cd/B40089_10/current/acrobat/120ibyig.pdf
    If this answers your question, please mark the post. Thanks.
    Kristofer Cruz
    Edited by: Kristofer Cruz on Sep 5, 2012 2:41 PM

  • What are the common APIs we use in oracle interface

    What are the common APIs we use in oracle interface,and any APIs are there for validation Of data During Tranfer to interface table.
    How to find Api s in oracle applications in Individual modules

    For 11i, all public APIS are listed at http://irep.oracle.com
    For R12, use the "Integration Repository" responsibility in your R12 instance to list the APIs available in that instance
    HTH
    Srini

  • How to create Custom WEB ADI using API Only for both Dowload/Upload process

    I am able to create custom WEB ADI using API for upload process. I have written the following code to create custom WEB ADI using API for upload process.
    DECLARE
    v_application_id NUMBER:= 20003;
    v_object_code VARCHAR2(255):='WEBADI_API_DEM_17';
    v_int_user_name VARCHAR2(255):='WEBADI_API_DEM_17';
    v_language VARCHAR2(255):='US';
    v_source_lang VARCHAR2(255):='US';
    v_user_id NUMBER :=1345;
    v_integrator_code VARCHAR2(255);--:='WEBADI_API_DEM_17_INTG';
    v_param_list_code VARCHAR2(255);
    --v_interface_code  VARCHAR2(255);
    v_interface_code VARCHAR2(255);--:='WEBADI_API_DEM_17_INTF';
    p_layout_code VARCHAR2(255):='WEBADI_API_DEM_17_LAYOUT';
    V_MAPPING_CODE VARCHAR2(255);
    BEGIN
    BNE_INTEGRATOR_UTILS.CREATE_INTEGRATOR(P_APPLICATION_ID =>v_application_id,
    P_OBJECT_CODE =>v_object_code,
    P_INTEGRATOR_USER_NAME =>v_int_user_name,
    P_LANGUAGE =>v_language,
    P_SOURCE_LANGUAGE =>v_source_lang,
    P_USER_ID =>v_user_id,
    P_INTEGRATOR_CODE =>v_integrator_code);
    BNE_INTEGRATOR_UTILS.CREATE_INTERFACE_FOR_API (P_APPLICATION_ID =>v_application_id,
    P_OBJECT_CODE =>v_object_code,
    P_INTEGRATOR_CODE =>v_integrator_code,
    P_API_PACKAGE_NAME =>'XXDH_PRICE_LIST_POC_PKG',
    P_API_PROCEDURE_NAME =>'CREATE_PRICE_LIST',
    P_INTERFACE_USER_NAME =>'WEBADI_API_DEM_17',
    P_PARAM_LIST_NAME =>'WEBADI_API_DEM_17',
    P_API_TYPE =>'PROCEDURE',
    P_API_RETURN_TYPE =>NULL,
    P_UPLOAD_TYPE =>2,
    P_LANGUAGE =>v_language,
    P_SOURCE_LANG =>v_source_lang,
    P_USER_ID =>v_user_id,
    P_PARAM_LIST_CODE =>v_param_list_code,
    P_INTERFACE_CODE =>v_interface_code);
    BNE_INTEGRATOR_UTILS.CREATE_DEFAULT_LAYOUT
    (P_APPLICATION_ID =>v_application_id,
    P_OBJECT_CODE =>v_object_code,
    P_INTEGRATOR_CODE =>v_integrator_code,
    P_INTERFACE_CODE =>v_interface_code,
    P_USER_ID =>v_user_id,
    P_FORCE =>FALSE,
    P_ALL_COLUMNS =>TRUE,
    P_LAYOUT_CODE =>p_layout_code);
    BNE_CONTENT_UTILS.CREATE_CONTENT_COLS_FROM_VIEW (P_APPLICATION_ID =>v_application_id,
    P_CONTENT_CODE =>'WEBADI_API_DEM_17'||'_CNT',
    P_VIEW_NAME =>'XXDH_PRICE_LIST_POC_V',
    P_LANGUAGE =>v_language,
    P_SOURCE_LANGUAGE =>v_source_lang,
    P_USER_ID =>v_user_id);
    BNE_CONTENT_UTILS.CREATE_CONTENT_TO_API_MAP (P_APPLICATION_ID =>v_application_id,
    P_OBJECT_CODE =>v_object_code,
    P_INTEGRATOR_CODE =>v_integrator_code,
    P_CONTENT_CODE =>'WEBADI_API_DEM_17'||'_CNT',
    P_INTERFACE_CODE =>v_interface_code,
    P_LANGUAGE =>v_language,
    P_SOURCE_LANGUAGE =>v_source_lang,
    P_USER_ID =>v_user_id,
    P_MAPPING_CODE =>V_MAPPING_CODE);
    END;
    I need to know what are API we can use to create download+upload ADI? anyone has already prepared script....please share it it me. My email id - [email protected]
    Thanks

    Use FNDLOAD, it's the only way.
    There are 2 seperate scripts, 1 for the Integrator and 1 for Layout.
    FNDLOAD apps/<pw> 0 Y DOWNLOAD $BNE_TOP/patch/115/import/bneintegrator.lct <your name>.ldt BNE_INTEGRATORS INTEGRATOR_ASN="XXX" INTEGRATOR_CODE="<your code>"
    FNDLOAD apps/<pw> 0 Y DOWNLOAD $BNE_TOP/patch/115/import/bnelay.lct <your name>.ldt BNE_LAYOUTS LAYOUT_ASN="XXX" LAYOUT_CODE="<your code>"
    Cheers
    Jeroen

  • Generate or Modify Interfaces using API?

    We will be distributing pre-configuered ODI packages along with our product which maps our OLTP schema to a typical reporting target schema. Requirement is to tweak the interfaces as the customer may want a subset of target tables or only few columns from certain target tables. we would like to have this done using API rather than using designer interface... Is there a way to achieve this?

    Hi,
    I believe that you didn't understand my point...
    Yes, at development time the snp_col_pop will work but it won't work after a scenario be generated and worse, this solution only works to a Development Work Repository (DWR).
    Don't you plan to have a production with a Execution Work Repository (EWR) on it? If yes, how will you manage this once there is no such table like snp_col_pop in a EWR?
    From my point of view, unless I'm really missing something about the process, the problem still persists once you can't generate scenario that read the excel file and then make your interface dynamic.
    And worse, you're updating the DWR in execution time... that is very dangerous.
    But if works for you... good luck! :)
    Cezar Santos
    http://odiexperts.com
    Edited by: Cezar Santos - www.odiexperts.com on 12/04/2010 01:30

  • 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

  • BP Error in memory while uploading using DI API

    hi experts,
    can someone help me how to reduce the memory used while uploading the business partner using DI API..
    i encountered error "memory corrupted".
    because i already used 1.1 gb of memory while I'm in the process of uploading the business partner.
    this is the error
    "Attempted to read or write protected memory. This is often an indication that other memory is corrupt."
    thanks

    No DTW is not possible to used...
    this is the code i use... the error comes out in
            lRetCode = oBusinessPartners.Add
    Public oBusinessPartners As SAPbobsCOM.BusinessPartners = Nothing
            oBusinessPartners = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oBusinessPartners)
            oBusinessPartners.CardCode = CardCode
            oBusinessPartners.CardName = CardName
            oBusinessPartners.CardType = SAPbobsCOM.BoCardTypes.cCustomer
            oBusinessPartners.GroupCode = GroupCode
            oBusinessPartners.Phone1 = Phone1
            oBusinessPartners.Address = Address
            oBusinessPartners.UserFields.Fields.Item("E_Mail").Value = Email
            oBusinessPartners.UserFields.Fields.Item("U_COURSE").Value = Course
            oBusinessPartners.PayTermsGrpCode = "-1"
            Dim oContactEmps As SAPbobsCOM.ContactEmployees = Nothing
            oContactEmps = oBusinessPartners.ContactEmployees
            oContactEmps.Name = contact1
            oContactEmps.Add()
            oContactEmps.Name = contact2
            lRetCode = oBusinessPartners.Add
    i also used the uploading using xml but it doesn't work...
    the error still comes out...
    THANKS A LOT...
    Edited by: Joey Bryan Dante on Feb 22, 2011 3:18 AM

  • How to populate Values in Value Set via API or Interface

    Dear frds:
    i need to know is there any API or interface available to load thousands of values in particular valueset via API or Interface. I know Dataload is the alternative but i don't want to use that as the data is too much so its not feasible.
    waiting for your response
    Thanks.

    There is no API for fnd_flex_values.
    You will have to do a direct table insert (or call FND_FLEX_VALUES_PKG which does nothing but a direct table insert).
    Sandeep Gandhi

  • API or interface table to create releases for a blanket purchase agreement

    Hi
    I need to know if Oracle provides a standard API or interface table to create releases for a blanket purchase agreement.
    I tried using the release_num field in PO_HEADERS_INTERFACE, PO_LINES_INTERFACE. But this is not working.
    I'm able to create the blanket purchase agreement using the open interfaces, but not the releases.
    Regards,
    Alister

    Hi Alister,
    You can't create a release of a BPA through API, there is no such APIs provided by oracle.
    Where as you can create a BPA by using API. You need to dump/poplulate data in PO_headers_interface & PO_Lines_intreface table.. Then use Purchasing Documents Open Interface API to create a BPA.
    Regards,
    S.P DASH

  • How to update an existing supplier using Supplier Open Interface Import?

    Hi
    I need to updated an existing supplier.
    Is it possible to update using supplier open interface import and how?
    Thanks in advance.
    Thanks,
    Mallesh

    Hi Atul,
    I am using CCM 2.0 and SRM 5.0 (EBP5.5).
    We are not using XI, so i guess we cant use the program "/ccm/file_upload".
    we have migrated the product master data from R/3.
    We have developed a report which takes product category as input and gives out flat file in csv format containg all the items in that prod category.
    Then we upload the file in CCM by logging thro the brpwser.
    Similarly, i can develop another program which will give me a CSV file foll all those items changed in R/3 in a day.
    Then we can upload that file in CCM.
    But i have doubt if it will update the existing items in catalog.
    Hope I could make myself clear.
    Thanks
    Abhishek

  • Error on Device Access API class/interface import

    Hi,
    I have followed https://apex.oracle.com/pls/apex/f?p=44785:141:128148408213710::::P141_PAGE_ID,P141_SECTION_ID:144,1032#prettyPhoto/1/ video tutorial to set up Java ME Embedded development environment in my Windows system and I have chosen Raspberry PI as embedded platform for ME applications.
    I thought of experimenting on Pi’s GPIO header to control a LED through a Switch. But import statement for com.oracle.deviceaccess.PeripheralConfig is giving error in NetBeans IDE and there is no Java ME library containing this interface in the ME SDK installation directory so that I can include that in project classpath to get rid of this error.
    Where can I download the JAR for Device Access API?
    Please suggest…
    Thank you.

    Thank you for your reply.
    I could successfully execute ‘blinking LED’ application on Raspberry PI, I have done this using DeviceManager class, GPIOPin interface present in device-io_1.0.jar which has come with ME SDK installation (C:\Java_ME_platform_SDK_8.0\lib).
    But https://apex.oracle.com/pls/apex/f?p=44785:141:10585690084130::::P141_PAGE_ID,P141_SECTION_ID:144,1033#prettyPhoto/2/ demonstrates the same application by using classes and interfaces present in com.oracle.deviceaccess package (for eg, com.oracle.deviceaccess.PeripheralManager, com.oracle.deviceaccess.gpio.GPIOPin) and the import on the same is not working in my IDE (compile time error).
    I have used below software installers in a Windows7 system for development environment set up:
    Java SE SDK: jdk-8u11-windows-x64.exe
    Java ME SDK: oracle-jmesdk-8-0-rr-win32-bin.exe
    NetBeans all-in-one bundle: netbeans-8.0-windows.exe
    NetBeans plugins for Java ME: oracle-jmesdk-8-0-rr-nb-plugins.zip
    I have used only above installers.Have I missed anything during development environment setup??
    Please suggest further…
    Thanks

  • Access KM using API as predefined user

    Hello, dear experts!
    Currently I am going to use KM as file storage for my application. I want to prevent direct access to KM content for all users and allow them to upload and download files only using my application.
    The problem is:
    I use not context of current user but some user found in UME.
    IUser user = UMFactory.getUserFactory().getUserByLogonID("Administrator");
    com.sapportals.portal.security.usermanagement.IUser ep5User = portalUserFactory.getEP5User(user);
    context = new ResourceContext(ep5User);
    When I try to operate KM (for instance create new folder) I get error: "User <Administrator> is not authenticated"
    But user "Administrator" has all rights to access KM.
    Is it possible to access KM using API as different user? Or is there another way to solve the problem?
    Best regards,
    Anton.

    Hi, Praveen!
    Thank you for your answer. Your code works fine!
    But when I created my own service user "service_user" under Content Management  -> Utilities -> System Principals I cannot get resource context even after restarting servlet engine.
    I get an exception java.security.PrivilegedActionException: com.sapportals.wcm.repository.ResourceException: User management exception: Could not get service user "service_user".
    This user has the same permissions as "cmadmin_service".
    Also user with the same name was created in UME.
    May be I should execute some additional administrating task?
    Best regards,
    Anton.

Maybe you are looking for