'SAPSQL_ARRAY_INSERT_DUPREC' error while cancellation of credit memo.

Hi,
I'am cancelling a credit memo created through 'Sales Return'.When I save the document it gives the message that billing document is created, but just after sometime it shows 'Error info...   00 671: ABAP/4 processor: SAPSQL_ARRAY_INSERT_DUPREC. I've checked SAP notes:208627,154638 and 6080 regarding the mentioned error.
System behaves normally when I cancel an ordinary billing document(cancellation type S1) but when I cancel credit memo (Billing Cancellation type S2) it shows error.Part of the short dump is:
The termination occurred in the ABAP program "SAPLV60U" in "KONV_BEARBEITEN".
The main program was "RSM13000 ".
The termination occurred in line 28 of the source code of the (Include)
program "LV60UF0K"
of the source code of program "LV60UF0K" (when calling the editor 280).
The program "SAPLV60U" was started in the update system.
Processing was terminated because the exception "CX_SY_OPEN_SQL_DB" occurred in
the
procedure "KONV_BEARBEITEN" "(FORM)" but was not handled locally, not declared
in the
RAISING clause of the procedure.
The procedure is in the program "SAPLV60U ". Its source code starts in line 11
of the (Include) program "LV60UF0K ".
Source code extract
000010   ***********************************************************************
000020   *  Unterroutinen RV-Fakturierung                                      *
000030   *                                                                     *
000040   *                KONV_BEARBEITEN                                      *
000050   ***********************************************************************
000060
000070
000080   *                                                                     *
000090   *       FORM KONV_BEARBEITEN                                          *
000100   *                                                                     *
000110   FORM KONV_BEARBEITEN.
000120
000130     CHECK: OHNE_KONV = SPACE.
000140     XVBRK_TABIX = 0.
000150     LOOP AT XVBRK WHERE UPDKZ NE UPDKZ_NEW.
000160       DELETE FROM KONV WHERE KNUMV = XVBRK-KNUMV.
000170     ENDLOOP.
000180
000190     LOOP AT XKOMV.
000200       KONV       = XKOMV.
000210       BELEG = XKOMV-KNUMV.
000220       IF BELEG-ID = '$'.
000230         PERFORM VBRK_BELEGNUMMER_ERMITTELN.
000240         XKOMV-KNUMV = XVBRK-KNUMV.
000250       ENDIF.
000260       MODIFY XKOMV.
000270     ENDLOOP.
     >     INSERT KONV FROM TABLE XKOMV.
000290     IF SY-SUBRC NE 0.
000300       MESSAGE A100 WITH 'KONV' SY-SUBRC XKOMV-knumv.
000310     ENDIF.
000320
000330   ENDFORM.
000340   *eject
Please help.
Thanks with Regards.
Manoj

HI,
We have the same problem , can you please give me an update relating the way you solve it ?
Thanks in advance
Regards

Similar Messages

  • Error while creating a credit memo with reference to invoice

    HI aLL,
    I am facing one issue while creating a credit memo request in VA01 with reference to invoice.
    Our project stock is valuated stock.
    When we try top copy the error pops up" Valuated project stock not allowed with customer stock." and the line item is not copied in the credit memo.
    Diagnosis:The entered wbs manages a valuated project stock,at the same time sales order stock is maintained on sales order line item.this combo is not allowed as different valuation methods within a project is not allowed.
    Tarun Kapur

    Dear Tarun!
    1.Within a project we can get stock only in PROJECT or in SALES ORDER STOCK.....a single material can not be a both place at particular time ..so keep only one
    Project Stock or Sales Order Stock..
    2.Check DIP PRofile (ODP1) in usage BILLING AND RESULT ANALYSIS -Charectiristic -SDOC TYPE CMR.....are you selecting right document to which you want to copy .....
    Rewards Points if usefull
    Regards
    SMITH

  • 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 PM

    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".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

  • Cancel the credit memo

    Dear Guys ,
    the user has posted the credit memo accidentally instead of Posting the invoice in MIRO txn for the PO . Coudl you Please tell me how to cancel this credit memo . We are using MR8M txn , with the reversal reason as "02" the user is getting a  error message as " Quantity invoiced greater then GR quantity" . But if i use reversal reason as " 01" then the allowed posting periods 06/2011  12/2010 are allowed for the compnay code  is displaying .
    Help me regadring this issue .

    Hi
    Goto MIRO Click on the 3rd Button other invoices and input the credit Memo document. Then in invoice document menu click on the reverse.Give the reson and press enter.
    If you cancel the credit Memo it will become Invoice and vice versa.
    Posting period issue check in MMRV for allowed posting period.
    Hope it helps
    Karthik
    Edited by: Karthik on Jun 30, 2011 12:05 PM

  • Generate accounting document for cancel of credit memo

    Hii Guy,
    Need your help to solve this problem.
    My user have perform VK11 to cancel of credit memo. in the sales order document flow, the status is OPEN.
    my user cannot perform creating of accounting document for this cance of credit memo. what are the tcode to generate accounting document ?

    Nizamkz wrote:Hi,
    >
    > Hii Guy,
    >
    > Need your help to solve this problem.
    >
    > My user have perform VK11 to cancel of credit memo. in the sales order document flow, the status is OPEN.
    Are you sure its VK11???? I guess for the cancellation if billing document its VF11......
    Try to do the manual release to accounitng....by going to VF02 and pressing the Green Flag button after entering the cancellation document number. Or Else Try to reverse the posting with FB08.
    Thanks,
    Raja

  • Price Difference Account being hit while making AP credit Memo

    Hello Experts,
    Price Difference Account is being hit while creating AP Credit Memo. I am creating an independent AP Credit Memo (i.e. without any base document). After posting A/P Credit Memo when I look at the Journal Entry it shows 99.43% of amount goes to Price Difference Account and the rest 0.57% goes to Stock account.
    Help required please.
    Thanks & Regards,
    Edited by: Shahzad Nazir on Jan 19, 2011 5:54 PM

    Hi Nazir,
    This entry may have resulted because once you created the GRPO say for item A, the stock would have been consumed in production. And once you created Invoice and after that when you created credit memo, the system could not find the stock so it posted the difference in price difference account. Please run inventory posting list of the items in grpo to check the same.
    Thanks,
    Joseph

  • Error while Cancelling a PO Line

    My user faces a problem while Cancelling a PO Line.. here i explain the whole scenario..
    One PO with only one PO line was created by Autocreate from a Requisition with one line in a financial period 10 months before.
    Now, it is found that Ship-to Org was wrongly entered.. so now they created another same PO Line with correct
    Ship to Org.. and now wants to Cancel the wrong Po Line..
    But while doing so, an Error Comes,
    APP-PO-14056: User Exit #PO REQUEST_ACTION returned error
    Cause: #PO REQUEST_ACTION encountered an internal error.
    Parameters:
    REQUEST_ACTION,CANCEL,PO,STANDARD,998802,209526,227116,0,GLOBAL.info_request_fie
    ld,GLOBAL.status_field,GLOBAL.online_report_id,GLOBAL.return_code,REASON,CANCEL_
    REQS,ACTION_DATE,USE_GLDATE
    and Cancellation is not done...
    Please help..

    Hi,
    Please see these docs.
    System Hang When Try To Cancel Po Shipment - APP-PO-14056: User Exit #PO REQUEST_ACTION returned error [ID 413193.1]
    Rls11i - PO- POXDOCON.pld - Unable to cancel PO. APP-PO-14056: User Exit #PO REQUEST_ACTION returned error [ID 247418.1]
    APP-PO-14056 User Exit #PO Request_action Returned Error While Cancelling Planned PO Shipment [ID 303488.1]APP-PO-14056 User Exit #PO request_action returned error. While cancelling Purchase Orders with received quantity equal to ordered quantity . [ID 209591.1]
    After Patch, While Cancelling Purchase Order Get Error APP-PO-14056 [ID 563384.1]
    Receiving Error APP-PO-14056 When Trying to Cancel a Purchase Order [ID 142793.1]
    APP-PO-14056 When Cancelling a Blanket Purchase Agreement Shipment or its related Blanket Release Shipments [ID 398379.1]
    Cancelling Purchase Order Returns Error APP-PO-14056 [ID 371571.1]
    APP-PO-14056 User Exit #Po Request_action Return Error When Cancelling A Purchase Order [ID 848598.1]
    Cancel or Unreserve of Scheduled Release is Unsuccessful APP-PO-14056 [ID 300105.1]
    APP-PO-14056 When Canceling Release [ID 562673.1]
    Thanks,
    Hussein

  • Error while cancelling the material document. MIGO

    i am getting following error while cancelling material document
    You cannot cancel GR, since inspection lot is already partly posted
    Message no. QA046
    Diagnosis
    You are attempting to reverse a goods receipt although quantity postings have already been made from the inspection lot. This means that stock for the goods receipt has already been transferred and, for this reason, a cancelation of the document is no longer possible.
    Procedure
    Ensure that the postings in QM (within the usage decision transactions) are carried out.

    hi,
    You can't do cancellation here just because you have given some lot/qty to QI:
    2 ways:
    1. Don't do cancellation, make returns for the rest of the qty...
    2. Take back the qty in the Unrestrcited stock back and then try to do cancellations...
    Regards
    Priyanka.P

  • Cancellation of Credit Memo

    Hi,
    The user has raised an incorrect Credit Memo in the system but the accounting document is not cleared yet.
    How can I reverse the process?

    Hi Laxmi.
    In VF11, if I try to process it it says that the document does not exists.It was possibly not posted and therefore cannot be read from the database.
    But I can see the document in VF03.
    Also we are not allowed to cancel Invoices.What we used to do is that we always created a credit/debit memo against an incorrect Invoice.So,we always avoided to cancel Invoice.
    However in this case, I need to reverse a credit memo. So, I am not sure as to cancelling the Credit memo is the only alternative.?

  • Cancel the Credit memo genarating wrong accounting entry

    Hello,
    We are facing when we Cancel sales credit memo credit memo genarating wrong accounting document entry in production system.
    Same scenorio i have replicated in quality system and working fine.
    I have checked the billing type for credit memo s1 and cancel credit memo in quality system and production system configuration is same why it' hitting wrongly.
    Cancel credit memo is hitting document type RV instead of AB in production system but same it's correctly in quality system.
    I have checked the oba7,vofa.
    Please provide the clarification.
    Regards,
    Satya

    Hello,
    For document type RV we have maintained reverse document type AB.
    For document type AB we have maintained reverse document type AB.
    S1 is billing document type we can not map in OBA7 with documen type RV.
    Please give me your inputs.
    regards,
    Satya

  • REBATE CREDIT MEMO CANCEL OF CREDIT MEMO IN BW

    Hi Experts,
    I am generating report which is Rebate Agreements and invoices(Billing  documents).
    whatever the invoices related to Agreements it has to show in the report, BUT, if the Agreement is cancelled and generated a CANCEL OF CREDIT MEMO it should be negative. and for that particular agreement it should be nullify.
    example
    AGREEMENT   BILLING DOC                                               NETVALUE
    185              0080800881(rebate credit memo)                    1000.00 
    185              0013009957(cancel of credit memo)                1000.00 (-).
    how to nullify the values once cancel of credit memo generated. plz provide me the solution.
    regards
    venuscm
    Edited by: venugopal vadlamudi on Jan 6, 2011 6:55 AM

    thanks

  • Cancellation Document no accounting doc but cancellation of credit memo

    Hi experts,
    I have cancelled a billing doc then instead of the cancellation document producing an accounting document another cancellation of Credit Memo (S2) was generated. I believe this is SAP standard bug but have anyone of you encountered such scenario?
    Thanks and regards,
    jG

    Hi Sandip,
    Yes this was my expectation but it didn't happen because the accounting didn't post instead another billing document was created in SD with doc type S2 "cancellation with credit memo" which I don't know the logic behind it. So the sequence of my documents are
    1. billing doc
    2. accounting doc of billing doc.
    3. cancellation of billing doc.
    4. cancellation of credit memo.
    If you can see the 4th one instead of another accounting doc this unnecessary cancellation of credit memo doc appeared.

  • Assign CO object error while cancelling excise invoice

    Dear Gurus,
    I am getting following error, while cancelling excise invoice.  I was able to post the excise documents without this error.
    Account N870 requires an assignment to CO object. Message no.KI235
    Kindly help me to resolve this issue.
    Regards
    Ranga

    If you click on the long text of your error message, you will see an explanation of how to fix the error there.
    Or just put an entry into table OKB9 for the GL Account N870

  • Cancellation Internal Credit memo is not posted into Accounting

    Hello All,
                We have a requirement where the cancellation internal credit memo is not posted into accounting. It is a inter company sales return process. After return delivery, client created the internal credit memo. But due to some problem they cancelled the internal credit memo. But now system is not posted the cancellation internal credit memo into accounting. I did my analysis and found that client is using same number range for internal credit memo and accounting document. When internal credit memo is created system is assign the same number range to accounting document because of external number range field is ticked in Fbn1 .But due to wrong number assignment in internal credit memo. So when they cancel the internal credit memo, this internal credit memo number range is coming within the accounting document number range.But client is insisting that anyhow the cancel inter credit memo should be posted to accounting.
       I have tried a lot. but i could not reach out to any solution. Kindly help me on proving me a solution on this.
    Regards
    Soumendu

    Dear Soumendu:
    I had received this warning when the invoice was cleared. If you revert this process is possible to post the cancellation into accounting.
    Please check the status of the invoice.
    Regards
    Antonio Martinez R.

  • How to cancel a credit memo

    Hi
    Is there a way to cancel a credit memo in SAP.?
    Thanks for the help
    Sanjaya
    PS:Sorry Wrong Forum
    Edited by: Sanjaya Wicky on Jan 18, 2008 5:35 AM

    if you know the billing doc number, credit memo released invoice number
    go to vf02 and select cancel  or vf11.  this should also create the account posting to clear out original credit memo.  if acct posting doc gets blocked clear using Vfx3
    Stacey

Maybe you are looking for

  • Web Service Commit (BAPI inside out)

    Hi all, I want to use update BAPI through web service which made by Web Service Wizard. I know we usually have to use BAPI_TRANSACTION_COMMIT to commit. Can I call single web service with commit? I found optional configrations in Service Definision (

  • Error 0xE8000084 in itunes 12.1.2

    I have just installed iTunes 12.1.2 on my Windows 7 computer. When I attach my iPad Air 2, I get the message Error 0xE8000084. I have tried closing down and restarting the computer and have followed earlier discussions about this error - to no avail.

  • What are benefits and drawbacks of deleting cookies?

    I see articles about how to delete cookies and problems that seem to relate to having cookies or having deleted cookies but nothing (that I could find) about the benefits and drawbacks of cookies. Seems before deleting or preventing, it would be usef

  • Missing data_file

    I just copied our PROD instance to our TEST instance, its up and running, but when i try to query some tables it gives me error ORA - 00376 file 26 cannot read at this time ORA - 01111: name for data file is unknown rename to correct file ORA-01110 d

  • Office 365 litigation hold licensing

    Everyone in the company has Office 365 Business Essentials licenses.  The CEO wants the a subset of those users to have all emails sent/rec'd in a litigation hold to prevent them from deleting emails.  My research seems to imply that feature is only