AP Credit Memo - R12
Having an issue when paying invoices in batches. Credit memos are not being applied to invoices. I have the credit memos matched to the appropriate invoices. Any ideas why I am seeing this behavior?
Thank you
Can you do a Quick payment from Payment Workbench for a similar scenario, so that we can narrow down whether the issue is on the 1) Credit Memo OR 2) Payment Process Request.
Also is the credit memo amount less than the Invoice amount ?
PPR would select the Credit Memo only it the CM amount is less than the Standard Invoice amount ....
Also if your Credit Memo amount matches exactlly to the Standard Invoice amount, it would result in Zero as the amount to be paid, in which case PPR would select the Credit Memo only when your Bank configuration is enabled for Zero payments to be made, else it would not select the credit memo.
Regards,
Ivruksha
Similar Messages
-
Need API for Credit Memo creation-R12
Hi All,
I am working on R12 Implementation process. I have a requirement for creating the "Credit Memo" using API.
Could you please any one provide the API for Credit Memo creation process.
Thanks,
LSPHi,
Please refer the following links:
http://www.betteroracle.com/2012/08/ar-api-create-credit-memo-r12.html
http://easyoracleapps.blogspot.com/2011/08/creating-credit-memos-and-appling-these.html
http://prasanthapps.blogspot.com/2011/05/credit-memo-creation-via-api.html
Googling will help you indeed
Rgds, -
How to create On Account Credit Memo in R12.1.3
Hello Experts / Dina,
Oracle claims that there is new feature of creating credit memo On Account can be done by using Oracle Projects billing with R12.1.3 only.
For the same they say that:-
The Interface Invoices to Receivables process creates credit memo as On Account Credit Memo when the following conditions are satisfied:
1> The Allow Over Application option is set to No in Oracle Receivables and the Create On Account Credit Memo option is enabled in Oracle Projects and
2> There is no balance available to adjust on the invoice
But I am not sure where to perform the setup mentioned on line 1 of setting up Create On Account Credit Memo option is enabled in Oracle Projects.
Does anyone know about it ? Is it a profile option or setup on someother screen. Please help.
Thanks
Edited by: oracle_samba on Feb 14, 2013 6:16 AMHi Dina,
Any help on this?
I found this info under RCD "ORACLE E-BUSINESS SUITE RELEASE CONTENT DOCUMENT Projects Releases 12.1 and 12.2 (inclusive of 12.0.2 – 12.0.7)"section 3.2.3.1. On Account Credit Memo Creation on page 6.
Thanks
:-) -
R12: Create on-account Credit Memo with invoicing and accounting rules
In R12.1.2: when using the AR_INVOICE_API_PUB it seems to be impossible to create a on-account Credit Memo with invoicing and accounting rules. The next errors are returned by the API:
- AR_INAPI_INV_RULE_NOT_REQUIRED
Do not include an invoicing rule if the transaction type's class is Debit Memo or Credit Memo.
- AR_INAPI_RULE_NOT_ALLOWED
Do not enter an invoicing or accounting rule for on-account credit memos
Please advice how to create on-account Credit Memo with invoicing and accounting rules using an API.
Edited by: nl05517 on Jan 17, 2011 10:43 PMWe will use the AR_CREDIT_MEMO_API_PUB api.
-
R12 - Match Credit Memo in Payables Open Interface
Hi,
Is it possible to match a credit memo in the Payables Open Interface and if so how?
I thought the PRICE_CORRECT% fields on the AP_INVOICE_LINES_INTERFACE table may help but they appear to want a PO to match to.
Any help appreciated.
Thanks
HeathFor whatever it is worth....
This is resolved by ledger set up--> Accounting Setups and adding the balancing segments for which the accounts relate to. -
Error while creating an Credit memo in AR + R12
Hi All,
I am trying to create a credit memo in AR, based on the transaction i.e., an invoice of AR.
But i am not able to create.
I am encounter the following error
"Your credit memo transaction can only credit an invoice or a debit memo line
Failure encountered in AR_CREDIT_MEMO_API_PUB.Create_request call to arw_cmreq_cover.ar_request_cm".
My code is as follows:
DECLARE
l_dummy varchar2(240);
l_customer_trx_id ra_customer_trx.customer_trx_id%type;
l_line_credits_flag ra_cm_requests.line_credits_flag%type;
l_line_amount number;
l_freight_amount number := 0;
l_cm_lines_tbl arw_cmreq_cover.cm_line_tbl_type_cover;
l_cm_reason_code varchar2(150);
l_comments varchar2(150);
l_msg_count number := 0;
l_msg_data varchar2(20000) := null;
l_return_status varchar2(1);
l_request_id NUMBER;
l_batch_source_name varchar2(150) default null;
cm_trx_id number;
BEGIN
fnd_global.apps_initialize(1018094,50559,222,0);
mo_global.set_policy_context('S',204);
arp_global.init_global;
l_customer_trx_id := 549724 ; --527689;
l_comments := 'Creation of Credit memo';
l_batch_source_name := 'Invoice';
l_cm_lines_tbl(1).customer_trx_line_id := 833940;
l_cm_lines_tbl(1).quantity_credited := -1;
l_cm_lines_tbl(1).price := 1000.00;
l_cm_lines_tbl(1).extended_amount := -1000.00;
l_cm_lines_tbl(2).customer_trx_line_id := 833941;
l_cm_lines_tbl(2).quantity_credited := -2;
l_cm_lines_tbl(2).price := 1000.00;
l_cm_lines_tbl(2).extended_amount := -2000.00;
AR_CREDIT_MEMO_API_PUB.CREATE_REQUEST(
P_API_VERSION => 1.0,
P_INIT_MSG_LIST => FND_API.G_TRUE,
P_COMMIT => FND_API.G_FALSE,
P_VALIDATION_LEVEL => FND_API.G_VALID_LEVEL_FULL,
P_CUSTOMER_TRX_ID => l_customer_trx_id,
P_LINE_CREDIT_FLAG => 'N',
P_CM_REASON_CODE => 'DAMAGED PRODUCT',
P_CM_LINE_TBL => l_cm_lines_tbl,
P_SKIP_WORKFLOW_FLAG => 'Y',
P_CREDIT_METHOD_INSTALLMENTS => null,
P_CREDIT_METHOD_RULES => null,
P_BATCH_SOURCE_NAME => l_batch_source_name,
P_ORG_ID => 204,
X_REQUEST_ID => l_request_id,
X_RETURN_STATUS => l_return_status,
X_MSG_COUNT => l_msg_count,
X_MSG_DATA => l_msg_data);
FND_MSG_PUB.count_and_get (
p_encoded => FND_API.g_false,
p_count => l_msg_count,
p_data => l_msg_data );
dbms_output.put_line('Return Status ==> '||l_return_status);
dbms_output.put_line('Credit Memo request_id ==> '||l_request_id);
dbms_output.put_line('l_msg_count ==> '||l_msg_count);
FOR I IN 1..L_MSG_COUNT LOOP
DBMS_OUTPUT.PUT_LINE(SUBSTR(FND_MSG_PUB.GET(P_MSG_INDEX => I, P_ENCODED => 'F'), 1, 254));
END LOOP;
IF l_return_status <> 'S' THEN
NULL;
ELSE
select cm_customer_trx_id
into cm_trx_id
from ra_cm_requests_all
where request_id = l_request_id;
dbms_output.put_line(' CM trx_id = '|| cm_trx_id );
END IF;
EXCEPTION
WHEN OTHERS THEN
dbms_output.put_line('exception error!');
dbms_output.put_line(substr(sqlerrm, 1, 80));
fnd_message.retrieve(l_dummy);
dbms_output.put_line(l_dummy);
END;
Please advise me where i am wrong .... Thanks in Advance.
Regards,
Basha.
Edited by: zaheer on Aug 1, 2011 8:43 PMI am encounter the following error
"Your credit memo transaction can only credit an invoice or a debit memo line
Failure encountered in AR_CREDIT_MEMO_API_PUB.Create_request call to arw_cmreq_cover.ar_request_cm".Please see these docs.
Listing of AutoInvoice Error Messages and Troubleshooting Tips to Resolve each Error [ID 1138254.1]
Credit Memo Errors During Autoinvoice Process - Invalid reference line attribute value (REFERENCE_LINE_ATTRIBUTE1-15) [ID 405445.1]
Thanks,
Hussein -
Credit Memo Import from OM for the closed Invoice in AR ( R12 Instance)
Hi
We need a solution for the below :
1. Create a Sales order and ship to customer
2. Import Invoice in AR
3. Apply the Receipt against the Invoice
4. Create a RMA in OM
5. Receive the material in Inventory from Customer
6. Run the Autoinvoice Master Program in AR
7.Program goes in the error.
8.Un apply the receipt manually
9.Re run the auto invoice Master program
10.Credit memo created in AR.
One the step-6 is completed then we expect the functionality is as below:
1. Receipts are unapplied from Invoice automatically
2. Credit Memo is imported in the AR
3. Credit Memo is applied to the Invoice automatically
So we need to know is there any specific configuration are required with respect to the above functionality.
Thanks
JogendraJogendra
I don't think this is available as out of the box functionality.
You may have use order line workflow to see if the invoice of this order is already paid (I am sure you are referencing the order in RMA, so you can find the invoice).Before line is closed, you need to unapply the the receipt so that the credit memo that is about to be created, can be applied to the invoice.
Thanks
Nagamohan -
Is it possible to create a deposit for RMA Order instead of Credit Memo?
Hi,
We are on R12.1.1 and at customer location, they have developed some customization which is bringing S.O. on HOLD Status if customer has not paid the amount in advance? (Prepayment scenario)
Now, what they want is : If there is an RMA Order from the customer, then instead of creating credit memo and send back the money to customer, they want to use this amount in the next order from that customer so that S.O. will not go on a HOLD status.
I was exploring Deposit functionality which we can use it as S.O. line level but just wondering, if is it possible to create Deposit as and when RMA order is created in stead of Credit memo?
Also, while using Prepayment functionality in R12.1, I am getting some error related to "Please enter receipt number" when I press Process Payment button.
Any help will be highly appreciated.Copy Name is one of the editable fields in metadata panel on right side of Library module.
-
DFF Values Default in Credit Memo from AR Invoice
Hi,
We have entered an AR Invoice with DFF values at the Line Level.
We are creating a Credit Memo directly from the Invoice.Almost all the information in the Credit Memo defaults from the Invoice which is being credited. The DFF information is not defaulted from the Invoice Line level.
We have to manually enter them.
Is there someway to default the DFF values from the Invoice onto the Credit Memo ?
We are on R12.1.3
Regards,
Hari CharanHi Hari Charan,
in 11i this seems to be not possible, as there is an enhancement request available for the same. However for R12 there is a patch suggested by oracle in the below documentation ...Please review the note in detail
Transactions Form Issue: Credit Memo Does Not Inherit Descriptive Flexfields of Invoice [ID 1316534.1]
Regards,
Ivruksha -
Solution for viewing AR credit memo relevant to AP invoice
In R12, we no longer have the functionality of applying miscellaneous receipts to credit memos. Using this functionality in 11i, we were able to make payments through AR.
In 11i, we were using API (AR_CM_APPLICATION_PUB.activity_application) for creating and applying Misc Receipts to Credit Memos. In this process, it would first create miscellaneous receipt using API (AR_Receipt_API_PUB.Create_Misc) and then apply it to corresponding credit memo. Then standard remittance process in AR would pick up the receipts and generate a remittance file which would be transmitted to the bank as a payment instruction. Hence, we were not using AP for payments.
However in R12, the above mentioned standard functionality has changed. Now the same API (AR_CM_APPLICATION_PUB.activity_application) creates a receivable activity (“Refund”) in AR and creates an AP Invoice in AP instead of Miscellaneous receipt in AR. This AP invoice can then be paid using Oracle Payments. However, this is making our solution more complex in R12 compared to 11i.
Technical Details from R12
1. In R12 API - AR_CM_APPLICATION_PUB.activity_application is calling API “ar_refunds_pvt.create_refund” instead of “AR_RECEIPT_API_PUB.create_misc”, which creates the AP Invoice.
2. Form - ARXTWMAI is calling one pll in one of the form trigger and in turn the procedure (ar_refunds_pvt.create_refund) is called, which creates AP Invoice.
Un-answered questions:
1. Is there anyway to view the refund in AR independently (Other than going to Credit Memo and see the activities)?
2. How aging and customer exposure in AR are impacted, if payment is not made for the refund AP invoice?
3. Is it possible to drill down to the original credit memos from AP Invoices?
4. Invoice fields like pay group, payment terms are defaulted from the Payables system setups. Is it possible to pass those in the API or can we use different values for these parameters other than payable system setup?Hi Anil,
Thanks for the response. When an invoice has the exact same distribution accounting as a credit memo then your scenario is valid. I think that scenario occurs when you create an RMA for a particular sales order for example. The RMA would then reverse the exact accounting of the original sales invoice.
However a manual credit memo in AR can be applied to any valid invoice for that customer (from any point in time). At a point in time the auto accounting rules may have been different causing the generated account string to be different for the same customer. We regularly have cases where a credit memo for a customer applied to an older invoice for that same customer has different distribution accounts. The credit memo application journal actually adjusts this so that the accounting in GL will be correct.
ie
Invoice from 01-Jan-2008
DR Receivables Account 130000 -> $1000
CR Revenue Account 400000 -> $1000
Now if you create a manual credit for the item in full today, the entry of the Credit memo might look like this
DR Revenue Account 400000 -> $1000
CR Receivables Account 120000 -> $1000
Credit memo application to apply the credit memo to the original invoice:
CR account 130000 $1000
DR account 120000 $1000
Now this functionality was standard functionality in 11i because I guess the designers realised if there was no "correction" journal then your GL would be imbalanced at an account level.
Rgds
Shankar -
Receivables question: AR invoices/credit memos between Supplier Sites
I'm trying to solution a client requirement of having the ability to transfer AR invoices/credit memos between supplier sites of the same supplier. Is this possible or is there a comparable workaround available in Receivables R12?
Thanks,
ChrisChris,
are you sure ... AR Invoices/Credit Memos to Suppliers ??? Looks like a typo error some where ... However, we might not be able to transfer transactions from one site to another (be it supplier or customer), what we can do is merge ....in which case all transactions that are appearing against a particular site would be pushed to the new site ......this could be taken as a workaround ...
Merge functionality comes with very less flexbility, you cannot choose the transactions that you wanted to merge ....
Regards,
Ivruksha -
Hello!
I will start out by apologizing up front if I waste anyone's time with this inquiry!
This is more of a how should we be doing it out of the box issue.
First a little background - we are a gold company that has been using Oracle applications since 1991.Currently we use Payables, Inventory, Purchasing, GL, HR/Payroll, EAM, FA, iExpense, iProcurement and probably a few others I have forgotten.
Currently when we pay an invoice in accounts payables and then an item is returned to a vendor from our warehouse, Ap gets a credit invoice back from that vendor providing credit info. They go ahead and adjust the invoice on the Ap side, then send an email to purchasing and to the receivers in our warehouse handling the inventory. The receivers in the warehouse un-receive the item and the buyers go in and adjust their line items on that PO.
This is very cumbersome and our warehouse supervisors' feeling is that this process puts unnecessary burden on our receivers.
I am curious how others handle credit memos - I also have logged an SR with Oracle support to see if I can get a "this is how its suppose to work" synopsis to see if we are even processing credit memos correctly and if so what modules you need to make it all work - even if its to point me to good white paper or document on it.
I also would like to know if anyone has automated this. We are currently working in 11.5.10 but are upgrading to 12 within 2 years so I am curious to find out if r12 resolves anything for us.
Any info is greatly appreciated
Regards
Danny L Sullivan
Senior Systems Analyst
Barrick Gold of North America
Nevada Shared Business Center
775-748-1105Just adding a reply that the issue is closed for you is not enough to close a discussion in SCN.
Find here a guidance How to close a discussion and why
Please review your other >70 open discussions and close them if you are not anymore interested on a solution, got the solution or found one yourself -
Hey Guys,
I have to create credit memo for invoice but the api API AR_CREDIT_MEMO_API_PUB.CREATE_REQUEST end with the following error.
Error Calling arp_process_header.post_commit ORA-20001:
Failure encountered in AR_CREDIT_MEMO_API_PUB.Create_request call to arw_cmreq_cover.ar_request_cm
My environment detail are following
Database : Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
Application : 12.0.6
Patch Level - R12.AR.A.6
Kindly help me its urgent bases
Regards
Mazhar HussainThe code is following
CREATE OR REPLACE PACKAGE BODY DMAPAR03_PVT AS
NAME: DMAPAR03_PVT
PURPOSE: CREATING CREDIT MEMO FOR INVOICES
REVISIONS:
Ver Date Author Description
1.0 29-Dec-2011 MAZHAR HUSSAIN 1. Created this package.
PROCEDURE CREATE_CM(
ERRBUF OUT VARCHAR2,
RETCODE OUT VARCHAR2,
P_ORG_ID IN NUMBER,
P_TRX_TYPE IN NUMBER,
P_TRX_NUM_FR IN VARCHAR2,
P_TRX_NUM_TO IN VARCHAR2
IS
V_TRX_DATE DATE := '31-AUG-2011';
CURSOR C_TRX
IS
SELECT TRX.TRX_NUMBER, TRX.CUSTOMER_TRX_ID, RS.CREDIT_MEMO_BATCH_SOURCE_ID CM_SOURCE,
NVL (SUM (TL.EXTENDED_AMOUNT), 0) LINE_AMT,
(SELECT NVL (SUM (L.EXTENDED_AMOUNT), 0)
FROM RA_CUSTOMER_TRX_LINES_ALL L
WHERE L.CUSTOMER_TRX_ID = TRX.CUSTOMER_TRX_ID
AND L.LINE_TYPE = 'TAX') TAX_AMT, RS.NAME SOURCE_NAME,
RS.DEFAULT_INV_TRX_TYPE DEF_TRX_TYPE, TYP.NAME TRX_TYPE_NAME,
RS.BATCH_SOURCE_ID, TYP.CREDIT_MEMO_TYPE_ID
FROM RA_CUSTOMER_TRX_ALL TRX,
RA_CUSTOMER_TRX_LINES_ALL TL,
RA_CUST_TRX_TYPES_ALL TYP,
RA_BATCH_SOURCES_ALL RS
WHERE 1 = 1
AND TRX.TRX_NUMBER BETWEEN NVL (P_TRX_NUM_FR, TRX.TRX_NUMBER)
AND NVL (P_TRX_NUM_TO, TRX.TRX_NUMBER)
AND TRX.CUSTOMER_TRX_ID = TL.CUSTOMER_TRX_ID
AND RS.BATCH_SOURCE_ID = TRX.BATCH_SOURCE_ID
AND TYP.CUST_TRX_TYPE_ID = TRX.CUST_TRX_TYPE_ID
AND TYP.TYPE != 'CM'
AND TYP.CUST_TRX_TYPE_ID = P_TRX_TYPE
AND TRX.TRX_DATE <= V_TRX_DATE
AND TL.LINE_TYPE = 'LINE'
AND TRX.ORG_ID = P_ORG_ID
AND NVL (TRX.ATTRIBUTE7, 'N') != 'Y' --PREVENT DUPLICATE IMPORT
AND TRX.ATTRIBUTE2 IS NOT NULL ------ MIGRATION REP
GROUP BY TRX.TRX_NUMBER, TRX.CUSTOMER_TRX_ID, RS.NAME, TYP.NAME,
RS.DEFAULT_INV_TRX_TYPE, RS.CREDIT_MEMO_BATCH_SOURCE_ID,
RS.BATCH_SOURCE_ID, TYP.CREDIT_MEMO_TYPE_ID
ORDER BY 1 ;
V_MSG_COUNT NUMBER;
V_MSG_DATA VARCHAR2 (2000);
V_RETURN_STATUS VARCHAR2 (1);
V_REQUEST_ID NUMBER;
V_CM_REASON VARCHAR2(100) := 'A/R ERROR';
V_DUMMY VARCHAR2(240);
V_CM_TRX_NUM RA_CUSTOMER_TRX_ALL.TRX_NUMBER%TYPE;
V_CM_TRX_ID RA_CUSTOMER_TRX_ALL.CUSTOMER_TRX_ID%TYPE;
V_TRX_SOURCE VARCHAR2(100);
V_ORG_NAME VARCHAR2(100);
BEGIN
-- DBMS_SUPPORT.START_TRACE;
BEGIN
SELECT NAME INTO V_ORG_NAME
FROM HR_OPERATING_UNITS
WHERE ORGANIZATION_ID = P_ORG_ID;
END;
IF UPPER(V_ORG_NAME) LIKE 'CN003 (OU)'
THEN
V_TRX_SOURCE := 'CN003_CM_MIGRATION';
ELSE
V_TRX_SOURCE := 'CN001_CM_MIGRATION';
END IF;
FND_GLOBAL.APPS_INITIALIZE
(USER_ID => FND_PROFILE.VALUE('USER_ID'),
RESP_ID => FND_PROFILE.VALUE('RESP_ID'),
RESP_APPL_ID => FND_PROFILE.VALUE('RESP_APPL_ID'),
SECURITY_GROUP_ID => 0
MO_GLOBAL.SET_POLICY_CONTEXT ('S', P_ORG_ID);
ARP_GLOBAL.INIT_GLOBAL;
FOR C_TRX_ROW IN C_TRX
LOOP
/*F P_TRX_TYPE <> NVL(C_TRX_ROW.DEF_TRX_TYPE, -1)
THEN
FND_FILE.PUT_LINE (FND_FILE.OUTPUT,'Default Transaction Type Not Defined
or Not Match with Invoice Transaction Type on Transaction Source: '
||C_TRX_ROW.SOURCE_NAME);
EXIT;
ELSIF
*/ IF C_TRX_ROW.BATCH_SOURCE_ID <> NVL(C_TRX_ROW.CM_SOURCE, -1)
THEN
FND_FILE.PUT_LINE (FND_FILE.OUTPUT,'Credit Memo Batch Source Not Defined
or Not Match with Invoice Transaction Source on Transaction Source: '
||C_TRX_ROW.SOURCE_NAME);
EXIT;
ELSIF C_TRX_ROW.CREDIT_MEMO_TYPE_ID IS NULL
THEN
FND_FILE.PUT_LINE (FND_FILE.OUTPUT,'Credit Memo Transaction Type not Assigned on
Invoice Transaction Type : '||C_TRX_ROW.TRX_TYPE_NAME);
EXIT;
ELSE
BEGIN
AR_CREDIT_MEMO_API_PUB.CREATE_REQUEST
(P_API_VERSION => 1.0,
P_INIT_MSG_LIST => FND_API.G_TRUE,
P_COMMIT => FND_API.G_FALSE,
P_VALIDATION_LEVEL => FND_API.G_VALID_LEVEL_FULL,
P_CUSTOMER_TRX_ID => C_TRX_ROW.CUSTOMER_TRX_ID,
P_LINE_CREDIT_FLAG => 'N',
P_LINE_AMOUNT => -C_TRX_ROW.LINE_AMT,
P_TAX_AMOUNT => -C_TRX_ROW.TAX_AMT,
P_CM_REASON_CODE => V_CM_REASON,
P_SKIP_WORKFLOW_FLAG => 'Y',
P_CREDIT_METHOD_INSTALLMENTS => NULL,
P_CREDIT_METHOD_RULES => NULL,
-- P_BATCH_SOURCE_NAME => C_TRX_ROW.SOURCE_NAME,
P_BATCH_SOURCE_NAME => V_TRX_SOURCE,
P_ORG_ID => P_ORG_ID,
P_DISPUTE_DATE => V_TRX_DATE,
-- P_TRX_NUMBER => 'CM-'||C_TRX_ROW.TRX_NUMBER,
X_REQUEST_ID => V_REQUEST_ID,
X_RETURN_STATUS => V_RETURN_STATUS,
X_MSG_COUNT => V_MSG_COUNT,
X_MSG_DATA => V_MSG_DATA
FND_MSG_PUB.COUNT_AND_GET (P_ENCODED => FND_API.G_FALSE,
P_COUNT => V_MSG_COUNT,
P_DATA => V_MSG_DATA
DBMS_OUTPUT.PUT_LINE ('Return Status ==> ' || V_RETURN_STATUS);
DBMS_OUTPUT.PUT_LINE ('Credit Memo request_id ==> ' || V_REQUEST_ID);
DBMS_OUTPUT.PUT_LINE ('V_msg_count ==> ' || V_MSG_COUNT);
-- FND_MESSAGE.RETRIEVE (V_DUMMY);
DBMS_OUTPUT.PUT_LINE('Error in Create Credit Transaction:'
|| SUBSTR (SQLERRM, 1, 80)||' -- '||V_DUMMY
-- FND_FILE.PUT_LINE (FND_FILE.OUTPUT,'Return Status ==> ' || V_RETURN_STATUS);
-- FND_FILE.PUT_LINE (FND_FILE.OUTPUT,'Credit Memo request_id ==> ' || V_REQUEST_ID);
-- FND_FILE.PUT_LINE (FND_FILE.OUTPUT,'V_msg_count ==> ' || V_MSG_COUNT);
IF V_RETURN_STATUS = FND_API.G_RET_STS_SUCCESS
THEN
IF V_REQUEST_ID IS NOT NULL
THEN SHOW CM TRX NUMBER
BEGIN
SAVEPOINT NO_DATA;
SELECT TRX.TRX_NUMBER, TRX.CUSTOMER_TRX_ID
INTO V_CM_TRX_NUM, V_CM_TRX_ID
FROM RA_CM_REQUESTS R, RA_CUSTOMER_TRX_ALL TRX
WHERE R.REQUEST_ID = V_REQUEST_ID
AND R.CM_CUSTOMER_TRX_ID = TRX.CUSTOMER_TRX_ID
AND R.CUSTOMER_TRX_ID = C_TRX_ROW.CUSTOMER_TRX_ID;
FND_FILE.PUT_LINE (FND_FILE.OUTPUT, V_RETURN_STATUS|| ' - AR invoice: '
|| C_TRX_ROW.TRX_NUMBER
|| ' | Generated Credit Transaction Number: '
|| V_CM_TRX_NUM||' | Success: '||V_MSG_DATA);
DBMS_OUTPUT.PUT_LINE ( 'AR invoice: '
|| C_TRX_ROW.TRX_NUMBER
|| ' | Generated Credit Transaction Number: '
|| V_CM_TRX_NUM||' | Success: '||V_MSG_DATA);
---REMARKED THE AR INVOICE WAS GENERATED CM--
UPDATE RA_CUSTOMER_TRX_ALL TRX
SET TRX.ATTRIBUTE7 = 'Y',
TRX.ATTRIBUTE8 = V_CM_TRX_ID,
TRX.ATTRIBUTE9 = V_CM_TRX_NUM,
TRX.ATTRIBUTE10 = V_REQUEST_ID,
TRX.INTERFACE_HEADER_ATTRIBUTE12 = NULL
WHERE 1 = 1
AND TRX.ORG_ID = P_ORG_ID
AND TRX.CUSTOMER_TRX_ID = C_TRX_ROW.CUSTOMER_TRX_ID;
UPDATE RA_CUSTOMER_TRX_ALL TRX
SET TRX.TRX_DATE = V_TRX_DATE
WHERE 1 = 1
AND TRX.ORG_ID = P_ORG_ID
AND TRX.CUSTOMER_TRX_ID = V_CM_TRX_ID;
UPDATE RA_CUSTOMER_TRX_LINES_ALL RCTL2
SET RCTL2.INTERFACE_LINE_ATTRIBUTE12 = NULL
WHERE RCTL2.CUSTOMER_TRX_ID = C_TRX_ROW.CUSTOMER_TRX_ID
AND RCTL2.ORG_ID = P_ORG_ID
AND RCTL2.LINE_TYPE = 'LINE'
AND RCTL2.INTERFACE_LINE_ATTRIBUTE12 IS NOT NULL;
COMMIT;
EXCEPTION WHEN NO_DATA_FOUND
THEN
FND_FILE.PUT_LINE (FND_FILE.OUTPUT, 'AR invoice: '
|| C_TRX_ROW.TRX_NUMBER
|| ' | Generated Credit Transaction Number not found. '
DBMS_OUTPUT.PUT_LINE ( 'AR invoice: '
|| C_TRX_ROW.TRX_NUMBER
|| ' | Generated Credit Transaction Number not found. '
ROLLBACK TO NO_DATA;
---REMARKED THE AR INVOICE WAS GENERATED CM--
END;
END IF;
END IF;
IF V_RETURN_STATUS = FND_API.G_RET_STS_UNEXP_ERROR
OR V_RETURN_STATUS = FND_API.G_RET_STS_ERROR
THEN
FND_FILE.PUT_LINE (FND_FILE.OUTPUT,'Invoice Number: '||C_TRX_ROW.TRX_NUMBER||
' | Error:' || V_MSG_DATA );
DBMS_OUTPUT.PUT_LINE ('Error:' || V_MSG_DATA
||' | For Invoice Number: '||C_TRX_ROW.TRX_NUMBER);
END IF;
IF V_MSG_COUNT > 1
THEN
V_MSG_COUNT := 0;
LOOP
V_MSG_DATA :=
FND_MSG_PUB.GET (FND_MSG_PUB.G_NEXT, FND_API.G_FALSE);
IF V_MSG_DATA IS NULL
THEN
EXIT;
END IF;
FND_FILE.PUT_LINE (FND_FILE.OUTPUT, 'msg_data:' || V_MSG_DATA);
DBMS_OUTPUT.PUT_LINE ( 'msg_data:' || V_MSG_DATA);
END LOOP;
END IF;
EXCEPTION
WHEN OTHERS
THEN
FND_MESSAGE.RETRIEVE (V_DUMMY);
FND_FILE.PUT_LINE (FND_FILE.OUTPUT,
'Error in Create Credit Transaction:'
|| SUBSTR (SQLERRM, 1, 80)||' -- '||V_DUMMY
DBMS_OUTPUT.PUT_LINE('Error in Create Credit Transaction:'
|| SUBSTR (SQLERRM, 1, 80)||' -- '||V_DUMMY
END;
END IF;
END LOOP;
END CREATE_CM;
END DMAPAR03_PVT;
/ -
GL journal line for AR Credit Memo application to invoices
Hi all,
We upgraded to R12 (12.0.4) in January-09. Unfortunately we've had various issues with AR that we've been working through with Oracle Support. One of the issues has been the accounting for credit memo applications to invoices not being transferred to GL by the Create Accounting program. Previously in 11i all credit memo application to invoices were transferred to GL. So basically you would have a journal for the invoice, the credit memo and the credit memo application itself. The credit memo application was transferred to GL automatically via the Transfer to GL program and had a journal category of 'Credit memo applications'. There seems to be no comparable journal being created for this in R12.
Does anyone know if the Credit Memo Applications should still generate a journal line in GL? Have any customers reported this as being an issue in R12?
Thanking everyone in anticipation.
Rgds
ShankarHi Anil,
Thanks for the response. When an invoice has the exact same distribution accounting as a credit memo then your scenario is valid. I think that scenario occurs when you create an RMA for a particular sales order for example. The RMA would then reverse the exact accounting of the original sales invoice.
However a manual credit memo in AR can be applied to any valid invoice for that customer (from any point in time). At a point in time the auto accounting rules may have been different causing the generated account string to be different for the same customer. We regularly have cases where a credit memo for a customer applied to an older invoice for that same customer has different distribution accounts. The credit memo application journal actually adjusts this so that the accounting in GL will be correct.
ie
Invoice from 01-Jan-2008
DR Receivables Account 130000 -> $1000
CR Revenue Account 400000 -> $1000
Now if you create a manual credit for the item in full today, the entry of the Credit memo might look like this
DR Revenue Account 400000 -> $1000
CR Receivables Account 120000 -> $1000
Credit memo application to apply the credit memo to the original invoice:
CR account 130000 $1000
DR account 120000 $1000
Now this functionality was standard functionality in 11i because I guess the designers realised if there was no "correction" journal then your GL would be imbalanced at an account level.
Rgds
Shankar -
Error while adding A/P Credit Memo!
Error while adding A/P Credit Memo..........
'G/L Accounts' (OACT) (ODBC-2028) Message - 131-183
Please advice me .....
Thanks...Hi
Check this thread this may help you.
[Re: AP Invoice - No Matching Account Error]
Regards
Balaji
Maybe you are looking for
-
Delivery of goods & customer Invoices
Dear Friends, We are implementing only MM & FICO modules only. We are not suppose to implement SD, means Sales Area, Sales Org., Distribution Channel, Division etc., In this scenarios, we need to maintain some of the SD scenarios, like delivery of
-
Korg Legacy M1 in multi mode in Logic?
I have a Korg Legacy M1 plugin. Although there are multiple outputs selectable in the gui of the plugin, there is no multi out version available in the instrument menu in Logic's channel strip, only stereo. Is this just not implemented in Logic, or a
-
I'm currently using iTunes 7.6.0.29 with a 1.1.3 iPhone. I've got a lot of lesser known albums that iTunes can't grab album art for, so I did the get info -> artwork fix to manually set the album art for all those albums. Everything looks fine in iTu
-
Hello by saying that already solved the issue of multi-state in a page and my application is still not working, I'm trabanado with InDesign CS6 and still can see the MSO working ...
-
How I can get root access to my ST15i updated to ICS?
Recently I updated my ST15i to ICS I need root access as there is verry limited memory for application Solved! Go to Solution.