Arp_process_application.cm_application

Dear All,
Im working on the above API, and it give me error.
Error at line 1
ORA-01403: no data found
ORA-06512: at "APPS.ARP_PROCESS_APPLICATION", line 4880
ORA-06512: at "APPS.CREDIT_MEMO_INVOICE", line 26
ORA-06512: at line 2
API CODE:
create or replace procedure apps.credit_memo_invoice
is
  -- Input
  v_cm_payment_schedule       number          := 34002; -- Payment Schedule ID of Credit Memo from APPS.AR_PAYMENT_SCHEDULES_ALL
  v_inv_payment_schedule      number          := 34000; -- Payment Schedule ID of Invoice from APPS.AR_PAYMENT_SCHEDULES_ALL
  v_amount_applied            number          := 1000;   -- Amount of credit memo to apply to invoice
  v_apply_date                date            := SYSDATE;
  v_gl_date                   date            := SYSDATE-1;               
  v_ussgl_transaction_code    varchar2(1024);   -- null, but check AR_RECEIVABLE_APPLICATIONS_ALL
  v_null_flex                 varchar2(1024);   -- null, unless you have flexfield segments to define
  v_customer_trx_line_id      number :=33000;           -- null, but check AR_RECEIVABLE_APPLICATIONS_ALL
  v_comments                  varchar2(240)   :=  'Applied automatically';
  v_module_name               varchar2(128)   :=  'XXCREDIT_APPLICATION.APPLY_CREDIT_MEMO'; -- If null, validation won't occur
  v_module_version            varchar2(128)   :=  '1'; -- If null, validation won't occur
  -- Output
  v_out_rec_application_id    number;
  v_acctd_amount_applied_from number;
  v_acctd_amount_applied_to   number;
begin
  apps.arp_process_application.cm_application(
    p_cm_ps_id                  => 1.0,
    p_invoice_ps_id             => v_inv_payment_schedule,
    p_amount_applied            => v_amount_applied,
    p_apply_date                => v_apply_date,
    p_gl_date                   => v_gl_date,
    p_ussgl_transaction_code    => v_ussgl_transaction_code,
    p_attribute_category        => v_null_flex,
    p_attribute1                => v_null_flex,
    p_attribute2                => v_null_flex,
    p_attribute3                => v_null_flex,
    p_attribute4                => v_null_flex,
    p_attribute5                => v_null_flex,
    p_attribute6                => v_null_flex,
    p_attribute7                => v_null_flex,
    p_attribute8                => v_null_flex,
    p_attribute9                => v_null_flex,
    p_attribute10               => v_null_flex,
    p_attribute11               => v_null_flex,
    p_attribute12               => v_null_flex,
    p_attribute13               => v_null_flex,
    p_attribute14               => v_null_flex,
    p_attribute15               => v_null_flex,
    p_global_attribute_category => v_null_flex,
    p_global_attribute1         => v_null_flex,
    p_global_attribute2         => v_null_flex,
    p_global_attribute3         => v_null_flex,
    p_global_attribute4         => v_null_flex,
    p_global_attribute5         => v_null_flex,
    p_global_attribute6         => v_null_flex,
    p_global_attribute7         => v_null_flex,
    p_global_attribute8         => v_null_flex,
    p_global_attribute9         => v_null_flex,
    p_global_attribute10        => v_null_flex,
    p_global_attribute11        => v_null_flex,
    p_global_attribute12        => v_null_flex,
    p_global_attribute13        => v_null_flex,
    p_global_attribute14        => v_null_flex,
    p_global_attribute15        => v_null_flex,
    p_global_attribute16        => v_null_flex,
    p_global_attribute17        => v_null_flex,
    p_global_attribute18        => v_null_flex,
    p_global_attribute19        => v_null_flex,
    p_global_attribute20        => v_null_flex,
    p_customer_trx_line_id      => v_customer_trx_line_id,
    p_comments                  => v_comments,
    p_module_name               => v_module_name,
    p_module_version            => v_module_version,
    p_out_rec_application_id    => v_out_rec_application_id,
    p_acctd_amount_applied_from => v_acctd_amount_applied_from,
    p_acctd_amount_applied_to   => v_acctd_amount_applied_to
  commit;
  -- Print OUT parameters
  dbms_output.put_line(' v_out_rec_application_id '     || v_out_rec_application_id);
  dbms_output.put_line(' v_acctd_amount_applied_from '  || v_acctd_amount_applied_from);
  dbms_output.put_line(' v_acctd_amount_applied_to '    || v_acctd_amount_applied_to);
  if v_out_rec_application_id is not null then
    dbms_output.put_line('Committing.');
    commit;
  else
    dbms_output.put_line('Rolling back.');
    rollback;
  end if;
end credit_memo_invoice;
Please can any one help me in this issue, it is bit urget..
Thanks

Hi,
What is the application release?
Please see if these docs help.
Note: 264241.1 - Dispute A Transaction Through iReceivables Fails
Note: 363587.1 - Getting App-240191 Error When Entering Disputes In Advance Collections
Note: 402061.1 - Bad Bind Variable In Arp_credit_memo_module
Note: 1071065.1 - When you Click The Credit Icon, Get Error About Invalid GL Account, Why?
Thanks,
Hussein

Similar Messages

  • URGENT!!! - Applying existing credit memo to existing invoice

    Hi All,
    I have found a package (not a public API) which can be used to applying existing CM to existing INV, package is 'ARP_PROCESS_APPLICATION.CM_APPLICATION'. There are many input parameters that need to go in but I am just listing out the ones identified in package documentation:
    p_cm_ps_id - PS Id of the Credit Memo
    p_invoice_ps_id - PS Id of the transaction p_amount_applied - TO amount
    p_apply_date - Application date
    p_gl_date - GL Date
    p_ussgl_transaction_code - USSGL transaction code p_customer_trx_line_id - Line of the transaction applied
    p_module_name - Name of the module that called this procedure p_module_version - Version of the module that called this procedure
    while testing locally, I did set up the org context, initialized the application and provided values for all the variables but sent
    --> null for p_ussgl_transaction_code
    --> null for p_customer_trx_line_id
    --> 'ARREREVB' for p_module_name (this is actually not the module calling this program but gave a random value since the input is not being validated by the package)
    -->'1.0' for p_module_version (random value since it is not being validated)
    After setting up all these values the API is still erroring out on execution. Should I pass any other values to this private API? Did anyone successfully execute this private API ? if yes can you please guide me,thanks.
    Ajay

    Hi
    In the Invoice window Enter Debit or Credit Memo, Form the Match Button ,Select "Invoice"
    Select Match
    In find Invoice Match window Enter Search Creteria for Invoice
    If you want to see a invoice matched to purchase order enter the purchase order mumber
    Then Match
    And while making Payment you have to select that Debit or Credit memo then only it is removed form the Supplier
    Thanks
    Sunil

  • Raise_error in a trigger gives extra errors

    Hi
    I have a question about a trigger.
    The purpose of this trigger is to prevent modifications being made to a record.
    complete code of the trigger:
    TRIGGER AR_APPLICATIONS_ARU BEFORE UPDATE OF DISPLAY ON  AR.AR_RECEIVABLE_APPLICATIONS_ALL 
    FOR EACH ROW
    when (old.attribute13 in ('PAYED','PAID'))
    BEGIN
        IF :NEW.DISPLAY = 'N' AND :OLD.DISPLAY = 'Y' THEN
           RAISE_APPLICATION_ERROR(-20001,'-----------Test foutmelding!!-------------'); 
        END IF;
    END;This trigger shoots when it should, but I get also other error messages:
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    ORA-06512: at "APPS.FND_MESSAGE", line 581
    ORA-06512: at "APPS.FND_MESSAGE", line 537
    ORA-06512: at "APPS.APP_EXCEPTION", line 42
    ORA-06512: at "APPS.ARP_APP_PKG", line 681
    ORA-20001: -----------Test foutmelding!!-------------
    ORA-06512: at "APPS.AR_APPLICATIONS_ARU", line 3
    ORA-04088: error during execution of trigger 'APPS.XXABET_AR_APPLICATIONS_ARU'
    ORA-06512: at "APPS.ARP_PROCESS_APPLICATION", line 522
    FRM-40735: ON-UPDATE trigger raised unhandled exception ORA-06502.What do I do wrong, or how can I suppress those messages?

    [url http://forums.oracle.com/forums/thread.jspa?threadID=551553&tstart=30]duplicate thread

  • Not able to un-apply a cleared receipt

    Hi,
    when i try to do un-apply of a receipt which is in cleared status, its throwing an error:
    ORA-01403: no data found
    ORA-06512: at "APPS.ARP_PROCESS_APPLICATION", line 522
    FRM-40735: ON-UPDATE trigger raised unhandled exception ORA-01403.
    The same process i can able to do in my test instances. Is there any data base issue or could be functional setup missing in Production? can someone share your inputs why im getting this ?
    Thanks in Advance,

    Hello.
    Can you please check if the customer address has been inactivated?
    Octavio

  • Raise error in a trigger

    Hi
    I have a question about a trigger.
    The purpose of this trigger is to prevent modifications being made to a record.
    TRIGGER AR_APPLICATIONS_ARU BEFORE UPDATE OF DISPLAY ON AR.AR_RECEIVABLE_APPLICATIONS_ALL
    FOR EACH ROW
    DECLARE
    e_ERRORNAME EXCEPTION;
    e_TEST EXCEPTION;
    PRAGMA EXCEPTION_INIT(e_TEST, -06512);
    BEGIN
       IF (:NEW.DISPLAY = 'N') AND (:OLD.DISPLAY= 'Y') AND ((:OLD.ATTRIBUTE13='PAYED') OR (:OLD.ATTRIBUTE13='PAID'))
        THEN
         RAISE_APPLICATION_ERROR(-20001,'-----------Test foutmelding!-------------');
       END IF;
    END;This trigger shoots when it should, but I get also other error messages:
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    ORA-06512: at "APPS.FND_MESSAGE", line 581
    ORA-06512: at "APPS.FND_MESSAGE", line 537
    ORA-06512: at "APPS.APP_EXCEPTION", line 42
    ORA-06512: at "APPS.ARP_APP_PKG", line 681
    ORA-20001: -----------Test foutmelding!-------------
    ORA-06512: at "APPS.XXABET_AR_APPLICATIONS_ARU", line 17
    ORA-04088: error during execution of trigger 'APPS.XXABET_AR_APPLICATIONS_ARU'
    ORA-06512: at "APPS.ARP_PROCESS_APPLICATION", line 522
    FRM-40735: ON-UPDATE trigger raised unhandled exception ORA-06502.What do I do wrong, or how can I suppress those messages?

    this works for me:
    create table ar_receivable_applications_all (display varchar2(1), attribute13 varchar2(10));
      1  create or replace TRIGGER AR_APPLICATIONS_ARU BEFORE UPDATE OF DISPLAY ON
      2  AR_RECEIVABLE_APPLICATIONS_ALL
      3  FOR EACH ROW
      4  when (old.attribute13 in ('PAYED','PAID'))
      5  BEGIN
      6     IF :NEW.DISPLAY = 'N' AND :OLD.DISPLAY = 'Y'
      7      THEN
      8       RAISE_APPLICATION_ERROR(-20001,'-----------Test foutmelding!-------------');
      9     END IF;
    10* END;
    SQL> /
    Trigger created.
    SQL> insert into ar_receivable_applications_all values ('Y','PAID');
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> update ar_receivable_applications_all set display='N';
    update ar_receivable_applications_all set display='N'
    ERROR at line 1:
    ORA-20001: -----------Test foutmelding!-------------
    ORA-06512: at "WEBPROD.AR_APPLICATIONS_ARU", line 4
    ORA-04088: error during execution of trigger 'WEBPROD.AR_APPLICATIONS_ARU'
    SQL>

Maybe you are looking for

  • Need help to enable trace/logging for java debugging CRM 5.0 WebShop

    Dear experts, I'm new to sap, and i'm working on CRM 5.0 WebShop J2ee application with nwdi. I have to add a new functionnality, which has to call a custom FM in CRM. This FM has been tested and is OK. I have read the 2 files SAP_ISA50_DevAndExtGuide

  • Date Filter in report

    Hi I could not give date value as a parameter in the filter option of any report.It thows following error in different situations.But my object data type is datetime only.The errors are 1. Exception Message : ADC Server exception in OpenViewset). Sta

  • Using an iPhone as a wireless webcam in Linux

    Hi,  I need to make video calls and I don't have a webcam, so, using GStreamer, I've set up my iPhone to send video to my laptop over my wifi. Skype is recieving the video input from my phone under Options> Video Devices. However, when I activate the

  • Application crashes on MediaPlayer play() method for a Mp4 file

    Hi All, I am using JavaFx 2.2.3 and jdk 1.7.0_09 I am facing some issue with MediaPlayer behaviour when I am selecting a perticular file and playing the media file it crashes the Application and never reflecting any of the error or Exception. I has u

  • Mapping Execution error in PL/SQL

    Hi, We are using OWB Cleint 9.2.0.3.0 and 9.2.0.2.0 Repository for our DWH project.And we execute the Mapping from Pl/SQL Block. And Pre-Mapping is used get the Map-Run Id based on the Mapping Name and the output of this Pre Mapping is used store an