Friday, 19 August 2011

API to create credit memo and appling these against invoices in R12 Receivables

---------------------------------------------------------------------
                    AR Invoice API to create Credit Memo
---------------------------------------------------------------------
               apps.ar_invoice_api_pub.create_invoice
                            (p_api_version               => k_api_version,
                             --1.0,
                             p_init_msg_list             => k_init_msg_list,
                             --'F',
                             p_commit                    => k_commit,   --'F',
                             p_batch_source_rec          => l_batch_source_rec,
                             p_trx_header_tbl            => l_trx_header_tbl,
                             p_trx_lines_tbl             => l_trx_lines_tbl,
                             p_trx_dist_tbl              => l_trx_dist_tbl,
                             p_trx_salescredits_tbl      => l_trx_salescredits_tbl,
                             x_return_status             => l_return_status,
                             x_msg_count                 => l_msg_count,
                             x_msg_data                  => l_msg_data
                            );
---------------------------------------------------------------------
                API call to apply credit memos to Invoice
---------------------------------------------------------------------
            BEGIN
               apps.ar_cm_api_pub.apply_on_account
                  (p_api_version                    => k_api_version,
                   p_init_msg_list                  => k_init_msg_list,
                   p_commit                         => k_commit,
                   p_cm_app_rec                     => l_cm_app_rec,
                   x_return_status                  => l_return_status,
                   x_msg_count                      => l_msg_count,
                   x_msg_data                       => l_msg_data,
                   x_out_rec_application_id         => l_out_rec_application_id,
                   x_acctd_amount_applied_from      => l_acctd_amount_applied_from,
                   x_acctd_amount_applied_to        => l_acctd_amount_applied_to
                  );
              END;
------------------------------------------------------------

No comments:

Post a Comment